[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
usb_request.cpp
usb_queue.cpp
hardware.cpp)
hardware.cpp
guid.cpp)
add_library(usbohci SHARED
${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
#include <ntddk.h>
//
// OHCI Operational Registers
//

View file

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

View file

@ -1,35 +1,7 @@
#ifndef USBOHCI_H__
#define USBOHCI_H__
#define INITGUID
#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 <libusb.h>
#include "hardware.h"
#include "interfaces.h"
@ -79,4 +51,4 @@ NTSTATUS NTAPI CreateUSBQueue(PUSBQUEUE *OutUsbQueue);
NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
}
#endif
#endif /* USBOHCI_H__ */