[USBUHCI]

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

svn path=/trunk/; revision=61505
This commit is contained in:
Amine Khaldi 2014-01-03 19:20:35 +00:00
parent cd426e2a73
commit 7c79650128
5 changed files with 11 additions and 34 deletions

View file

@ -11,7 +11,8 @@ list(APPEND SOURCE
usbuhci.cpp
usb_request.cpp
usb_queue.cpp
hardware.cpp)
hardware.cpp
guid.cpp)
add_library(usbuhci 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

@ -188,4 +188,4 @@ typedef struct _UHCI_QUEUE_HEAD
#define UHCI_BULK_QUEUE 3
#define UHCI_DEBUG_QUEUE 4
#endif
#endif /* UHCI_HARDWARE_H */

View file

@ -1,9 +1,6 @@
#ifndef INTERFACES_HPP
#define INTERFACES_HPP
#include "libusb.h"
//---------------------------------------------------------------------------
//
// Object Hierachy
@ -138,4 +135,4 @@ DECLARE_INTERFACE_(IUHCIQueue, IUSBQueue)
typedef IUHCIQueue *PUHCIQUEUE;
#endif
#endif /* INTERFACES_HPP */

View file

@ -1,34 +1,7 @@
#ifndef USBUHCI_H__
#define USBUHCI_H__
#define INITGUID
#include <ntddk.h>
#include <hubbusif.h>
#include <usbbusif.h>
#include <usbioctl.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"