[USBOHCI]

* Remove inclusions that already exist in the main header.
* Cleanup the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61504
This commit is contained in:
Amine Khaldi 2014-01-03 18:33:25 +00:00
parent 19b6ce21cd
commit cd426e2a73
5 changed files with 11 additions and 37 deletions

View file

@ -10,7 +10,8 @@ list(APPEND SOURCE
usbohci.cpp usbohci.cpp
usb_request.cpp usb_request.cpp
usb_queue.cpp usb_queue.cpp
hardware.cpp) hardware.cpp
guid.cpp)
add_library(usbohci SHARED add_library(usbohci SHARED
${SOURCE} ${SOURCE}

View file

@ -0,0 +1,6 @@
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
#include <initguid.h>
#include <libusb.h>
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -1,7 +1,5 @@
#pragma once #pragma once
#include <ntddk.h>
// //
// OHCI Operational Registers // OHCI Operational Registers
// //

View file

@ -1,4 +1,3 @@
#ifndef INTERFACES_HPP #ifndef INTERFACES_HPP
#define INTERFACES_HPP #define INTERFACES_HPP
@ -6,8 +5,6 @@ struct _OHCI_ENDPOINT_DESCRIPTOR;
struct IDMAMemoryManager; struct IDMAMemoryManager;
struct IUSBQueue; struct IUSBQueue;
#include "libusb.h"
//========================================================================================= //=========================================================================================
// //
// class IUSBHardwareDevice // class IUSBHardwareDevice
@ -134,4 +131,4 @@ DECLARE_INTERFACE_(IOHCIQueue, IUSBQueue)
typedef IOHCIQueue *POHCIQUEUE; typedef IOHCIQueue *POHCIQUEUE;
#endif #endif /* INTERFACES_HPP */

View file

@ -1,35 +1,7 @@
#ifndef USBOHCI_H__ #ifndef USBOHCI_H__
#define USBOHCI_H__ #define USBOHCI_H__
#define INITGUID #include <libusb.h>
#include <ntddk.h>
#include <hubbusif.h>
#include <usbbusif.h>
#include <usbioctl.h>
#include <usb100.h>
extern
"C"
{
#include <usbdlib.h>
}
//
// FIXME:
// #include <usbprotocoldefs.h>
//
#include <usb.h>
#include <stdio.h>
#include <wdmguid.h>
//
// FIXME:
// the following includes are required to get kcom to compile
//
#include <portcls.h>
#include <dmusicks.h>
#include <kcom.h>
#include "hardware.h" #include "hardware.h"
#include "interfaces.h" #include "interfaces.h"
@ -79,4 +51,4 @@ NTSTATUS NTAPI CreateUSBQueue(PUSBQUEUE *OutUsbQueue);
NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest); NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
} }
#endif #endif /* USBOHCI_H__ */