Replace a void* by PDEVICE_OBJECT and fix its usage
Modified: trunk/reactos/drivers/usb/miniport/linux/linux_wrapper.h
Modified: trunk/reactos/drivers/usb/miniport/usbohci/ohci.c
Modified: trunk/reactos/drivers/usb/miniport/usbuhci/uhci.c
_____
Modified: trunk/reactos/drivers/usb/miniport/linux/linux_wrapper.h
--- trunk/reactos/drivers/usb/miniport/linux/linux_wrapper.h
2005-11-05 10:27:50 UTC (rev 19012)
+++ trunk/reactos/drivers/usb/miniport/linux/linux_wrapper.h
2005-11-05 11:51:30 UTC (rev 19013)
@@ -129,7 +129,7 @@
struct list_head driver_list;
void (*release)(struct device * dev);
- void *dev_ext; // ReactOS-specific: pointer to windows device
extension
+ PDEVICE_OBJECT dev_ext; // ReactOS-specific: pointer to windows
device object
};
struct class_device{int a;};
struct semaphore{int a;};
_____
Modified: trunk/reactos/drivers/usb/miniport/usbohci/ohci.c
--- trunk/reactos/drivers/usb/miniport/usbohci/ohci.c 2005-11-05
10:27:50 UTC (rev 19012)
+++ trunk/reactos/drivers/usb/miniport/usbohci/ohci.c 2005-11-05
11:51:30 UTC (rev 19013)
@@ -21,7 +21,7 @@
/* Initialize generic linux structure */
dev->irq = DeviceExtension->InterruptVector;
dev->dev_ext = (PVOID)DeviceExtension;
- dev->dev.dev_ext = (PVOID)DeviceExtension;
+ dev->dev.dev_ext = (PVOID)DeviceObject;
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128,
USB_OHCI_TAG); // 128 max len for slot name
// Init wrapper
_____
Modified: trunk/reactos/drivers/usb/miniport/usbuhci/uhci.c
--- trunk/reactos/drivers/usb/miniport/usbuhci/uhci.c 2005-11-05
10:27:50 UTC (rev 19012)
+++ trunk/reactos/drivers/usb/miniport/usbuhci/uhci.c 2005-11-05
11:51:30 UTC (rev 19013)
@@ -26,7 +26,7 @@
/* Initialize generic linux structure */
dev->irq = DeviceExtension->InterruptVector;
dev->dev_ext = (PVOID)DeviceExtension;
- dev->dev.dev_ext = (PVOID)DeviceExtension;
+ dev->dev.dev_ext = (PVOID)DeviceObject;
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128,
USB_UHCI_TAG); // 128 max len for slot name
init_wrapper(dev);