ReactOS 0.4.15-dev-8241-g63935f8
usb.h
Go to the documentation of this file.
1/*
2 * usb.h
3 *
4 * This file is part of the ReactOS PSDK package.
5 *
6 * Contributors:
7 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
8 *
9 * THIS SOFTWARE IS NOT COPYRIGHTED
10 *
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
13 *
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 */
20
21#pragma once
22
23/* Helper macro to enable gcc's extension. */
24#ifndef __GNU_EXTENSION
25#ifdef __GNUC__
26#define __GNU_EXTENSION __extension__
27#else
28#define __GNU_EXTENSION
29#endif
30#endif
31
32#ifdef OSR21_COMPAT
33#pragma message("WARNING: OSR21_COMPAT SWITCH NOT SUPPORTED")
34#endif
35
36#ifndef _NTDDK_
37#ifndef _WDMDDK_
38typedef PVOID PIRP;
39typedef PVOID PMDL;
40#endif
41#endif
42
43#define USBDI_VERSION 0x00000500
44
45#include "usb200.h"
46
47#define USB_PORTATTR_NO_CONNECTOR 0x00000001
48#define USB_PORTATTR_SHARED_USB2 0x00000002
49#define USB_PORTATTR_MINI_CONNECTOR 0x00000004
50#define USB_PORTATTR_OEM_CONNECTOR 0x00000008
51#define USB_PORTATTR_OWNED_BY_CC 0x01000000
52#define USB_PORTATTR_NO_OVERCURRENT_UI 0x02000000
53
62 UHCI_Ich2 = 203,
64 UHCI_Ich1 = 205,
66 UHCI_Ich4 = 207,
67 UHCI_Ich5 = 208,
68 UHCI_Ich6 = 209,
70 UHCI_VIA = 250,
77 EHCI_NEC = 2000,
78 EHCI_Lucent = 3000
80
81
82#define USB_DEFAULT_DEVICE_ADDRESS 0
83#define USB_DEFAULT_ENDPOINT_ADDRESS 0
84#define USB_DEFAULT_MAX_PACKET 64
85#define URB_FROM_IRP(Irp) ((IoGetCurrentIrpStackLocation(Irp))->Parameters.Others.Argument1)
86#define URB_FUNCTION_SELECT_CONFIGURATION 0x0000
87#define URB_FUNCTION_SELECT_INTERFACE 0x0001
88#define URB_FUNCTION_ABORT_PIPE 0x0002
89#define URB_FUNCTION_TAKE_FRAME_LENGTH_CONTROL 0x0003
90#define URB_FUNCTION_RELEASE_FRAME_LENGTH_CONTROL 0x0004
91#define URB_FUNCTION_GET_FRAME_LENGTH 0x0005
92#define URB_FUNCTION_SET_FRAME_LENGTH 0x0006
93#define URB_FUNCTION_GET_CURRENT_FRAME_NUMBER 0x0007
94#define URB_FUNCTION_CONTROL_TRANSFER 0x0008
95#define URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER 0x0009
96#define URB_FUNCTION_ISOCH_TRANSFER 0x000A
97#define URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE 0x000B
98#define URB_FUNCTION_SET_DESCRIPTOR_TO_DEVICE 0x000C
99#define URB_FUNCTION_SET_FEATURE_TO_DEVICE 0x000D
100#define URB_FUNCTION_SET_FEATURE_TO_INTERFACE 0x000E
101#define URB_FUNCTION_SET_FEATURE_TO_ENDPOINT 0x000F
102#define URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE 0x0010
103#define URB_FUNCTION_CLEAR_FEATURE_TO_INTERFACE 0x0011
104#define URB_FUNCTION_CLEAR_FEATURE_TO_ENDPOINT 0x0012
105#define URB_FUNCTION_GET_STATUS_FROM_DEVICE 0x0013
106#define URB_FUNCTION_GET_STATUS_FROM_INTERFACE 0x0014
107#define URB_FUNCTION_GET_STATUS_FROM_ENDPOINT 0x0015
108#define URB_FUNCTION_RESERVED_0X0016 0x0016
109#define URB_FUNCTION_VENDOR_DEVICE 0x0017
110#define URB_FUNCTION_VENDOR_INTERFACE 0x0018
111#define URB_FUNCTION_VENDOR_ENDPOINT 0x0019
112#define URB_FUNCTION_CLASS_DEVICE 0x001A
113#define URB_FUNCTION_CLASS_INTERFACE 0x001B
114#define URB_FUNCTION_CLASS_ENDPOINT 0x001C
115#define URB_FUNCTION_RESERVE_0X001D 0x001D
116#define URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL 0x001E
117#define URB_FUNCTION_CLASS_OTHER 0x001F
118#define URB_FUNCTION_VENDOR_OTHER 0x0020
119#define URB_FUNCTION_GET_STATUS_FROM_OTHER 0x0021
120#define URB_FUNCTION_CLEAR_FEATURE_TO_OTHER 0x0022
121#define URB_FUNCTION_SET_FEATURE_TO_OTHER 0x0023
122#define URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT 0x0024
123#define URB_FUNCTION_SET_DESCRIPTOR_TO_ENDPOINT 0x0025
124#define URB_FUNCTION_GET_CONFIGURATION 0x0026
125#define URB_FUNCTION_GET_INTERFACE 0x0027
126#define URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE 0x0028
127#define URB_FUNCTION_SET_DESCRIPTOR_TO_INTERFACE 0x0029
128
129#if (_WIN32_WINNT >= 0x0501)
130
131#define URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR 0x002A
132#define URB_FUNCTION_SYNC_RESET_PIPE 0x0030
133#define URB_FUNCTION_SYNC_CLEAR_STALL 0x0031
134
135#endif
136
137#if (_WIN32_WINNT >= 0x0600)
138
139#define URB_FUNCTION_CONTROL_TRANSFER_EX 0x0032
140#define URB_FUNCTION_RESERVE_0X0033 0x0033
141#define URB_FUNCTION_RESERVE_0X0034 0x0034
142
143#endif
144
145#define URB_FUNCTION_RESERVE_0X002B 0x002B
146#define URB_FUNCTION_RESERVE_0X002C 0x002C
147#define URB_FUNCTION_RESERVE_0X002D 0x002D
148#define URB_FUNCTION_RESERVE_0X002E 0x002E
149#define URB_FUNCTION_RESERVE_0X002F 0x002F
150
151#define URB_FUNCTION_RESET_PIPE URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL
152
153#define USBD_TRANSFER_DIRECTION 0x00000001
154#define USBD_SHORT_TRANSFER_OK 0x00000002
155#define USBD_START_ISO_TRANSFER_ASAP 0x00000004
156#define USBD_DEFAULT_PIPE_TRANSFER 0x00000008
157#define USBD_TRANSFER_DIRECTION_FLAG(flags) ((flags) & USBD_TRANSFER_DIRECTION)
158
159#define USBD_TRANSFER_DIRECTION_OUT 0
160#define USBD_TRANSFER_DIRECTION_IN 1
161#define VALID_TRANSFER_FLAGS_MASK (USBD_SHORT_TRANSFER_OK | USBD_TRANSFER_DIRECTION | \
162 USBD_START_ISO_TRANSFER_ASAP | USBD_DEFAULT_PIPE_TRANSFER)
163#define USBD_ISO_START_FRAME_RANGE 1024
164
166
167#define USBD_SUCCESS(Status) ((USBD_STATUS)(Status) >= 0)
168#define USBD_PENDING(Status) ((ULONG)(Status) >> 30 == 1)
169#define USBD_ERROR(Status) ((USBD_STATUS)(Status) < 0)
170#define USBD_STATUS_SUCCESS ((USBD_STATUS)0x00000000L)
171#define USBD_STATUS_PENDING ((USBD_STATUS)0x40000000L)
172#define USBD_STATUS_CRC ((USBD_STATUS)0xC0000001L)
173#define USBD_STATUS_BTSTUFF ((USBD_STATUS)0xC0000002L)
174#define USBD_STATUS_DATA_TOGGLE_MISMATCH ((USBD_STATUS)0xC0000003L)
175#define USBD_STATUS_STALL_PID ((USBD_STATUS)0xC0000004L)
176#define USBD_STATUS_DEV_NOT_RESPONDING ((USBD_STATUS)0xC0000005L)
177#define USBD_STATUS_PID_CHECK_FAILURE ((USBD_STATUS)0xC0000006L)
178#define USBD_STATUS_UNEXPECTED_PID ((USBD_STATUS)0xC0000007L)
179#define USBD_STATUS_DATA_OVERRUN ((USBD_STATUS)0xC0000008L)
180#define USBD_STATUS_DATA_UNDERRUN ((USBD_STATUS)0xC0000009L)
181#define USBD_STATUS_RESERVED1 ((USBD_STATUS)0xC000000AL)
182#define USBD_STATUS_RESERVED2 ((USBD_STATUS)0xC000000BL)
183#define USBD_STATUS_BUFFER_OVERRUN ((USBD_STATUS)0xC000000CL)
184#define USBD_STATUS_BUFFER_UNDERRUN ((USBD_STATUS)0xC000000DL)
185#define USBD_STATUS_NOT_ACCESSED ((USBD_STATUS)0xC000000FL)
186#define USBD_STATUS_FIFO ((USBD_STATUS)0xC0000010L)
187#define USBD_STATUS_XACT_ERROR ((USBD_STATUS)0xC0000011L)
188#define USBD_STATUS_BABBLE_DETECTED ((USBD_STATUS)0xC0000012L)
189#define USBD_STATUS_DATA_BUFFER_ERROR ((USBD_STATUS)0xC0000013L)
190#define USBD_STATUS_ENDPOINT_HALTED ((USBD_STATUS)0xC0000030L)
191#define USBD_STATUS_INVALID_URB_FUNCTION ((USBD_STATUS)0x80000200L)
192#define USBD_STATUS_INVALID_PARAMETER ((USBD_STATUS)0x80000300L)
193#define USBD_STATUS_ERROR_BUSY ((USBD_STATUS)0x80000400L)
194#define USBD_STATUS_INVALID_PIPE_HANDLE ((USBD_STATUS)0x80000600L)
195#define USBD_STATUS_NO_BANDWIDTH ((USBD_STATUS)0x80000700L)
196#define USBD_STATUS_INTERNAL_HC_ERROR ((USBD_STATUS)0x80000800L)
197#define USBD_STATUS_ERROR_SHORT_TRANSFER ((USBD_STATUS)0x80000900L)
198#define USBD_STATUS_BAD_START_FRAME ((USBD_STATUS)0xC0000A00L)
199#define USBD_STATUS_ISOCH_REQUEST_FAILED ((USBD_STATUS)0xC0000B00L)
200#define USBD_STATUS_FRAME_CONTROL_OWNED ((USBD_STATUS)0xC0000C00L)
201#define USBD_STATUS_FRAME_CONTROL_NOT_OWNED ((USBD_STATUS)0xC0000D00L)
202#define USBD_STATUS_NOT_SUPPORTED ((USBD_STATUS)0xC0000E00L)
203#define USBD_STATUS_INVALID_CONFIGURATION_DESCRIPTOR ((USBD_STATUS)0xC0000F00L)
204#define USBD_STATUS_INSUFFICIENT_RESOURCES ((USBD_STATUS)0xC0001000L)
205#define USBD_STATUS_SET_CONFIG_FAILED ((USBD_STATUS)0xC0002000L)
206#define USBD_STATUS_BUFFER_TOO_SMALL ((USBD_STATUS)0xC0003000L)
207#define USBD_STATUS_INTERFACE_NOT_FOUND ((USBD_STATUS)0xC0004000L)
208#define USBD_STATUS_INVALID_PIPE_FLAGS ((USBD_STATUS)0xC0005000L)
209#define USBD_STATUS_TIMEOUT ((USBD_STATUS)0xC0006000L)
210#define USBD_STATUS_DEVICE_GONE ((USBD_STATUS)0xC0007000L)
211#define USBD_STATUS_STATUS_NOT_MAPPED ((USBD_STATUS)0xC0008000L)
212#define USBD_STATUS_HUB_INTERNAL_ERROR ((USBD_STATUS)0xC0009000L)
213#define USBD_STATUS_CANCELED ((USBD_STATUS)0xC0010000L)
214#define USBD_STATUS_ISO_NOT_ACCESSED_BY_HW ((USBD_STATUS)0xC0020000L)
215#define USBD_STATUS_ISO_TD_ERROR ((USBD_STATUS)0xC0030000L)
216#define USBD_STATUS_ISO_NA_LATE_USBPORT ((USBD_STATUS)0xC0040000L)
217#define USBD_STATUS_ISO_NOT_ACCESSED_LATE ((USBD_STATUS)0xC0050000L)
218#define USBD_STATUS_BAD_DESCRIPTOR ((USBD_STATUS)0xC0100000L)
219#define USBD_STATUS_BAD_DESCRIPTOR_BLEN ((USBD_STATUS)0xC0100001L)
220#define USBD_STATUS_BAD_DESCRIPTOR_TYPE ((USBD_STATUS)0xC0100002L)
221#define USBD_STATUS_BAD_INTERFACE_DESCRIPTOR ((USBD_STATUS)0xC0100003L)
222#define USBD_STATUS_BAD_ENDPOINT_DESCRIPTOR ((USBD_STATUS)0xC0100004L)
223#define USBD_STATUS_BAD_INTERFACE_ASSOC_DESCRIPTOR ((USBD_STATUS)0xC0100005L)
224#define USBD_STATUS_BAD_CONFIG_DESC_LENGTH ((USBD_STATUS)0xC0100006L)
225#define USBD_STATUS_BAD_NUMBER_OF_INTERFACES ((USBD_STATUS)0xC0100007L)
226#define USBD_STATUS_BAD_NUMBER_OF_ENDPOINTS ((USBD_STATUS)0xC0100008L)
227#define USBD_STATUS_BAD_ENDPOINT_ADDRESS ((USBD_STATUS)0xC0100009L)
228
232
233#if (_WIN32_WINNT >= 0x0501)
234#define USBD_DEFAULT_MAXIMUM_TRANSFER_SIZE 0xFFFFFFFF
235#else
236#define USBD_DEFAULT_MAXIMUM_TRANSFER_SIZE PAGE_SIZE
237#endif
238
243
244typedef enum _USBD_PIPE_TYPE {
250
251#define USBD_PIPE_DIRECTION_IN(pipeInformation) ((pipeInformation)->EndpointAddress & USB_ENDPOINT_DIRECTION_MASK)
252
258
268
269#define USBD_PF_CHANGE_MAX_PACKET 0x00000001
270#define USBD_PF_SHORT_PACKET_OPT 0x00000002
271#define USBD_PF_ENABLE_RT_THREAD_ACCESS 0x00000004
272#define USBD_PF_MAP_ADD_TRANSFERS 0x00000008
273#define USBD_PF_VALID_MASK (USBD_PF_CHANGE_MAX_PACKET | USBD_PF_SHORT_PACKET_OPT | \
274 USBD_PF_ENABLE_RT_THREAD_ACCESS | USBD_PF_MAP_ADD_TRANSFERS)
275
288
291};
292
299};
300
305};
306
312};
313
318};
319
322};
323
328};
329
333};
334
338};
339
347 struct _URB *UrbLink;
354};
355
363 struct _URB *UrbLink;
368};
369
377 struct _URB *UrbLink;
383};
384
392 struct _URB *UrbLink;
399};
400
408 struct _URB *UrbLink;
413};
414
422 struct _URB *UrbLink;
425};
426
427#if (_WIN32_WINNT >= 0x0501)
428
429#define OS_STRING_DESCRIPTOR_INDEX 0xEE
430#define MS_GENRE_DESCRIPTOR_INDEX 0x0001
431#define MS_POWER_DESCRIPTOR_INDEX 0x0002
432#define MS_OS_STRING_SIGNATURE L"MSFT100"
433#define MS_OS_FLAGS_CONTAINERID 0x02
434
435typedef struct _OS_STRING {
436 UCHAR bLength;
437 UCHAR bDescriptorType;
438 WCHAR MicrosoftString[7];
439 UCHAR bVendorCode;
440 union {
441 UCHAR bPad;
442 UCHAR bFlags;
443 };
444} OS_STRING, *POS_STRING;
445
446struct _URB_OS_FEATURE_DESCRIPTOR_REQUEST {
447 struct _URB_HEADER Hdr;
449 ULONG Reserved0;
450 ULONG TransferBufferLength;
451 PVOID TransferBuffer;
452 PMDL TransferBufferMDL;
453 struct _URB *UrbLink;
454 struct _URB_HCD_AREA hca;
455 UCHAR Recipient:5;
459 UCHAR MS_PageIndex;
460 USHORT MS_FeatureDescriptorIndex;
462};
463
464#endif
465
473 struct _URB *UrbLink;
476};
477
478#if (_WIN32_WINNT >= 0x0600)
479
480struct _URB_CONTROL_TRANSFER_EX {
481 struct _URB_HEADER Hdr;
483 ULONG TransferFlags;
484 ULONG TransferBufferLength;
485 PVOID TransferBuffer;
486 PMDL TransferBufferMDL;
488#ifdef WIN64
489 ULONG Pad;
490#endif
491 struct _URB_HCD_AREA hca;
493};
494
495#endif
496
504 struct _URB *UrbLink;
506};
507
513
521 struct _URB *UrbLink;
527};
528
529typedef struct _URB {
530 __GNU_EXTENSION union {
540#if (_WIN32_WINNT >= 0x0600)
541 struct _URB_CONTROL_TRANSFER_EX UrbControlTransferEx;
542#endif
551#if (_WIN32_WINNT >= 0x0501)
552 struct _URB_OS_FEATURE_DESCRIPTOR_REQUEST UrbOSFeatureDescriptorRequest;
553#endif
554 };
@ Reserved2
Definition: bcd.h:202
@ Reserved1
Definition: bcd.h:201
char * Pad(char *Str, char PadChar, ULONG Length)
Definition: cabman.cxx:29
static HANDLE PipeHandle
Definition: dhcpcsvc.c:22
long LONG
Definition: pedump.c:60
unsigned short USHORT
Definition: pedump.c:61
static ULONG Timeout
Definition: ping.c:61
@ Reserved3
Definition: sacdrv.h:1471
USBD_PIPE_HANDLE PipeHandle
Definition: usb.h:499
struct _URB_HEADER Hdr
Definition: usb.h:498
struct _URB * UrbLink
Definition: usb.h:504
struct _URB_HCD_AREA hca
Definition: usb.h:505
struct _URB * UrbLink
Definition: usb.h:347
struct _URB_HCD_AREA hca
Definition: usb.h:348
struct _URB_HEADER Hdr
Definition: usb.h:341
struct _URB * UrbLink
Definition: usb.h:377
struct _URB_HEADER Hdr
Definition: usb.h:371
struct _URB_HCD_AREA hca
Definition: usb.h:378
struct _URB_HCD_AREA hca
Definition: usb.h:423
struct _URB_HEADER Hdr
Definition: usb.h:402
struct _URB_HCD_AREA hca
Definition: usb.h:409
struct _URB_HCD_AREA hca
Definition: usb.h:364
struct _URB * UrbLink
Definition: usb.h:363
struct _URB_HEADER Hdr
Definition: usb.h:357
PMDL TransferBufferMDL
Definition: usb.h:472
struct _URB * UrbLink
Definition: usb.h:473
USBD_PIPE_HANDLE PipeHandle
Definition: usb.h:468
ULONG TransferFlags
Definition: usb.h:469
struct _URB_HCD_AREA hca
Definition: usb.h:474
ULONG TransferBufferLength
Definition: usb.h:470
PVOID TransferBuffer
Definition: usb.h:471
struct _URB_HEADER Hdr
Definition: usb.h:467
struct _URB_HCD_AREA hca
Definition: usb.h:393
struct _URB_HEADER Hdr
Definition: usb.h:386
struct _URB_HEADER Hdr
Definition: usb.h:321
struct _URB_HEADER Hdr
Definition: usb.h:336
struct _URB_HEADER Hdr
Definition: usb.h:325
ULONG FrameNumber
Definition: usb.h:327
ULONG FrameLength
Definition: usb.h:326
PVOID Reserved8[8]
Definition: usb.h:290
USHORT Function
Definition: usb.h:295
USHORT Length
Definition: usb.h:294
PVOID UsbdDeviceHandle
Definition: usb.h:297
USBD_STATUS Status
Definition: usb.h:296
ULONG UsbdFlags
Definition: usb.h:298
USBD_PIPE_HANDLE PipeHandle
Definition: usb.h:516
struct _URB_HEADER Hdr
Definition: usb.h:515
ULONG ErrorCount
Definition: usb.h:525
ULONG StartFrame
Definition: usb.h:523
struct _URB_HCD_AREA hca
Definition: usb.h:522
USBD_ISO_PACKET_DESCRIPTOR IsoPacket[1]
Definition: usb.h:526
PVOID TransferBuffer
Definition: usb.h:519
ULONG NumberOfPackets
Definition: usb.h:524
struct _URB * UrbLink
Definition: usb.h:521
ULONG TransferBufferLength
Definition: usb.h:518
ULONG TransferFlags
Definition: usb.h:517
PMDL TransferBufferMDL
Definition: usb.h:520
struct _URB_HEADER Hdr
Definition: usb.h:315
ULONG Reserved
Definition: usb.h:317
USBD_PIPE_HANDLE PipeHandle
Definition: usb.h:316
struct _URB_HEADER Hdr
Definition: usb.h:308
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor
Definition: usb.h:309
USBD_INTERFACE_INFORMATION Interface
Definition: usb.h:311
USBD_CONFIGURATION_HANDLE ConfigurationHandle
Definition: usb.h:310
struct _URB_HEADER Hdr
Definition: usb.h:302
USBD_INTERFACE_INFORMATION Interface
Definition: usb.h:304
USBD_CONFIGURATION_HANDLE ConfigurationHandle
Definition: usb.h:303
struct _URB_HEADER Hdr
Definition: usb.h:331
LONG FrameLengthDelta
Definition: usb.h:332
Definition: usb.h:529
struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST UrbControlVendorClassRequest
Definition: usb.h:548
struct _URB_CONTROL_GET_INTERFACE_REQUEST UrbControlGetInterfaceRequest
Definition: usb.h:549
struct _URB_FRAME_LENGTH_CONTROL UrbFrameLengthControl
Definition: usb.h:535
struct _URB_CONTROL_FEATURE_REQUEST UrbControlFeatureRequest
Definition: usb.h:547
struct _URB_SET_FRAME_LENGTH UrbSetFrameLength
Definition: usb.h:537
struct _URB_SELECT_CONFIGURATION UrbSelectConfiguration
Definition: usb.h:533
struct _URB_ISOCH_TRANSFER UrbIsochronousTransfer
Definition: usb.h:544
struct _URB_CONTROL_GET_CONFIGURATION_REQUEST UrbControlGetConfigurationRequest
Definition: usb.h:550
struct _URB_CONTROL_DESCRIPTOR_REQUEST UrbControlDescriptorRequest
Definition: usb.h:545
struct _URB_CONTROL_TRANSFER UrbControlTransfer
Definition: usb.h:539
struct _URB_BULK_OR_INTERRUPT_TRANSFER UrbBulkOrInterruptTransfer
Definition: usb.h:543
struct _URB_GET_FRAME_LENGTH UrbGetFrameLength
Definition: usb.h:536
struct _URB_CONTROL_GET_STATUS_REQUEST UrbControlGetStatusRequest
Definition: usb.h:546
struct _URB_PIPE_REQUEST UrbPipeRequest
Definition: usb.h:534
struct _URB_GET_CURRENT_FRAME_NUMBER UrbGetCurrentFrameNumber
Definition: usb.h:538
struct _URB_SELECT_INTERFACE UrbSelectInterface
Definition: usb.h:532
struct _URB_HEADER UrbHeader
Definition: usb.h:531
PVOID UsbdDeviceHandle
Definition: usb.h:255
USB_DEVICE_DESCRIPTOR DeviceDescriptor
Definition: usb.h:256
USBD_INTERFACE_HANDLE InterfaceHandle
Definition: usb.h:284
USBD_PIPE_INFORMATION Pipes[1]
Definition: usb.h:286
USBD_STATUS Status
Definition: usb.h:511
USHORT MaximumPacketSize
Definition: usb.h:260
ULONG MaximumTransferSize
Definition: usb.h:265
USBD_PIPE_TYPE PipeType
Definition: usb.h:263
UCHAR EndpointAddress
Definition: usb.h:261
USBD_PIPE_HANDLE PipeHandle
Definition: usb.h:264
ULONG Supported_USB_Version
Definition: usb.h:241
uint32_t ULONG
Definition: typedefs.h:59
struct _USBD_INTERFACE_INFORMATION * PUSBD_INTERFACE_INFORMATION
struct _USBD_PIPE_INFORMATION USBD_PIPE_INFORMATION
struct _URB * PURB
PVOID USBD_PIPE_HANDLE
Definition: usb.h:229
PVOID PMDL
Definition: usb.h:39
struct _USBD_INTERFACE_INFORMATION USBD_INTERFACE_INFORMATION
struct _USBD_ISO_PACKET_DESCRIPTOR USBD_ISO_PACKET_DESCRIPTOR
struct _USBD_VERSION_INFORMATION * PUSBD_VERSION_INFORMATION
struct _USBD_ISO_PACKET_DESCRIPTOR * PUSBD_ISO_PACKET_DESCRIPTOR
enum _USBD_PIPE_TYPE USBD_PIPE_TYPE
PVOID USBD_INTERFACE_HANDLE
Definition: usb.h:231
struct _USBD_VERSION_INFORMATION USBD_VERSION_INFORMATION
PVOID PIRP
Definition: usb.h:38
_USB_CONTROLLER_FLAVOR
Definition: usb.h:54
@ OHCI_Generic
Definition: usb.h:56
@ EHCI_Generic
Definition: usb.h:76
@ UHCI_VIA_x03
Definition: usb.h:73
@ UHCI_VIA_x01
Definition: usb.h:71
@ OHCI_NEC
Definition: usb.h:58
@ UHCI_Ich3m
Definition: usb.h:65
@ EHCI_Lucent
Definition: usb.h:78
@ UHCI_Ich2
Definition: usb.h:62
@ UHCI_Ich5
Definition: usb.h:67
@ UHCI_Piix3
Definition: usb.h:61
@ UHCI_Ich6
Definition: usb.h:68
@ USB_HcGeneric
Definition: usb.h:55
@ UHCI_VIA
Definition: usb.h:70
@ UHCI_Piix4
Definition: usb.h:60
@ UHCI_Ich1
Definition: usb.h:64
@ EHCI_NEC
Definition: usb.h:77
@ UHCI_Intel
Definition: usb.h:69
@ UHCI_VIA_x04
Definition: usb.h:74
@ UHCI_Generic
Definition: usb.h:59
@ UHCI_Reserved204
Definition: usb.h:63
@ OHCI_Hydra
Definition: usb.h:57
@ UHCI_Ich4
Definition: usb.h:66
@ UHCI_VIA_x02
Definition: usb.h:72
@ UHCI_VIA_x0E_FIFO
Definition: usb.h:75
struct _USBD_DEVICE_INFORMATION USBD_DEVICE_INFORMATION
enum _USB_CONTROLLER_FLAVOR USB_CONTROLLER_FLAVOR
struct _USBD_PIPE_INFORMATION * PUSBD_PIPE_INFORMATION
LONG USBD_STATUS
Definition: usb.h:165
_USBD_PIPE_TYPE
Definition: usb.h:244
@ UsbdPipeTypeIsochronous
Definition: usb.h:246
@ UsbdPipeTypeControl
Definition: usb.h:245
@ UsbdPipeTypeInterrupt
Definition: usb.h:248
@ UsbdPipeTypeBulk
Definition: usb.h:247
PVOID USBD_CONFIGURATION_HANDLE
Definition: usb.h:230
struct _URB URB
struct _USBD_DEVICE_INFORMATION * PUSBD_DEVICE_INFORMATION
#define __GNU_EXTENSION
Definition: usb.h:28
_In_ PVOID _In_ LONG InterfaceNumber
Definition: usbdlib.h:169
_Must_inspect_result_ _In_ WDFUSBDEVICE _In_opt_ WDFREQUEST _In_opt_ PWDF_REQUEST_SEND_OPTIONS _In_ PWDF_USB_CONTROL_SETUP_PACKET SetupPacket
Definition: wdfusb.h:1337
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
unsigned char UCHAR
Definition: xmlstorage.h:181
__wchar_t WCHAR
Definition: xmlstorage.h:180