ReactOS  0.4.14-dev-52-g6116262
usbbusif.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _USB_BUS_INFORMATION_LEVEL_0
 
struct  _USB_BUS_INFORMATION_LEVEL_1
 
struct  _USB_BUS_INTERFACE_USBDI_V0
 
struct  _USB_BUS_INTERFACE_USBDI_V1
 
struct  _USB_BUS_INTERFACE_USBDI_V2
 
struct  _USB_BUS_INTERFACE_USBDI_V3
 
struct  _USBC_FUNCTION_DESCRIPTOR
 
struct  _USBC_DEVICE_CONFIGURATION_INTERFACE_V1
 

Macros

#define _USBBUSIF_
 
#define USB_BUSIFFN   __stdcall
 
#define USB_HCD_CAPS_SUPPORTS_RT_THREADS   0x00000001
 
#define USB_BUSIF_USBDI_VERSION_0   0x0000
 
#define USB_BUSIF_USBDI_VERSION_1   0x0001
 
#define USB_BUSIF_USBDI_VERSION_2   0x0002
 
#define USB_BUSIF_USBDI_VERSION_3   0x0003
 
#define USBC_FUNCTION_FLAG_APPEND_ID   0x1
 
#define USBC_DEVICE_CONFIGURATION_INTERFACE_VERSION_1   0x0001
 

Typedefs

typedef PVOID PUSB_DEVICE_HANDLE
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_SUBMIT_ISO_OUT_URB) (_In_ PVOID, _In_ PURB)
 
typedef VOID(USB_BUSIFFNPUSB_BUSIFFN_GETUSBDI_VERSION) (_In_ PVOID, _Out_opt_ PUSBD_VERSION_INFORMATION, _Out_opt_ PULONG)
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_QUERY_BUS_TIME) (_In_ PVOID, _Out_opt_ PULONG)
 
typedef NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_ENUM_LOG_ENTRY) (_In_ PVOID, _In_ ULONG, _In_ ULONG, _In_ ULONG, _In_ ULONG)
 
typedef struct _USB_BUS_INFORMATION_LEVEL_0 USB_BUS_INFORMATION_LEVEL_0
 
typedef struct _USB_BUS_INFORMATION_LEVEL_0PUSB_BUS_INFORMATION_LEVEL_0
 
typedef struct _USB_BUS_INFORMATION_LEVEL_1 USB_BUS_INFORMATION_LEVEL_1
 
typedef struct _USB_BUS_INFORMATION_LEVEL_1PUSB_BUS_INFORMATION_LEVEL_1
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_QUERY_BUS_INFORMATION) (_In_ PVOID, _In_ ULONG, _Inout_ PVOID, _Out_ PULONG, _Out_opt_ PULONG)
 
typedef _Must_inspect_result_ BOOLEAN(USB_BUSIFFNPUSB_BUSIFFN_IS_DEVICE_HIGH_SPEED) (_In_opt_ PVOID)
 
typedef struct _USB_BUS_INTERFACE_USBDI_V0 USB_BUS_INTERFACE_USBDI_V0
 
typedef struct _USB_BUS_INTERFACE_USBDI_V0PUSB_BUS_INTERFACE_USBDI_V0
 
typedef struct _USB_BUS_INTERFACE_USBDI_V1 USB_BUS_INTERFACE_USBDI_V1
 
typedef struct _USB_BUS_INTERFACE_USBDI_V1PUSB_BUS_INTERFACE_USBDI_V1
 
typedef struct _USB_BUS_INTERFACE_USBDI_V2 USB_BUS_INTERFACE_USBDI_V2
 
typedef struct _USB_BUS_INTERFACE_USBDI_V2PUSB_BUS_INTERFACE_USBDI_V2
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_QUERY_BUS_TIME_EX) (_In_opt_ PVOID, _Out_opt_ PULONG)
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_QUERY_CONTROLLER_TYPE) (_In_opt_ PVOID, _Out_opt_ PULONG, _Out_opt_ PUSHORT, _Out_opt_ PUSHORT, _Out_opt_ PUCHAR, _Out_opt_ PUCHAR, _Out_opt_ PUCHAR, _Out_opt_ PUCHAR)
 
typedef struct _USB_BUS_INTERFACE_USBDI_V3 USB_BUS_INTERFACE_USBDI_V3
 
typedef struct _USB_BUS_INTERFACE_USBDI_V3PUSB_BUS_INTERFACE_USBDI_V3
 
