e1008c62692ebc61b709ec34c315aba66cac1e57
[reactos.git] / include / ddk / usbiodef.h
1
2
3 #ifndef __USBIODEF_H__
4 #define __USBIODEF_H__
5
6 DEFINE_GUID(GUID_DEVINTERFACE_USB_HUB, 0xF18A0E88, 0xc30C, 0x11D0, 0x88, 0x15, 0x00, 0xA0, 0xC9, 0x06, 0xBE, 0xD8);
7 DEFINE_GUID(GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED);
8 DEFINE_GUID(GUID_DEVINTERFACE_USB_HOST_CONTROLLER, 0x3ABF6F2D, 0x71C4, 0x462A, 0x8A, 0x92, 0x1E, 0x68, 0x61, 0xE6, 0xAF, 0x27);
9 DEFINE_GUID(GUID_USB_WMI_STD_DATA, 0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);
10 DEFINE_GUID(GUID_USB_WMI_STD_NOTIFICATION, 0x4E623B20L, 0xCB14, 0x11D1, 0xB3, 0x31, 0x00, 0xA0, 0xC9, 0x59, 0xBB, 0xD2);
11
12 #define GUID_CLASS_USBHUB GUID_DEVINTERFACE_USB_HUB
13 #define GUID_CLASS_USB_DEVICE GUID_DEVINTERFACE_USB_DEVICE
14 #define GUID_CLASS_USB_HOST_CONTROLLER GUID_DEVINTERFACE_USB_HOST_CONTROLLER
15 #define HCD_GET_STATS_1 255
16 #define HCD_DIAGNOSTIC_MODE_ON 256
17 #define HCD_DIAGNOSTIC_MODE_OFF 257
18 #define HCD_GET_ROOT_HUB_NAME 258
19 #define HCD_GET_DRIVERKEY_NAME 265
20 #define HCD_GET_STATS_2 266
21 #define HCD_DISABLE_PORT 268
22 #define HCD_ENABLE_PORT 269
23 #define HCD_USER_REQUEST 270
24 #define USB_SUBMIT_URB 0
25 #define USB_RESET_PORT 1
26 #define USB_GET_ROOTHUB_PDO 3
27 #define USB_GET_PORT_STATUS 4
28 #define USB_ENABLE_PORT 5
29 #define USB_GET_HUB_COUNT 6
30 #define USB_CYCLE_PORT 7
31 #define USB_GET_HUB_NAME 8
32 #define USB_IDLE_NOTIFICATION 9
33 #define USB_GET_BUS_INFO 264
34 #define USB_GET_CONTROLLER_NAME 265
35 #define USB_GET_BUSGUID_INFO 266
36 #define USB_GET_PARENT_HUB_INFO 267
37 #define USB_GET_DEVICE_HANDLE 268
38 #define USB_GET_NODE_INFORMATION 258
39 #define USB_GET_NODE_CONNECTION_INFORMATION 259
40 #define USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION 260
41 #define USB_GET_NODE_CONNECTION_NAME 261
42 #define USB_DIAG_IGNORE_HUBS_ON 262
43 #define USB_DIAG_IGNORE_HUBS_OFF 263
44 #define USB_GET_NODE_CONNECTION_DRIVERKEY_NAME 264
45 #define USB_GET_HUB_CAPABILITIES 271
46 #define USB_GET_NODE_CONNECTION_ATTRIBUTES 272
47 #define USB_HUB_CYCLE_PORT 273
48 #define USB_GET_NODE_CONNECTION_INFORMATION_EX 274
49 #define FILE_DEVICE_USB FILE_DEVICE_UNKNOWN
50 #define USB_CTL(id) CTL_CODE(FILE_DEVICE_USB, (id), METHOD_BUFFERED, FILE_ANY_ACCESS)
51 #define USB_KERNEL_CTL(id) CTL_CODE(FILE_DEVICE_USB, (id), METHOD_NEITHER, FILE_ANY_ACCESS)
52 #endif