[USBEHCI]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Jan 2014 17:23:55 +0000 (17:23 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Jan 2014 17:23:55 +0000 (17:23 +0000)
* Remove inclusions that already exist in the main header.
* Cleanup the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61502

reactos/drivers/usb/usbehci/CMakeLists.txt
reactos/drivers/usb/usbehci/guid.cpp [new file with mode: 0644]
reactos/drivers/usb/usbehci/hardware.h
reactos/drivers/usb/usbehci/interfaces.h
reactos/drivers/usb/usbehci/usbehci.h

index 8cf3944..2c6c425 100644 (file)
@@ -10,7 +10,8 @@ list(APPEND SOURCE
     usbehci.cpp
     usb_request.cpp
     usb_queue.cpp
     usbehci.cpp
     usb_request.cpp
     usb_queue.cpp
-    hardware.cpp)
+    hardware.cpp
+    guid.cpp)
 
 add_library(usbehci SHARED
     ${SOURCE}
 
 add_library(usbehci SHARED
     ${SOURCE}
diff --git a/reactos/drivers/usb/usbehci/guid.cpp b/reactos/drivers/usb/usbehci/guid.cpp
new file mode 100644 (file)
index 0000000..8ea477c
--- /dev/null
@@ -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 */
index 914bde4..2a84ee8 100644 (file)
@@ -1,8 +1,5 @@
 #pragma once
 
 #pragma once
 
-#include <ntddk.h>
-
-
 //
 // Host Controller Capability Registers
 //
 //
 // Host Controller Capability Registers
 //
@@ -325,4 +322,4 @@ typedef struct
 #define EHCI_QH_CAPS_SCM_SHIFT  8                      // Split Completion Mask
 #define EHCI_QH_CAPS_SCM_MASK   0xff
 #define EHCI_QH_CAPS_ISM_SHIFT  0                      // Interrupt Schedule Mask
 #define EHCI_QH_CAPS_SCM_SHIFT  8                      // Split Completion Mask
 #define EHCI_QH_CAPS_SCM_MASK   0xff
 #define EHCI_QH_CAPS_ISM_SHIFT  0                      // Interrupt Schedule Mask
-#define EHCI_QH_CAPS_ISM_MASK  0xff
\ No newline at end of file
+#define EHCI_QH_CAPS_ISM_MASK  0xff
index 3a69c3a..4478390 100644 (file)
@@ -1,10 +1,6 @@
-
 #ifndef INTERFACES_HPP
 #define INTERFACES_HPP
 
 #ifndef INTERFACES_HPP
 #define INTERFACES_HPP
 
-#include "libusb.h"
-
-
 //=========================================================================================
 //
 // class IUSBHardwareDevice
 //=========================================================================================
 //
 // class IUSBHardwareDevice
@@ -152,4 +148,4 @@ DECLARE_INTERFACE_(IEHCIQueue, IUSBQueue)
 
 typedef IEHCIQueue *PEHCIQUEUE;
 
 
 typedef IEHCIQueue *PEHCIQUEUE;
 
-#endif
+#endif /* INTERFACES_HPP */
index 2cc7bf7..171d39b 100644 (file)
@@ -1,35 +1,7 @@
 #ifndef USBEHCI_H__
 #define USBEHCI_H__
 
 #ifndef USBEHCI_H__
 #define USBEHCI_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"
 
 #include "hardware.h"
 #include "interfaces.h"
@@ -61,4 +33,4 @@ NTSTATUS NTAPI CreateUSBQueue(PUSBQUEUE *OutUsbQueue);
 //
 NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
 
 //
 NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
 
-#endif
+#endif /* USBEHCI_H__ */