typedef struct _USBC_FUNCTION_DESCRIPTOR USBC_FUNCTION_DESCRIPTOR
 
typedef struct _USBC_FUNCTION_DESCRIPTORPUSBC_FUNCTION_DESCRIPTOR
 
typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFNUSBC_START_DEVICE_CALLBACK) (_In_ PUSB_DEVICE_DESCRIPTOR DeviceDescriptor, _In_ PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor, _Outptr_result_bytebuffer_maybenull_(*FunctionDescriptorBufferLength) PUSBC_FUNCTION_DESCRIPTOR *FunctionDescriptorBuffer, _Out_ PULONG FunctionDescriptorBufferLength, _In_ PDEVICE_OBJECT FdoDeviceObject, _In_ PDEVICE_OBJECT PdoDeviceObject)
 
typedef _Must_inspect_result_ BOOLEAN(USB_BUSIFFNUSBC_PDO_ENABLE_CALLBACK) (_In_ PVOID Context, _In_ USHORT FirstInterfaceNumber, _In_ USHORT NumberOfInterfaces, _In_ UCHAR FunctionClass, _In_ UCHAR FunctionSubClass, _In_ UCHAR FunctionProtocol)
 
typedef struct _USBC_DEVICE_CONFIGURATION_INTERFACE_V1 USBC_DEVICE_CONFIGURATION_INTERFACE_V1
 
typedef struct _USBC_DEVICE_CONFIGURATION_INTERFACE_V1PUSBC_DEVICE_CONFIGURATION_INTERFACE_V1
 

Functions

 DEFINE_GUID (USB_BUS_INTERFACE_USBDI_GUID, 0xb1a96a13, 0x3de0, 0x4574, 0x9b, 0x1, 0xc0, 0x8f, 0xea, 0xb3, 0x18, 0xd6)
 
 DEFINE_GUID (USB_BUS_INTERFACE_USBC_CONFIGURATION_GUID, 0x893b6a96, 0xb7f, 0x4d4d, 0xbd, 0xb4, 0xbb, 0xd4, 0xce, 0xeb, 0xb3, 0x1c)
 

Macro Definition Documentation

◆ _USBBUSIF_

#define _USBBUSIF_

Definition at line 3 of file usbbusif.h.

◆ USB_BUSIF_USBDI_VERSION_0

#define USB_BUSIF_USBDI_VERSION_0   0x0000

Definition at line 73 of file usbbusif.h.

◆ USB_BUSIF_USBDI_VERSION_1

#define USB_BUSIF_USBDI_VERSION_1   0x0001

Definition at line 74 of file usbbusif.h.

◆ USB_BUSIF_USBDI_VERSION_2

#define USB_BUSIF_USBDI_VERSION_2   0x0002

Definition at line 75 of file usbbusif.h.

◆ USB_BUSIF_USBDI_VERSION_3

#define USB_BUSIF_USBDI_VERSION_3   0x0003

Definition at line 76 of file usbbusif.h.

◆ USB_BUSIFFN

#define USB_BUSIFFN   __stdcall

Definition at line 6 of file usbbusif.h.

◆ USB_HCD_CAPS_SUPPORTS_RT_THREADS

#define USB_HCD_CAPS_SUPPORTS_RT_THREADS   0x00000001

Definition at line 22 of file usbbusif.h.

◆ USBC_DEVICE_CONFIGURATION_INTERFACE_VERSION_1

#define USBC_DEVICE_CONFIGURATION_INTERFACE_VERSION_1   0x0001

Definition at line 199 of file usbbusif.h.

◆ USBC_FUNCTION_FLAG_APPEND_ID

#define USBC_FUNCTION_FLAG_APPEND_ID   0x1

Definition at line 163 of file usbbusif.h.

Typedef Documentation

◆ PUSB_BUS_INFORMATION_LEVEL_0

◆ PUSB_BUS_INFORMATION_LEVEL_1

◆ PUSB_BUS_INTERFACE_USBDI_V0

◆ PUSB_BUS_INTERFACE_USBDI_V1

◆ PUSB_BUS_INTERFACE_USBDI_V2

◆ PUSB_BUS_INTERFACE_USBDI_V3

◆ PUSB_BUSIFFN_ENUM_LOG_ENTRY

typedef NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_ENUM_LOG_ENTRY) (_In_ PVOID, _In_ ULONG, _In_ ULONG, _In_ ULONG, _In_ ULONG)

Definition at line 38 of file usbbusif.h.

◆ PUSB_BUSIFFN_GETUSBDI_VERSION

