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;};
/* Initialize generic linux structure */\r
dev->irq = DeviceExtension->InterruptVector;\r
dev->dev_ext = (PVOID)DeviceExtension;\r
- dev->dev.dev_ext = (PVOID)DeviceExtension;\r
+ dev->dev.dev_ext = (PVOID)DeviceObject;\r
dev->slot_name = ExAllocatePoolWithTag(NonPagedPool, 128, USB_OHCI_TAG); // 128 max len for slot name\r
\r
// Init wrapper\r
/* 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);