Author: akhaldi
Date: Fri Jan 3 18:33:25 2014
New Revision: 61504
URL:
http://svn.reactos.org/svn/reactos?rev=61504&view=rev
Log:
[USBOHCI]
* Remove inclusions that already exist in the main header.
* Cleanup the main header.
* Improve the GUIDs situation.
CORE-7716
Added:
trunk/reactos/drivers/usb/usbohci/guid.cpp (with props)
Modified:
trunk/reactos/drivers/usb/usbohci/CMakeLists.txt
trunk/reactos/drivers/usb/usbohci/hardware.h
trunk/reactos/drivers/usb/usbohci/interfaces.h
trunk/reactos/drivers/usb/usbohci/usbohci.h
Modified: trunk/reactos/drivers/usb/usbohci/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/CMakeL…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/CMakeLists.txt [iso-8859-1] Fri Jan 3 18:33:25
2014
@@ -10,7 +10,8 @@
usbohci.cpp
usb_request.cpp
usb_queue.cpp
- hardware.cpp)
+ hardware.cpp
+ guid.cpp)
add_library(usbohci SHARED
${SOURCE}
Added: trunk/reactos/drivers/usb/usbohci/guid.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/guid.c…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/guid.cpp (added)
+++ trunk/reactos/drivers/usb/usbohci/guid.cpp [iso-8859-1] Fri Jan 3 18:33:25 2014
@@ -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 */
Propchange: trunk/reactos/drivers/usb/usbohci/guid.cpp
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/drivers/usb/usbohci/hardware.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/hardwa…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/hardware.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/hardware.h [iso-8859-1] Fri Jan 3 18:33:25 2014
@@ -1,6 +1,4 @@
#pragma once
-
-#include <ntddk.h>
//
// OHCI Operational Registers
Modified: trunk/reactos/drivers/usb/usbohci/interfaces.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/interf…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/interfaces.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/interfaces.h [iso-8859-1] Fri Jan 3 18:33:25 2014
@@ -1,12 +1,9 @@
-
#ifndef INTERFACES_HPP
#define INTERFACES_HPP
struct _OHCI_ENDPOINT_DESCRIPTOR;
struct IDMAMemoryManager;
struct IUSBQueue;
-
-#include "libusb.h"
//=========================================================================================
//
@@ -134,4 +131,4 @@
typedef IOHCIQueue *POHCIQUEUE;
-#endif
+#endif /* INTERFACES_HPP */
Modified: trunk/reactos/drivers/usb/usbohci/usbohci.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbohci/usbohc…
==============================================================================
--- trunk/reactos/drivers/usb/usbohci/usbohci.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbohci/usbohci.h [iso-8859-1] Fri Jan 3 18:33:25 2014
@@ -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 InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
}
-#endif
+#endif /* USBOHCI_H__ */