typedef VOID(USB_BUSIFFN * PUSB_BUSIFFN_GETUSBDI_VERSION) (_In_ PVOID, _Out_opt_ PUSBD_VERSION_INFORMATION, _Out_opt_ PULONG)

Definition at line 25 of file usbbusif.h.

◆ PUSB_BUSIFFN_IS_DEVICE_HIGH_SPEED

typedef _Must_inspect_result_ BOOLEAN(USB_BUSIFFN * PUSB_BUSIFFN_IS_DEVICE_HIGH_SPEED) (_In_opt_ PVOID)

Definition at line 70 of file usbbusif.h.

◆ PUSB_BUSIFFN_QUERY_BUS_INFORMATION

typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_QUERY_BUS_INFORMATION) (_In_ PVOID, _In_ ULONG, _Inout_ PVOID, _Out_ PULONG, _Out_opt_ PULONG)

Definition at line 60 of file usbbusif.h.

◆ PUSB_BUSIFFN_QUERY_BUS_TIME

typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_QUERY_BUS_TIME) (_In_ PVOID, _Out_opt_ PULONG)

Definition at line 33 of file usbbusif.h.

◆ PUSB_BUSIFFN_QUERY_BUS_TIME_EX

typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_QUERY_BUS_TIME_EX) (_In_opt_ PVOID, _Out_opt_ PULONG)

Definition at line 127 of file usbbusif.h.

◆ PUSB_BUSIFFN_QUERY_CONTROLLER_TYPE

◆ PUSB_BUSIFFN_SUBMIT_ISO_OUT_URB

typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_SUBMIT_ISO_OUT_URB) (_In_ PVOID, _In_ PURB)

Definition at line 18 of file usbbusif.h.

◆ PUSB_DEVICE_HANDLE

Definition at line 12 of file usbbusif.h.

◆ PUSBC_DEVICE_CONFIGURATION_INTERFACE_V1

◆ PUSBC_FUNCTION_DESCRIPTOR

◆ USB_BUS_INFORMATION_LEVEL_0

◆ USB_BUS_INFORMATION_LEVEL_1

◆ USB_BUS_INTERFACE_USBDI_V0

◆ USB_BUS_INTERFACE_USBDI_V1

◆ USB_BUS_INTERFACE_USBDI_V2

◆ USB_BUS_INTERFACE_USBDI_V3

◆ USBC_DEVICE_CONFIGURATION_INTERFACE_V1

◆ USBC_FUNCTION_DESCRIPTOR

◆ USBC_PDO_ENABLE_CALLBACK

typedef _Must_inspect_result_ BOOLEAN(USB_BUSIFFN * USBC_PDO_ENABLE_CALLBACK) (_In_ PVOID Context, _In_ USHORT FirstInterfaceNumber, _In_ USHORT NumberOfInterfaces, _In_ UCHAR FunctionClass, _In_ UCHAR FunctionSubClass, _In_ UCHAR FunctionProtocol)

Definition at line 191 of file usbbusif.h.

◆ USBC_START_DEVICE_CALLBACK

typedef _Must_inspect_result_ NTSTATUS(USB_BUSIFFN * USBC_START_DEVICE_CALLBACK) (_In_ PUSB_DEVICE_DESCRIPTOR DeviceDescriptor, _In_ PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor, _Outptr_result_bytebuffer_maybenull_(*FunctionDescriptorBufferLength) PUSBC_FUNCTION_DESCRIPTOR *FunctionDescriptorBuffer, _Out_ PULONG FunctionDescriptorBufferLength, _In_ PDEVICE_OBJECT FdoDeviceObject, _In_ PDEVICE_OBJECT PdoDeviceObject)

Definition at line 179 of file usbbusif.h.

Function Documentation

◆ DEFINE_GUID() [1/2]

DEFINE_GUID ( USB_BUS_INTERFACE_USBDI_GUID  ,
0xb1a96a13  ,
0x3de0  ,
0x4574  ,
0x9b  ,
0x1  ,
0xc0  ,
0x8f  ,
0xea  ,
0xb3  ,
0x18  ,
0xd6   
)

◆ DEFINE_GUID() [2/2]

DEFINE_GUID ( USB_BUS_INTERFACE_USBC_CONFIGURATION_GUID  ,
0x893b6a96  ,
0xb7f  ,
0x4d4d  ,
0xbd  ,
0xb4  ,
0xbb  ,
0xd4  ,
0xce  ,
0xeb  ,
0xb3  ,
0x1c   
)