[ros-diffs] [ekohl] 47766: [USBD] Replace DWORD by ULONG to make usbd.sys build without errors.

ekohl at svn.reactos.org ekohl at svn.reactos.org
Sat Jun 12 12:20:42 UTC 2010


Author: ekohl
Date: Sat Jun 12 12:20:41 2010
New Revision: 47766

URL: http://svn.reactos.org/svn/reactos?rev=47766&view=rev
Log:
[USBD]
Replace DWORD by ULONG to make usbd.sys build without errors.

Modified:
    trunk/reactos/drivers/usb/usbd/usbd.c

Modified: trunk/reactos/drivers/usb/usbd/usbd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/usbd/usbd.c?rev=47766&r1=47765&r2=47766&view=diff
==============================================================================
--- trunk/reactos/drivers/usb/usbd/usbd.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/usb/usbd/usbd.c [iso-8859-1] Sat Jun 12 12:20:41 2010
@@ -51,8 +51,8 @@
 /*
  * @implemented
  */
-DWORD NTAPI
-DllInitialize(DWORD Unknown)
+ULONG NTAPI
+DllInitialize(ULONG Unknown)
 {
     return 0;
 }
@@ -60,7 +60,7 @@
 /*
  * @implemented
  */
-DWORD NTAPI
+ULONG NTAPI
 DllUnload(VOID)
 {
     return 0;
@@ -70,7 +70,7 @@
  * @implemented
  */
 PVOID NTAPI
-USBD_Debug_GetHeap(DWORD Unknown1, POOL_TYPE PoolType, ULONG NumberOfBytes,
+USBD_Debug_GetHeap(ULONG Unknown1, POOL_TYPE PoolType, ULONG NumberOfBytes,
 	ULONG Tag)
 {
     return ExAllocatePoolWithTag(PoolType, NumberOfBytes, Tag);
@@ -80,7 +80,7 @@
  * @implemented
  */
 VOID NTAPI
-USBD_Debug_RetHeap(PVOID Heap, DWORD Unknown2, DWORD Unknown3)
+USBD_Debug_RetHeap(PVOID Heap, ULONG Unknown2, ULONG Unknown3)
 {
     ExFreePool(Heap);
 }
@@ -98,7 +98,7 @@
  * @implemented
  */
 PVOID NTAPI
-USBD_AllocateDeviceName(DWORD Unknown)
+USBD_AllocateDeviceName(ULONG Unknown)
 {
     return NULL;
 }
@@ -106,20 +106,20 @@
 /*
  * @implemented
  */
-DWORD NTAPI
+ULONG NTAPI
 USBD_CalculateUsbBandwidth(
     ULONG MaxPacketSize,
     UCHAR EndpointType,
     BOOLEAN LowSpeed
     )
 {
-    DWORD OverheadTable[] = {
+    ULONG OverheadTable[] = {
             0x00, /* UsbdPipeTypeControl */
             0x09, /* UsbdPipeTypeIsochronous */
             0x00, /* UsbdPipeTypeBulk */
             0x0d  /* UsbdPipeTypeInterrupt */
         };
-    DWORD Result;
+    ULONG Result;
 
     if (OverheadTable[EndpointType] != 0)
     {
@@ -134,8 +134,8 @@
 /*
  * @implemented
  */
-DWORD NTAPI
-USBD_Dispatch(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3, DWORD Unknown4)
+ULONG NTAPI
+USBD_Dispatch(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3, ULONG Unknown4)
 {
     return 1;
 }
@@ -167,8 +167,8 @@
 /*
  * @implemented
  */
-DWORD NTAPI
-USBD_GetSuspendPowerState(DWORD Unknown1)
+ULONG NTAPI
+USBD_GetSuspendPowerState(ULONG Unknown1)
 {
     return 0;
 }
@@ -177,56 +177,56 @@
  * @implemented
  */
 NTSTATUS NTAPI
-USBD_InitializeDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
-    DWORD Unknown4, DWORD Unknown5, DWORD Unknown6)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-NTSTATUS NTAPI
-USBD_RegisterHostController(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
-    DWORD Unknown4, DWORD Unknown5, DWORD Unknown6, DWORD Unknown7,
-    DWORD Unknown8, DWORD Unknown9, DWORD Unknown10)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-NTSTATUS NTAPI
-USBD_GetDeviceInformation(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-NTSTATUS NTAPI
-USBD_CreateDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
-    DWORD Unknown4, DWORD Unknown5)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-NTSTATUS NTAPI
-USBD_RemoveDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-VOID NTAPI
-USBD_CompleteRequest(DWORD Unknown1, DWORD Unknown2)
+USBD_InitializeDevice(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3,
+    ULONG Unknown4, ULONG Unknown5, ULONG Unknown6)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+NTSTATUS NTAPI
+USBD_RegisterHostController(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3,
+    ULONG Unknown4, ULONG Unknown5, ULONG Unknown6, ULONG Unknown7,
+    ULONG Unknown8, ULONG Unknown9, ULONG Unknown10)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+NTSTATUS NTAPI
+USBD_GetDeviceInformation(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+NTSTATUS NTAPI
+USBD_CreateDevice(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3,
+    ULONG Unknown4, ULONG Unknown5)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+NTSTATUS NTAPI
+USBD_RemoveDevice(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+VOID NTAPI
+USBD_CompleteRequest(ULONG Unknown1, ULONG Unknown2)
 {
 }
 
@@ -245,15 +245,15 @@
  * @implemented
  */
 VOID NTAPI
-USBD_SetSuspendPowerState(DWORD Unknown1, DWORD Unknown2)
-{
-}
-
-/*
- * @implemented
- */
-NTSTATUS NTAPI
-USBD_MakePdoName(DWORD Unknown1, DWORD Unknown2)
+USBD_SetSuspendPowerState(ULONG Unknown1, ULONG Unknown2)
+{
+}
+
+/*
+ * @implemented
+ */
+NTSTATUS NTAPI
+USBD_MakePdoName(ULONG Unknown1, ULONG Unknown2)
 {
     return STATUS_NOT_SUPPORTED;
 }
@@ -289,17 +289,17 @@
  * @implemented
  */
 NTSTATUS NTAPI
-USBD_RestoreDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
-{
-    return STATUS_NOT_SUPPORTED;
-}
-
-/*
- * @implemented
- */
-VOID NTAPI
-USBD_RegisterHcDeviceCapabilities(DWORD Unknown1, DWORD Unknown2,
-    DWORD Unknown3)
+USBD_RestoreDevice(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3)
+{
+    return STATUS_NOT_SUPPORTED;
+}
+
+/*
+ * @implemented
+ */
+VOID NTAPI
+USBD_RegisterHcDeviceCapabilities(ULONG Unknown1, ULONG Unknown2,
+    ULONG Unknown3)
 {
 }
 
@@ -315,8 +315,8 @@
     )
 {
     PURB Urb;
-    DWORD UrbSize;
-    DWORD InterfaceCount;
+    ULONG UrbSize;
+    ULONG InterfaceCount;
 
     for (InterfaceCount = 0;
          InterfaceList[InterfaceCount].InterfaceDescriptor != NULL;
@@ -363,7 +363,7 @@
 {
     ULONG_PTR Current;
     PUSB_INTERFACE_DESCRIPTOR CurrentDescriptor = InterfaceDescriptor;
-    DWORD Length = CurrentDescriptor->bLength;
+    ULONG Length = CurrentDescriptor->bLength;
 
     // USB_ENDPOINT_DESCRIPTOR_TYPE
     if (CurrentDescriptor->bDescriptorType == USB_INTERFACE_DESCRIPTOR_TYPE)
@@ -478,7 +478,7 @@
 /*
  * @implemented
  */
-DWORD NTAPI
+ULONG NTAPI
 USBD_GetPdoRegistryParameter(
     PDEVICE_OBJECT PhysicalDeviceObject,
     PVOID Parameter,




More information about the Ros-diffs mailing list