set most of trunk svn property eol-style:native
[reactos.git] / reactos / drivers / usb / miniport / common / usbcommon_types.h
1 #ifndef _USBMP_COMMON_TYPES_H_
2 #define _USBMP_COMMON_TYPES_H_
3
4 typedef struct _USBMP_DRIVER_EXTENSION
5 {
6 //OHCI_HW_INITIALIZATION_DATA InitializationData;
7 //PVOID HwContext;
8 //UNICODE_STRING RegistryPath;
9
10 } USBMP_DRIVER_EXTENSION, *PUSBMP_DRIVER_EXTENSION;
11
12 typedef struct _USBMP_DEVICE_EXTENSTION
13 {
14 ULONG DeviceNumber;
15 PDEVICE_OBJECT PhysicalDeviceObject;
16 PDEVICE_OBJECT FunctionalDeviceObject;
17 PDEVICE_OBJECT NextDeviceObject;
18 //UNICODE_STRING RegistryPath;
19 UNICODE_STRING HcdInterfaceName;
20 //KSPIN_LOCK InterruptSpinLock;
21 PCM_RESOURCE_LIST AllocatedResources;
22
23 /* Interrupt-related info */
24 PKINTERRUPT InterruptObject;
25 ULONG InterruptVector;
26 ULONG InterruptLevel;
27 KINTERRUPT_MODE InterruptMode;
28 BOOLEAN InterruptShare;
29 KAFFINITY InterruptAffinity;
30
31 PHYSICAL_ADDRESS BaseAddress;
32 ULONG BaseAddrLength;
33 ULONG Flags;
34 //ULONG AdapterInterfaceType;
35 ULONG SystemIoBusNumber;
36 ULONG SystemIoSlotNumber;
37 //LIST_ENTRY AddressMappingListHead;
38
39 // DMA stuff, and buffers
40 PDMA_ADAPTER pDmaAdapter;
41 //PVOID MapRegisterBase;
42 ULONG mapRegisterCount;
43 #ifdef USB_DMA_SINGLE_SUPPORT
44 //PHYSICAL_ADDRESS Buffer;
45 //PVOID VirtualBuffer;
46 //ULONG BufferSize;
47
48 // Mdl used for single DMA transfers
49 //PMDL Mdl;
50 #endif
51
52 //KDPC DpcObject;
53 PUSBMP_DRIVER_EXTENSION DriverExtension;
54 ULONG DeviceOpened;
55 //KMUTEX DeviceLock;
56 //CHAR MiniPortDeviceExtension[1];
57 BOOLEAN IsFDO;
58 struct pci_dev * pdev;
59 PDEVICE_OBJECT RootHubPdo;
60 } USBMP_DEVICE_EXTENSION, *PUSBMP_DEVICE_EXTENSION;
61
62 #endif