ReactOS 0.4.16-dev-334-g4d9f67c
hubbusif.h File Reference
#include "usbdi.h"
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for hubbusif.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ROOTHUB_PDO_EXTENSION
 
struct  _USB_CD_ERROR_INFORMATION
 
struct  _USB_PORT_PATH
 
struct  _USB_ID_ERROR_INFORMATION
 
struct  _USB_BUS_INTERFACE_HUB_V0
 
struct  _USB_BUS_INTERFACE_HUB_V1
 
struct  _USB_BUS_INTERFACE_HUB_V2
 
struct  _USB_BUS_INTERFACE_HUB_V3
 
struct  _USB_BUS_INTERFACE_HUB_V4
 
struct  _USB_BUS_INTERFACE_HUB_V5
 
struct  _USB_BUS_INTERFACE_HUB_V6
 
struct  _USB_BUS_INTERFACE_HUB_V7
 
struct  _USB_BUS_INTERFACE_HUB_MINIDUMP
 
struct  _USB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND
 
struct  _USB_PIPE_INFORMATION_0
 
struct  _USB_LEVEL_INFORMATION
 
struct  _USB_DEVICE_INFORMATION_0
 
struct  _USB_CONTROLLER_INFORMATION_0
 
struct  _USB_CONTROLLER_INFORMATION_1
 
struct  _USB_EXTPORT_INFORMATION_0
 
struct  _USB_EXTHUB_INFORMATION_0
 
struct  _USB_DEVICE_PERFORMANCE_INFO_0
 

Macros

#define _HUBBUSIF_
 
#define USBD_DEVHACK_SLOW_ENUMERATION   0x00000001
 
#define USBD_DEVHACK_DISABLE_SN   0x00000002
 
#define USBD_DEVHACK_SET_DIAG_ID   0x00000004
 
#define USB_BUSIFFN   __stdcall
 
#define CD_ERR_V1   0x00000001
 
#define ID_ERR_V1   0x00000001
 
#define USBD_KEEP_DEVICE_DATA   0x00000001
 
#define USBD_MARK_DEVICE_BUSY   0x00000002
 
#define USB_IDLE_NOT_READY   0
 
#define USB_IDLE_READY   1
 
#define ERRATA_FLAG_RESET_TT_ON_CANCEL   1
 
#define ERRATA_FLAG_NO_CLEAR_TT_BUFFER_ON_CANCEL   2
 
#define USB_BUSIF_HUB_VERSION_0   0x0000
 
#define USB_BUSIF_HUB_VERSION_1   0x0001
 
#define USB_BUSIF_HUB_VERSION_2   0x0002
 
#define USB_BUSIF_HUB_VERSION_3   0x0003
 
#define USB_BUSIF_HUB_VERSION_4   0x0004
 
#define USB_BUSIF_HUB_VERSION_5   0x0005
 
#define USB_BUSIF_HUB_VERSION_6   0x0006
 
#define USB_BUSIF_HUB_VERSION_7   0x0007
 
#define USB_BUSIF_HUB_MIDUMP_VERSION_0   0x0000
 
#define USB_BUSIF_HUB_SS_VERSION_0   0x0000
 

Typedefs

typedef PVOID PUSB_DEVICE_HANDLE
 
typedef struct _ROOTHUB_PDO_EXTENSION ROOTHUB_PDO_EXTENSION
 
typedef struct _ROOTHUB_PDO_EXTENSIONPROOTHUB_PDO_EXTENSION
 
typedef USB_BUSIFFN_CREATE_USB_DEVICE * PUSB_BUSIFFN_CREATE_USB_DEVICE
 
typedef enum _USBPORT_CREATEDEV_ERROR USBPORT_CREATEDEV_ERROR
 
typedef struct _USB_CD_ERROR_INFORMATION USB_CD_ERROR_INFORMATION
 
typedef struct _USB_CD_ERROR_INFORMATIONPUSB_CD_ERROR_INFORMATION
 
typedef USB_BUSIFFN_CREATE_USB_DEVICE_EX * PUSB_BUSIFFN_CREATE_USB_DEVICE_EX
 
typedef struct _USB_PORT_PATH USB_PORT_PATH
 
typedef struct _USB_PORT_PATHPUSB_PORT_PATH
 
typedef USB_BUSIFFN_CREATE_USB_DEVICE_V7 * PUSB_BUSIFFN_CREATE_USB_DEVICE_V7
 
typedef enum _USBPORT_INITDEV_ERROR USBPORT_INITDEV_ERROR
 
typedef struct _USB_ID_ERROR_INFORMATION USB_ID_ERROR_INFORMATION
 
typedef struct _USB_ID_ERROR_INFORMATIONPUSB_ID_ERROR_INFORMATION
 
typedef USB_BUSIFFN_INITIALIZE_USB_DEVICE * PUSB_BUSIFFN_INITIALIZE_USB_DEVICE
 
typedef USB_BUSIFFN_INITIALIZE_USB_DEVICE_EX * PUSB_BUSIFFN_INITIALIZE_USB_DEVICE_EX
 
typedef USB_BUSIFFN_REMOVE_USB_DEVICE * PUSB_BUSIFFN_REMOVE_USB_DEVICE
 
typedef USB_BUSIFFN_GET_USB_DESCRIPTORS * PUSB_BUSIFFN_GET_USB_DESCRIPTORS
 
typedef USB_BUSIFFN_RESTORE_DEVICE * PUSB_BUSIFFN_RESTORE_DEVICE
 
typedef USB_BUSIFFN_GET_POTRTHACK_FLAGS * PUSB_BUSIFFN_GET_POTRTHACK_FLAGS
 
typedef USB_BUSIFFN_GET_DEVICE_INFORMATION * PUSB_BUSIFFN_GET_DEVICE_INFORMATION
 
typedef USB_BUSIFFN_GET_CONTROLLER_INFORMATION * PUSB_BUSIFFN_GET_CONTROLLER_INFORMATION
 
typedef USB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND * PUSB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND
 
typedef USB_BUSIFFN_GET_EXTENDED_HUB_INFO * PUSB_BUSIFFN_GET_EXTENDED_HUB_INFO
 
typedef USB_BUSIFFN_GET_ROOTHUB_SYM_NAME * PUSB_BUSIFFN_GET_ROOTHUB_SYM_NAME
 
typedef USB_BUSIFFN_GET_DEVICE_BUSCONTEXT * PUSB_BUSIFFN_GET_DEVICE_BUSCONTEXT
 
typedef USB_BUSIFFN_INITIALIZE_20HUB * PUSB_BUSIFFN_INITIALIZE_20HUB
 
typedef USB_BUSIFFN_IS_ROOT * PUSB_BUSIFFN_IS_ROOT
 
typedef USB_BUSIFFN_ACQUIRE_SEMAPHORE * PUSB_BUSIFFN_ACQUIRE_SEMAPHORE
 
typedef USB_BUSIFFN_RELEASE_SEMAPHORE * PUSB_BUSIFFN_RELEASE_SEMAPHORE
 
typedef RH_INIT_CALLBACK * PRH_INIT_CALLBACK
 
typedef USB_BUSIFFN_ROOTHUB_INIT_NOTIFY * PUSB_BUSIFFN_ROOTHUB_INIT_NOTIFY
 
typedef USB_BUSIFFN_FLUSH_TRANSFERS * PUSB_BUSIFFN_FLUSH_TRANSFERS
 
typedef USB_BUSIFFN_CALC_PIPE_BANDWIDTH * PUSB_BUSIFFN_CALC_PIPE_BANDWIDTH
 
typedef USB_BUSIFFN_SET_BUS_WAKE_MODE * PUSB_BUSIFFN_SET_BUS_WAKE_MODE
 
typedef USB_BUSIFFN_SET_DEVICE_FLAG * PUSB_BUSIFFN_SET_DEVICE_FLAG
 
typedef USB_BUSIFFN_SET_DEVHANDLE_DATA * PUSB_BUSIFFN_SET_DEVHANDLE_DATA
 
typedef USB_BUSIFFN_TEST_POINT * PUSB_BUSIFFN_TEST_POINT
 
typedef USB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO * PUSB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO
 
typedef USB_BUSIFFN_WAIT_ASYNC_POWERUP * PUSB_BUSIFFN_WAIT_ASYNC_POWERUP
 
typedef USB_BUSIFFN_GET_DEVICE_ADDRESS * PUSB_BUSIFFN_GET_DEVICE_ADDRESS
 
typedef USB_BUSIFFN_DEREF_DEVICE_HANDLE * PUSB_BUSIFFN_DEREF_DEVICE_HANDLE
 
typedef USB_BUSIFFN_REF_DEVICE_HANDLE * PUSB_BUSIFFN_REF_DEVICE_HANDLE
 
typedef USB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE * PUSB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE
 
typedef USB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT * PUSB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT
 
typedef USB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT * PUSB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT
 
typedef USB_BUSIFFN_ABORT_ALL_DEVICE_PIPES * PUSB_BUSIFFN_ABORT_ALL_DEVICE_PIPES
 
typedef USB_BUSIFFN_SET_DEVICE_ERRATA_FLAG * PUSB_BUSIFFN_SET_DEVICE_ERRATA_FLAG
 
typedef struct _USB_BUS_INTERFACE_HUB_V0 USB_BUS_INTERFACE_HUB_V0
 
typedef struct _USB_BUS_INTERFACE_HUB_V0PUSB_BUS_INTERFACE_HUB_V0
 
typedef struct _USB_BUS_INTERFACE_HUB_V1 USB_BUS_INTERFACE_HUB_V1
 
typedef struct _USB_BUS_INTERFACE_HUB_V1PUSB_BUS_INTERFACE_HUB_V1
 
typedef struct _USB_BUS_INTERFACE_HUB_V2 USB_BUS_INTERFACE_HUB_V2
 
typedef struct _USB_BUS_INTERFACE_HUB_V2PUSB_BUS_INTERFACE_HUB_V2
 
typedef struct _USB_BUS_INTERFACE_HUB_V3 USB_BUS_INTERFACE_HUB_V3
 
typedef struct _USB_BUS_INTERFACE_HUB_V3PUSB_BUS_INTERFACE_HUB_V3
 
typedef struct _USB_BUS_INTERFACE_HUB_V4 USB_BUS_INTERFACE_HUB_V4
 
typedef struct _USB_BUS_INTERFACE_HUB_V4PUSB_BUS_INTERFACE_HUB_V4
 
typedef struct _USB_BUS_INTERFACE_HUB_V5 USB_BUS_INTERFACE_HUB_V5
 
typedef struct _USB_BUS_INTERFACE_HUB_V5PUSB_BUS_INTERFACE_HUB_V5
 
typedef struct _USB_BUS_INTERFACE_HUB_V6 USB_BUS_INTERFACE_HUB_V6
 
typedef struct _USB_BUS_INTERFACE_HUB_V6PUSB_BUS_INTERFACE_HUB_V6
 
typedef struct _USB_BUS_INTERFACE_HUB_V7 USB_BUS_INTERFACE_HUB_V7
 
typedef struct _USB_BUS_INTERFACE_HUB_V7PUSB_BUS_INTERFACE_HUB_V7
 
typedef VOID(USB_BUSIFFNPUSB_BUSIFFN_SET_MINIDUMP_FLAGS) (IN PVOID)
 
typedef struct _USB_BUS_INTERFACE_HUB_MINIDUMP USB_BUS_INTERFACE_HUB_MINIDUMP
 
typedef struct _USB_BUS_INTERFACE_HUB_MINIDUMPPUSB_BUS_INTERFACE_HUB_MINIDUMP
 
typedef NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_SUSPEND_HUB) (PDEVICE_OBJECT Pdo)
 
typedef NTSTATUS(USB_BUSIFFNPUSB_BUSIFFN_RESUME_HUB) (PDEVICE_OBJECT Pdo)
 
typedef struct _USB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND USB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND
 
typedef struct _USB_BUS_INTERFACE_HUB_SELECTIVE_SUSPENDPUSB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND
 
typedef struct _USB_PIPE_INFORMATION_0 USB_PIPE_INFORMATION_0
 
typedef struct _USB_PIPE_INFORMATION_0PUSB_PIPE_INFORMATION_0
 
typedef struct _USB_LEVEL_INFORMATION USB_LEVEL_INFORMATION
 
typedef struct _USB_LEVEL_INFORMATIONPUSB_LEVEL_INFORMATION
 
typedef struct _USB_DEVICE_INFORMATION_0 USB_DEVICE_INFORMATION_0
 
typedef struct _USB_DEVICE_INFORMATION_0PUSB_DEVICE_INFORMATION_0
 
typedef struct _USB_CONTROLLER_INFORMATION_0 USB_CONTROLLER_INFORMATION_0
 
typedef struct _USB_CONTROLLER_INFORMATION_0PUSB_CONTROLLER_INFORMATION_0
 
typedef struct _USB_CONTROLLER_INFORMATION_1 USB_CONTROLLER_INFORMATION_1
 
typedef struct _USB_CONTROLLER_INFORMATION_1PUSB_CONTROLLER_INFORMATION_1
 
typedef struct _USB_EXTPORT_INFORMATION_0 USB_EXTPORT_INFORMATION_0
 
typedef struct _USB_EXTPORT_INFORMATION_0PUSB_EXTPORT_INFORMATION
 
typedef struct _USB_EXTHUB_INFORMATION_0 USB_EXTHUB_INFORMATION_0
 
typedef struct _USB_EXTHUB_INFORMATION_0PUSB_EXTHUB_INFORMATION_0
 
typedef struct _USB_DEVICE_PERFORMANCE_INFO_0 USB_DEVICE_PERFORMANCE_INFO_0
 
typedef struct _USB_DEVICE_PERFORMANCE_INFO_0PUSB_DEVICE_PERFORMANCE_INFO_0
 

Enumerations

enum  _USBPORT_CREATEDEV_ERROR {
  CreateDevErrNotSet = 0 , CreateDevBadHubDevHandle , CreateDevFailedAllocDevHandle , CreateDevFailedOpenEndpoint ,
  CreateDevFailedAllocDsBuff , CreateDevFailedGetDs , CreateDevTtNotFound , CreateDevBadDevHandlePtr
}
 
enum  _USBPORT_INITDEV_ERROR { InitDevErrNotSet = 0 , InitDevFailedSetAddress , InitDevFailedPokeEndpoint , InitDevBadDeviceDescriptor }
 

Functions

 _Function_class_ (USB_BUSIFFN_CREATE_USB_DEVICE) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_CREATE_USB_DEVICE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_CREATE_USB_DEVICE_EX) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_CREATE_USB_DEVICE_EX(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_CREATE_USB_DEVICE_V7) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_CREATE_USB_DEVICE_V7(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_INITIALIZE_USB_DEVICE) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_INITIALIZE_USB_DEVICE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_INITIALIZE_USB_DEVICE_EX) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_INITIALIZE_USB_DEVICE_EX(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_REMOVE_USB_DEVICE) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_REMOVE_USB_DEVICE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_USB_DESCRIPTORS) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_USB_DESCRIPTORS(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_RESTORE_DEVICE) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_RESTORE_DEVICE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_POTRTHACK_FLAGS) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_POTRTHACK_FLAGS(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_DEVICE_INFORMATION) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_DEVICE_INFORMATION(_In_ PVOID BusContext
 
_In_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ (DeviceInformationBufferLength, *LengthOfDataCopied) PVOID DeviceInformationBuffer
 
 _Function_class_ (USB_BUSIFFN_GET_CONTROLLER_INFORMATION) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_CONTROLLER_INFORMATION(_In_ PVOID BusContext
 
 _Inout_updates_bytes_to_ (ControllerInformationBufferLength, *LengthOfDataCopied) PVOID ControllerInformationBuffer
 
 _Function_class_ (USB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_EXTENDED_HUB_INFO) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_EXTENDED_HUB_INFO(_In_ PVOID BusContext
 
_In_ PDEVICE_OBJECT _Inout_updates_bytes_to_ (HubInformationBufferLength, *LengthOfDataCopied) PVOID HubInformationBuffer
 
 _Function_class_ (USB_BUSIFFN_GET_ROOTHUB_SYM_NAME) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_ROOTHUB_SYM_NAME(_In_ PVOID BusContext
 
 _Inout_updates_bytes_to_ (HubSymNameBufferLength, *HubSymNameActualLength) PVOID HubSymNameBuffer
 
 _Function_class_ (USB_BUSIFFN_GET_DEVICE_BUSCONTEXT) typedef PVOID USB_BUSIFFN USB_BUSIFFN_GET_DEVICE_BUSCONTEXT(_In_ PVOID HubBusContext
 
 _Function_class_ (USB_BUSIFFN_INITIALIZE_20HUB) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_INITIALIZE_20HUB(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_IS_ROOT) typedef BOOLEAN USB_BUSIFFN USB_BUSIFFN_IS_ROOT(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_ACQUIRE_SEMAPHORE) typedef VOID USB_BUSIFFN USB_BUSIFFN_ACQUIRE_SEMAPHORE(_In_ PVOID BusContext)
 
 _Function_class_ (USB_BUSIFFN_RELEASE_SEMAPHORE) typedef VOID USB_BUSIFFN USB_BUSIFFN_RELEASE_SEMAPHORE(_In_ PVOID BusContext)
 
 _Function_class_ (RH_INIT_CALLBACK) typedef VOID __stdcall RH_INIT_CALLBACK(_In_ PVOID CallBackContext)
 
 _Function_class_ (USB_BUSIFFN_ROOTHUB_INIT_NOTIFY) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_ROOTHUB_INIT_NOTIFY(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_FLUSH_TRANSFERS) typedef VOID USB_BUSIFFN USB_BUSIFFN_FLUSH_TRANSFERS(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_CALC_PIPE_BANDWIDTH) typedef ULONG USB_BUSIFFN USB_BUSIFFN_CALC_PIPE_BANDWIDTH(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_BUS_WAKE_MODE) typedef VOID USB_BUSIFFN USB_BUSIFFN_SET_BUS_WAKE_MODE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_DEVICE_FLAG) typedef VOID USB_BUSIFFN USB_BUSIFFN_SET_DEVICE_FLAG(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_DEVHANDLE_DATA) typedef VOID USB_BUSIFFN USB_BUSIFFN_SET_DEVHANDLE_DATA(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_TEST_POINT) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_TEST_POINT(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_WAIT_ASYNC_POWERUP) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_WAIT_ASYNC_POWERUP(_In_ PVOID BusContext)
 
 _Function_class_ (USB_BUSIFFN_GET_DEVICE_ADDRESS) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_DEVICE_ADDRESS(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_DEREF_DEVICE_HANDLE) typedef VOID USB_BUSIFFN USB_BUSIFFN_DEREF_DEVICE_HANDLE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_REF_DEVICE_HANDLE) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_REF_DEVICE_HANDLE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE) typedef ULONG USB_BUSIFFN USB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT) typedef VOID USB_BUSIFFN USB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_ABORT_ALL_DEVICE_PIPES) typedef NTSTATUS USB_BUSIFFN USB_BUSIFFN_ABORT_ALL_DEVICE_PIPES(_In_ PVOID BusContext
 
 _Function_class_ (USB_BUSIFFN_SET_DEVICE_ERRATA_FLAG) typedef VOID USB_BUSIFFN USB_BUSIFFN_SET_DEVICE_ERRATA_FLAG(_In_ PVOID BusContext
 
 DEFINE_GUID (USB_BUS_INTERFACE_HUB_GUID, 0xb2bb8c0a, 0x5ab4, 0x11d3, 0xa8, 0xcd, 0x0, 0xc0, 0x4f, 0x68, 0x74, 0x7a)
 
 DEFINE_GUID (USB_BUS_INTERFACE_HUB_MINIDUMP_GUID, 0xc5485f21, 0x4e81, 0x4a23, 0xa8, 0xf9, 0xd8, 0x51, 0x8a, 0xf4, 0x5c, 0x38)
 
 DEFINE_GUID (USB_BUS_INTERFACE_HUB_SS_GUID, 0xbfc3f363, 0x8ba1, 0x4c7b, 0x97, 0xba, 0x9b, 0x12, 0xb1, 0xca, 0x13, 0x2f)
 

Variables

_Outptr_ PUSB_DEVICE_HANDLENewDeviceHandle
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE HubDeviceHandle
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT PortStatus
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ USHORT PortNumber
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE HsHubDeviceHandle
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ USHORT _Out_ PUSB_CD_ERROR_INFORMATION CdErrorInfo
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ USHORT _Out_ PUSB_CD_ERROR_INFORMATION _In_ USHORT TtPortNumber
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ PUSB_PORT_PATH PortPath
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ PUSB_PORT_PATH _Out_ PUSB_CD_ERROR_INFORMATION _In_ USHORT _In_ PDEVICE_OBJECT PdoDeviceObject
 
_Outptr_ PUSB_DEVICE_HANDLE _In_ PUSB_DEVICE_HANDLE _In_ USHORT _In_ PUSB_PORT_PATH _Out_ PUSB_CD_ERROR_INFORMATION _In_ USHORT _In_ PDEVICE_OBJECT _In_ PUNICODE_STRING PhysicalDeviceObjectName
 
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
 
_Inout_ PUSB_DEVICE_HANDLE _Out_ PUSB_ID_ERROR_INFORMATION IdErrInfo
 
_Inout_ PUSB_DEVICE_HANDLE _In_ ULONG Flags
 
_Inout_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ DeviceDescriptorBufferLength PUCHAR DeviceDescriptorBuffer
 
_Inout_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ DeviceDescriptorBufferLength PUCHAR _Inout_ PULONG DeviceDescriptorBufferLength
 
_Inout_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ DeviceDescriptorBufferLength PUCHAR _Inout_ PULONG _Out_writes_bytes_to_ ConfigDescriptorBufferLength PUCHAR ConfigDescriptorBuffer
 
_Inout_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ DeviceDescriptorBufferLength PUCHAR _Inout_ PULONG _Out_writes_bytes_to_ ConfigDescriptorBufferLength PUCHAR _Inout_ PULONG ConfigDescriptorBufferLength
 
_Inout_ PUSB_DEVICE_HANDLE OldDeviceHandle
 
_In_ PUSB_DEVICE_HANDLE _In_ ULONG DeviceInformationBufferLength
 
_In_ PUSB_DEVICE_HANDLE _In_ ULONG _Inout_ PULONG LengthOfDataCopied
 
_In_ ULONG ControllerInformationBufferLength
 
_In_ BOOLEAN Enable
 
_In_ PDEVICE_OBJECT HubPhysicalDeviceObject
 
_In_ PDEVICE_OBJECT _In_ ULONG HubInformationBufferLength
 
_In_ ULONG HubSymNameBufferLength
 
_In_ ULONG _Out_ PULONG HubSymNameActualLength
 
_In_ PUSB_DEVICE_HANDLE _In_ ULONG TtCount
 
_In_ PVOID DeviceObject
 
_In_ PVOID CallbackContext
 
_In_ PVOID _In_ PRH_INIT_CALLBACK CallbackRoutine
 
_In_ PUSBD_PIPE_INFORMATION PipeInfo
 
_In_ PUSBD_PIPE_INFORMATION _In_ USB_DEVICE_SPEED DeviceSpeed
 
_In_ ULONG Mode
 
_In_ GUIDDeviceFlagGuid
 
_In_ GUID _In_ PVOID ValueData
 
_In_ GUID _In_ PVOID _In_ ULONG ValueLength
 
_In_ PVOID _In_ PDEVICE_OBJECT UsbDevicePdo
 
_In_ PVOID _In_ ULONG Opcode
 
_In_ PVOID _In_ ULONG _In_ PVOID TestData
 
_In_ PUSB_DEVICE_HANDLE _Out_ PUSHORT DeviceAddress
 
_In_ PUSB_DEVICE_HANDLE _In_ PVOID Object
 
_In_ PUSB_DEVICE_HANDLE _In_ PVOID _In_ ULONG Tag
 
_In_ PUSB_DEVICE_HANDLE _In_ ULONG NewIdleReadyState
 
_In_ USHORT _Out_ LPGUID ContainerId
 
_In_ PUSB_DEVICE_HANDLE _In_ ULONG DeviceErrataFlag
 

Macro Definition Documentation

◆ _HUBBUSIF_

#define _HUBBUSIF_

Definition at line 3 of file hubbusif.h.

◆ CD_ERR_V1

#define CD_ERR_V1   0x00000001

Definition at line 25 of file hubbusif.h.

◆ ERRATA_FLAG_NO_CLEAR_TT_BUFFER_ON_CANCEL

#define ERRATA_FLAG_NO_CLEAR_TT_BUFFER_ON_CANCEL   2

Definition at line 419 of file hubbusif.h.

◆ ERRATA_FLAG_RESET_TT_ON_CANCEL

#define ERRATA_FLAG_RESET_TT_ON_CANCEL   1

Definition at line 418 of file hubbusif.h.

◆ ID_ERR_V1

#define ID_ERR_V1   0x00000001

Definition at line 27 of file hubbusif.h.

◆ USB_BUSIF_HUB_MIDUMP_VERSION_0

#define USB_BUSIF_HUB_MIDUMP_VERSION_0   0x0000

Definition at line 430 of file hubbusif.h.

◆ USB_BUSIF_HUB_SS_VERSION_0

#define USB_BUSIF_HUB_SS_VERSION_0   0x0000

Definition at line 432 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_0

#define USB_BUSIF_HUB_VERSION_0   0x0000

Definition at line 421 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_1

#define USB_BUSIF_HUB_VERSION_1   0x0001

Definition at line 422 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_2

#define USB_BUSIF_HUB_VERSION_2   0x0002

Definition at line 423 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_3

#define USB_BUSIF_HUB_VERSION_3   0x0003

Definition at line 424 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_4

#define USB_BUSIF_HUB_VERSION_4   0x0004

Definition at line 425 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_5

#define USB_BUSIF_HUB_VERSION_5   0x0005

Definition at line 426 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_6

#define USB_BUSIF_HUB_VERSION_6   0x0006

Definition at line 427 of file hubbusif.h.

◆ USB_BUSIF_HUB_VERSION_7

#define USB_BUSIF_HUB_VERSION_7   0x0007

Definition at line 428 of file hubbusif.h.

◆ USB_BUSIFFN

#define USB_BUSIFFN   __stdcall

Definition at line 22 of file hubbusif.h.

◆ USB_IDLE_NOT_READY

#define USB_IDLE_NOT_READY   0

Definition at line 32 of file hubbusif.h.

◆ USB_IDLE_READY

#define USB_IDLE_READY   1

Definition at line 33 of file hubbusif.h.

◆ USBD_DEVHACK_DISABLE_SN

#define USBD_DEVHACK_DISABLE_SN   0x00000002

Definition at line 18 of file hubbusif.h.

◆ USBD_DEVHACK_SET_DIAG_ID

#define USBD_DEVHACK_SET_DIAG_ID   0x00000004

Definition at line 19 of file hubbusif.h.

◆ USBD_DEVHACK_SLOW_ENUMERATION

#define USBD_DEVHACK_SLOW_ENUMERATION   0x00000001

Definition at line 17 of file hubbusif.h.

◆ USBD_KEEP_DEVICE_DATA

#define USBD_KEEP_DEVICE_DATA   0x00000001

Definition at line 29 of file hubbusif.h.

◆ USBD_MARK_DEVICE_BUSY

#define USBD_MARK_DEVICE_BUSY   0x00000002

Definition at line 30 of file hubbusif.h.

Typedef Documentation

◆ PRH_INIT_CALLBACK

typedef RH_INIT_CALLBACK* PRH_INIT_CALLBACK

Definition at line 270 of file hubbusif.h.

◆ PROOTHUB_PDO_EXTENSION

◆ PUSB_BUS_INTERFACE_HUB_MINIDUMP

◆ PUSB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND

◆ PUSB_BUS_INTERFACE_HUB_V0

◆ PUSB_BUS_INTERFACE_HUB_V1

◆ PUSB_BUS_INTERFACE_HUB_V2

◆ PUSB_BUS_INTERFACE_HUB_V3

◆ PUSB_BUS_INTERFACE_HUB_V4

◆ PUSB_BUS_INTERFACE_HUB_V5

◆ PUSB_BUS_INTERFACE_HUB_V6

◆ PUSB_BUS_INTERFACE_HUB_V7

◆ PUSB_BUSIFFN_ABORT_ALL_DEVICE_PIPES

typedef USB_BUSIFFN_ABORT_ALL_DEVICE_PIPES* PUSB_BUSIFFN_ABORT_ALL_DEVICE_PIPES

Definition at line 416 of file hubbusif.h.

◆ PUSB_BUSIFFN_ACQUIRE_SEMAPHORE

typedef USB_BUSIFFN_ACQUIRE_SEMAPHORE* PUSB_BUSIFFN_ACQUIRE_SEMAPHORE

Definition at line 256 of file hubbusif.h.

◆ PUSB_BUSIFFN_CALC_PIPE_BANDWIDTH

typedef USB_BUSIFFN_CALC_PIPE_BANDWIDTH* PUSB_BUSIFFN_CALC_PIPE_BANDWIDTH

Definition at line 296 of file hubbusif.h.

◆ PUSB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND

typedef USB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND* PUSB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND

Definition at line 202 of file hubbusif.h.

◆ PUSB_BUSIFFN_CREATE_USB_DEVICE

typedef USB_BUSIFFN_CREATE_USB_DEVICE* PUSB_BUSIFFN_CREATE_USB_DEVICE

Definition at line 44 of file hubbusif.h.

◆ PUSB_BUSIFFN_CREATE_USB_DEVICE_EX

typedef USB_BUSIFFN_CREATE_USB_DEVICE_EX* PUSB_BUSIFFN_CREATE_USB_DEVICE_EX

Definition at line 77 of file hubbusif.h.

◆ PUSB_BUSIFFN_CREATE_USB_DEVICE_V7

typedef USB_BUSIFFN_CREATE_USB_DEVICE_V7* PUSB_BUSIFFN_CREATE_USB_DEVICE_V7

Definition at line 97 of file hubbusif.h.

◆ PUSB_BUSIFFN_DEREF_DEVICE_HANDLE

typedef USB_BUSIFFN_DEREF_DEVICE_HANDLE* PUSB_BUSIFFN_DEREF_DEVICE_HANDLE

Definition at line 371 of file hubbusif.h.

◆ PUSB_BUSIFFN_FLUSH_TRANSFERS

typedef USB_BUSIFFN_FLUSH_TRANSFERS* PUSB_BUSIFFN_FLUSH_TRANSFERS

Definition at line 287 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT

typedef USB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT* PUSB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT

Definition at line 399 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_CONTROLLER_INFORMATION

typedef USB_BUSIFFN_GET_CONTROLLER_INFORMATION* PUSB_BUSIFFN_GET_CONTROLLER_INFORMATION

Definition at line 194 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_DEVICE_ADDRESS

typedef USB_BUSIFFN_GET_DEVICE_ADDRESS* PUSB_BUSIFFN_GET_DEVICE_ADDRESS

Definition at line 361 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_DEVICE_BUSCONTEXT

typedef USB_BUSIFFN_GET_DEVICE_BUSCONTEXT* PUSB_BUSIFFN_GET_DEVICE_BUSCONTEXT

Definition at line 232 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_DEVICE_INFORMATION

typedef USB_BUSIFFN_GET_DEVICE_INFORMATION* PUSB_BUSIFFN_GET_DEVICE_INFORMATION

Definition at line 183 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO

typedef USB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO* PUSB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO

Definition at line 345 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_EXTENDED_HUB_INFO

typedef USB_BUSIFFN_GET_EXTENDED_HUB_INFO* PUSB_BUSIFFN_GET_EXTENDED_HUB_INFO

Definition at line 214 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_POTRTHACK_FLAGS

typedef USB_BUSIFFN_GET_POTRTHACK_FLAGS* PUSB_BUSIFFN_GET_POTRTHACK_FLAGS

Definition at line 171 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_ROOTHUB_SYM_NAME

typedef USB_BUSIFFN_GET_ROOTHUB_SYM_NAME* PUSB_BUSIFFN_GET_ROOTHUB_SYM_NAME

Definition at line 224 of file hubbusif.h.

◆ PUSB_BUSIFFN_GET_USB_DESCRIPTORS

typedef USB_BUSIFFN_GET_USB_DESCRIPTORS* PUSB_BUSIFFN_GET_USB_DESCRIPTORS

Definition at line 154 of file hubbusif.h.

◆ PUSB_BUSIFFN_INITIALIZE_20HUB

typedef USB_BUSIFFN_INITIALIZE_20HUB* PUSB_BUSIFFN_INITIALIZE_20HUB

Definition at line 241 of file hubbusif.h.

◆ PUSB_BUSIFFN_INITIALIZE_USB_DEVICE

typedef USB_BUSIFFN_INITIALIZE_USB_DEVICE* PUSB_BUSIFFN_INITIALIZE_USB_DEVICE

Definition at line 122 of file hubbusif.h.

◆ PUSB_BUSIFFN_INITIALIZE_USB_DEVICE_EX

typedef USB_BUSIFFN_INITIALIZE_USB_DEVICE_EX* PUSB_BUSIFFN_INITIALIZE_USB_DEVICE_EX

Definition at line 131 of file hubbusif.h.

◆ PUSB_BUSIFFN_IS_ROOT

typedef USB_BUSIFFN_IS_ROOT* PUSB_BUSIFFN_IS_ROOT

Definition at line 249 of file hubbusif.h.

◆ PUSB_BUSIFFN_REF_DEVICE_HANDLE

typedef USB_BUSIFFN_REF_DEVICE_HANDLE* PUSB_BUSIFFN_REF_DEVICE_HANDLE

Definition at line 381 of file hubbusif.h.

◆ PUSB_BUSIFFN_RELEASE_SEMAPHORE

typedef USB_BUSIFFN_RELEASE_SEMAPHORE* PUSB_BUSIFFN_RELEASE_SEMAPHORE

Definition at line 263 of file hubbusif.h.

◆ PUSB_BUSIFFN_REMOVE_USB_DEVICE

typedef USB_BUSIFFN_REMOVE_USB_DEVICE* PUSB_BUSIFFN_REMOVE_USB_DEVICE

Definition at line 140 of file hubbusif.h.

◆ PUSB_BUSIFFN_RESTORE_DEVICE

typedef USB_BUSIFFN_RESTORE_DEVICE* PUSB_BUSIFFN_RESTORE_DEVICE

Definition at line 163 of file hubbusif.h.

◆ PUSB_BUSIFFN_RESUME_HUB

typedef NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_RESUME_HUB) (PDEVICE_OBJECT Pdo)

Definition at line 661 of file hubbusif.h.

◆ PUSB_BUSIFFN_ROOTHUB_INIT_NOTIFY

typedef USB_BUSIFFN_ROOTHUB_INIT_NOTIFY* PUSB_BUSIFFN_ROOTHUB_INIT_NOTIFY

Definition at line 279 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_BUS_WAKE_MODE

typedef USB_BUSIFFN_SET_BUS_WAKE_MODE* PUSB_BUSIFFN_SET_BUS_WAKE_MODE

Definition at line 304 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT

typedef USB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT* PUSB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT

Definition at line 408 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_DEVHANDLE_DATA

typedef USB_BUSIFFN_SET_DEVHANDLE_DATA* PUSB_BUSIFFN_SET_DEVHANDLE_DATA

Definition at line 323 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_DEVICE_ERRATA_FLAG

typedef USB_BUSIFFN_SET_DEVICE_ERRATA_FLAG* PUSB_BUSIFFN_SET_DEVICE_ERRATA_FLAG

Definition at line 441 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_DEVICE_FLAG

typedef USB_BUSIFFN_SET_DEVICE_FLAG* PUSB_BUSIFFN_SET_DEVICE_FLAG

Definition at line 314 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE

typedef USB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE* PUSB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE

Definition at line 390 of file hubbusif.h.

◆ PUSB_BUSIFFN_SET_MINIDUMP_FLAGS

typedef VOID(USB_BUSIFFN * PUSB_BUSIFFN_SET_MINIDUMP_FLAGS) (IN PVOID)

Definition at line 641 of file hubbusif.h.

◆ PUSB_BUSIFFN_SUSPEND_HUB

typedef NTSTATUS(USB_BUSIFFN * PUSB_BUSIFFN_SUSPEND_HUB) (PDEVICE_OBJECT Pdo)

Definition at line 657 of file hubbusif.h.

◆ PUSB_BUSIFFN_TEST_POINT

typedef USB_BUSIFFN_TEST_POINT* PUSB_BUSIFFN_TEST_POINT

Definition at line 333 of file hubbusif.h.

◆ PUSB_BUSIFFN_WAIT_ASYNC_POWERUP

typedef USB_BUSIFFN_WAIT_ASYNC_POWERUP* PUSB_BUSIFFN_WAIT_ASYNC_POWERUP

Definition at line 352 of file hubbusif.h.

◆ PUSB_CD_ERROR_INFORMATION

◆ PUSB_CONTROLLER_INFORMATION_0

◆ PUSB_CONTROLLER_INFORMATION_1

◆ PUSB_DEVICE_HANDLE

Definition at line 10 of file hubbusif.h.

◆ PUSB_DEVICE_INFORMATION_0

◆ PUSB_DEVICE_PERFORMANCE_INFO_0

◆ PUSB_EXTHUB_INFORMATION_0

◆ PUSB_EXTPORT_INFORMATION

◆ PUSB_ID_ERROR_INFORMATION

◆ PUSB_LEVEL_INFORMATION

◆ PUSB_PIPE_INFORMATION_0

◆ PUSB_PORT_PATH

◆ ROOTHUB_PDO_EXTENSION

◆ USB_BUS_INTERFACE_HUB_MINIDUMP

◆ USB_BUS_INTERFACE_HUB_SELECTIVE_SUSPEND

◆ USB_BUS_INTERFACE_HUB_V0

◆ USB_BUS_INTERFACE_HUB_V1

◆ USB_BUS_INTERFACE_HUB_V2

◆ USB_BUS_INTERFACE_HUB_V3

◆ USB_BUS_INTERFACE_HUB_V4

◆ USB_BUS_INTERFACE_HUB_V5

◆ USB_BUS_INTERFACE_HUB_V6

◆ USB_BUS_INTERFACE_HUB_V7

◆ USB_CD_ERROR_INFORMATION

◆ USB_CONTROLLER_INFORMATION_0

◆ USB_CONTROLLER_INFORMATION_1

◆ USB_DEVICE_INFORMATION_0

◆ USB_DEVICE_PERFORMANCE_INFO_0

◆ USB_EXTHUB_INFORMATION_0

◆ USB_EXTPORT_INFORMATION_0

◆ USB_ID_ERROR_INFORMATION

◆ USB_LEVEL_INFORMATION

◆ USB_PIPE_INFORMATION_0

◆ USB_PORT_PATH

◆ USBPORT_CREATEDEV_ERROR

◆ USBPORT_INITDEV_ERROR

Enumeration Type Documentation

◆ _USBPORT_CREATEDEV_ERROR

Enumerator
CreateDevErrNotSet 
CreateDevBadHubDevHandle 
CreateDevFailedAllocDevHandle 
CreateDevFailedOpenEndpoint 
CreateDevFailedAllocDsBuff 
CreateDevFailedGetDs 
CreateDevTtNotFound 
CreateDevBadDevHandlePtr 

Definition at line 46 of file hubbusif.h.

46 {
enum _USBPORT_CREATEDEV_ERROR USBPORT_CREATEDEV_ERROR
@ CreateDevErrNotSet
Definition: hubbusif.h:47
@ CreateDevFailedAllocDsBuff
Definition: hubbusif.h:51
@ CreateDevTtNotFound
Definition: hubbusif.h:53
@ CreateDevFailedAllocDevHandle
Definition: hubbusif.h:49
@ CreateDevFailedOpenEndpoint
Definition: hubbusif.h:50
@ CreateDevBadDevHandlePtr
Definition: hubbusif.h:54
@ CreateDevBadHubDevHandle
Definition: hubbusif.h:48
@ CreateDevFailedGetDs
Definition: hubbusif.h:52

◆ _USBPORT_INITDEV_ERROR

Enumerator
InitDevErrNotSet 
InitDevFailedSetAddress 
InitDevFailedPokeEndpoint 
InitDevBadDeviceDescriptor 

Definition at line 99 of file hubbusif.h.

99 {
@ InitDevErrNotSet
Definition: hubbusif.h:100
@ InitDevBadDeviceDescriptor
Definition: hubbusif.h:103
@ InitDevFailedSetAddress
Definition: hubbusif.h:101
@ InitDevFailedPokeEndpoint
Definition: hubbusif.h:102
enum _USBPORT_INITDEV_ERROR USBPORT_INITDEV_ERROR

Function Documentation

◆ _Function_class_() [1/37]

_Function_class_ ( RH_INIT_CALLBACK  )

◆ _Function_class_() [2/37]

_Function_class_ ( USB_BUSIFFN_ABORT_ALL_DEVICE_PIPES  )

◆ _Function_class_() [3/37]

_Function_class_ ( USB_BUSIFFN_ACQUIRE_SEMAPHORE  )

◆ _Function_class_() [4/37]

_Function_class_ ( USB_BUSIFFN_CALC_PIPE_BANDWIDTH  )

◆ _Function_class_() [5/37]

_Function_class_ ( USB_BUSIFFN_CONTROLLER_SELECTIVE_SUSPEND  )

◆ _Function_class_() [6/37]

_Function_class_ ( USB_BUSIFFN_CREATE_USB_DEVICE  )

◆ _Function_class_() [7/37]

_Function_class_ ( USB_BUSIFFN_CREATE_USB_DEVICE_EX  )

◆ _Function_class_() [8/37]

_Function_class_ ( USB_BUSIFFN_CREATE_USB_DEVICE_V7  )

◆ _Function_class_() [9/37]

_Function_class_ ( USB_BUSIFFN_DEREF_DEVICE_HANDLE  )

◆ _Function_class_() [10/37]

_Function_class_ ( USB_BUSIFFN_FLUSH_TRANSFERS  )

◆ _Function_class_() [11/37]

_Function_class_ ( USB_BUSIFFN_GET_CONTAINER_ID_FOR_PORT  )

◆ _Function_class_() [12/37]

_Function_class_ ( USB_BUSIFFN_GET_CONTROLLER_INFORMATION  )

◆ _Function_class_() [13/37]

_Function_class_ ( USB_BUSIFFN_GET_DEVICE_ADDRESS  )

◆ _Function_class_() [14/37]

_Function_class_ ( USB_BUSIFFN_GET_DEVICE_BUSCONTEXT  )

◆ _Function_class_() [15/37]

_Function_class_ ( USB_BUSIFFN_GET_DEVICE_INFORMATION  )

◆ _Function_class_() [16/37]

_Function_class_ ( USB_BUSIFFN_GET_DEVICE_PERFORMANCE_INFO  )

◆ _Function_class_() [17/37]

_Function_class_ ( USB_BUSIFFN_GET_EXTENDED_HUB_INFO  )

◆ _Function_class_() [18/37]

_Function_class_ ( USB_BUSIFFN_GET_POTRTHACK_FLAGS  )

◆ _Function_class_() [19/37]

_Function_class_ ( USB_BUSIFFN_GET_ROOTHUB_SYM_NAME  )

◆ _Function_class_() [20/37]

_Function_class_ ( USB_BUSIFFN_GET_USB_DESCRIPTORS  )

◆ _Function_class_() [21/37]

_Function_class_ ( USB_BUSIFFN_INITIALIZE_20HUB  )

◆ _Function_class_() [22/37]

_Function_class_ ( USB_BUSIFFN_INITIALIZE_USB_DEVICE  )

◆ _Function_class_() [23/37]

_Function_class_ ( USB_BUSIFFN_INITIALIZE_USB_DEVICE_EX  )

◆ _Function_class_() [24/37]

_Function_class_ ( USB_BUSIFFN_IS_ROOT  )

◆ _Function_class_() [25/37]

_Function_class_ ( USB_BUSIFFN_REF_DEVICE_HANDLE  )

◆ _Function_class_() [26/37]

_Function_class_ ( USB_BUSIFFN_RELEASE_SEMAPHORE  )

◆ _Function_class_() [27/37]

_Function_class_ ( USB_BUSIFFN_REMOVE_USB_DEVICE  )

◆ _Function_class_() [28/37]

_Function_class_ ( USB_BUSIFFN_RESTORE_DEVICE  )

◆ _Function_class_() [29/37]

_Function_class_ ( USB_BUSIFFN_ROOTHUB_INIT_NOTIFY  )

◆ _Function_class_() [30/37]

_Function_class_ ( USB_BUSIFFN_SET_BUS_WAKE_MODE  )

◆ _Function_class_() [31/37]

_Function_class_ ( USB_BUSIFFN_SET_CONTAINER_ID_FOR_PORT  )

◆ _Function_class_() [32/37]

_Function_class_ ( USB_BUSIFFN_SET_DEVHANDLE_DATA  )

◆ _Function_class_() [33/37]

_Function_class_ ( USB_BUSIFFN_SET_DEVICE_ERRATA_FLAG  )

◆ _Function_class_() [34/37]

_Function_class_ ( USB_BUSIFFN_SET_DEVICE_FLAG  )

◆ _Function_class_() [35/37]

_Function_class_ ( USB_BUSIFFN_SET_DEVICE_HANDLE_IDLE_READY_STATE  )

◆ _Function_class_() [36/37]

_Function_class_ ( USB_BUSIFFN_TEST_POINT  )

◆ _Function_class_() [37/37]

_Function_class_ ( USB_BUSIFFN_WAIT_ASYNC_POWERUP  )

◆ _Inout_updates_bytes_to_() [1/3]

_Inout_updates_bytes_to_ ( ControllerInformationBufferLength  ,
LengthOfDataCopied 
)

◆ _Inout_updates_bytes_to_() [2/3]

_In_ PDEVICE_OBJECT _Inout_updates_bytes_to_ ( HubInformationBufferLength  ,
LengthOfDataCopied 
)

◆ _Inout_updates_bytes_to_() [3/3]

_Inout_updates_bytes_to_ ( HubSymNameBufferLength  ,
HubSymNameActualLength 
)

◆ _Out_writes_bytes_to_()

_In_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ ( DeviceInformationBufferLength  ,
LengthOfDataCopied 
)

◆ DEFINE_GUID() [1/3]

DEFINE_GUID ( USB_BUS_INTERFACE_HUB_GUID  ,
0xb2bb8c0a  ,
0x5ab4  ,
0x11d3  ,
0xa8  ,
0xcd  ,
0x0  ,
0xc0  ,
0x4f  ,
0x68  ,
0x74  ,
0x7a   
)

◆ DEFINE_GUID() [2/3]

DEFINE_GUID ( USB_BUS_INTERFACE_HUB_MINIDUMP_GUID  ,
0xc5485f21  ,
0x4e81  ,
0x4a23  ,
0xa8  ,
0xf9  ,
0xd8  ,
0x51  ,
0x8a  ,
0xf4  ,
0x5c  ,
0x38   
)

◆ DEFINE_GUID() [3/3]

DEFINE_GUID ( USB_BUS_INTERFACE_HUB_SS_GUID  ,
0xbfc3f363  ,
0x8ba1  ,
0x4c7b  ,
0x97  ,
0xba  ,
0x9b  ,
0x12  ,
0xb1  ,
0xca  ,
0x13  ,
0x2f   
)

Variable Documentation

◆ CallbackContext

_In_ PVOID CallbackContext

Definition at line 277 of file hubbusif.h.

◆ CallbackRoutine

_In_ PVOID _In_ PRH_INIT_CALLBACK CallbackRoutine

Definition at line 278 of file hubbusif.h.

◆ CdErrorInfo

◆ ConfigDescriptorBuffer

◆ ConfigDescriptorBufferLength

Definition at line 153 of file hubbusif.h.

Referenced by USBD_InitializeDeviceEx().

◆ ContainerId

_In_ USHORT _In_ LPGUID ContainerId

Definition at line 398 of file hubbusif.h.

◆ ControllerInformationBufferLength

_In_ ULONG ControllerInformationBufferLength

Definition at line 192 of file hubbusif.h.

◆ DeviceAddress

◆ DeviceDescriptorBuffer

◆ DeviceDescriptorBufferLength

_Inout_ PUSB_DEVICE_HANDLE _Out_writes_bytes_to_ DeviceDescriptorBufferLength PUCHAR _Inout_ PULONG DeviceDescriptorBufferLength

Definition at line 150 of file hubbusif.h.

Referenced by USBD_InitializeDeviceEx().

◆ DeviceErrataFlag

_In_ PUSB_DEVICE_HANDLE _In_ ULONG DeviceErrataFlag

Definition at line 440 of file hubbusif.h.

◆ DeviceFlagGuid

_In_ GUID* DeviceFlagGuid

Definition at line 311 of file hubbusif.h.

◆ DeviceHandle

_In_ PUSB_DEVICE_HANDLE DeviceHandle

Definition at line 121 of file hubbusif.h.

Referenced by AcpiGetCurrentResources(), AcpiGetEventResources(), AcpiGetIrqRoutingTable(), AcpiGetPossibleResources(), AcpiGetVendorResource(), AcpiRsValidateParameters(), AcpiSetCurrentResources(), AcpiWalkResources(), AuxGetAudio(), AuxSetAudio(), BasepDoTapeOperation(), BmFwInitializeBootDirectoryPath(), CompBattGetDeviceObjectPointer(), DetectNt4SoundDevices(), FsRtlpOpenDev(), FsRtlRegisterUncProvider(), GetDeviceInfo(), GetDeviceInfo_UStr(), GetDeviceListInterfaces(), GetNt4SoundDeviceCapabilities(), InstallBootManagerAndBootEntries(), IopDeviceFsIoControl(), KsecOpenDevice(), KsOpenDefaultDevice(), NtDeviceIoControlFile(), NtFsControlFile(), OpenDevice(), OpenDeviceList(), pOpenDevice(), pOpenDevice_UStr(), pOpenDeviceEx(), pOpenDeviceEx_UStr(), QueryDosDeviceW(), SendTo_NFS41Driver(), TestKs(), USBD_GetDeviceInformationEx(), USBD_Initialize20Hub(), USBD_InitializeDeviceEx(), USBD_RemoveDeviceEx(), USBH_CreateDevice(), USBH_FdoCleanup(), USBH_FdoQueryBusRelations(), USBH_GetDeviceType(), USBH_PdoRemoveDevice(), USBH_ProcessPortStateChange(), USBH_ResetDevice(), USBH_ResetPortWorker(), USBH_StartHubFdoDevice(), USBH_SyncGetDeviceHandle(), USBHI_GetUsbDescriptors(), USBHI_QueryDeviceInformation(), USBHUB_SetDeviceHandleData(), USBPORT_AbortPipe(), USBPORT_AbortTransfers(), USBPORT_AddDeviceHandle(), USBPORT_AddPipeHandle(), USBPORT_AllocateTransfer(), USBPORT_ClearStall(), USBPORT_CloseConfiguration(), USBPORT_ClosePipe(), USBPORT_CreateDevice(), USBPORT_DeviceHasTransfers(), USBPORT_FlushAbortList(), USBPORT_GetTt(), USBPORT_GetUsbDescriptor(), USBPORT_HandleSelectConfiguration(), USBPORT_HandleSelectInterface(), USBPORT_HandleSubmitURB(), USBPORT_InitializeDevice(), USBPORT_MapTransfer(), USBPORT_OpenInterface(), USBPORT_OpenPipe(), USBPORT_QueueActiveUrbToEndpoint(), USBPORT_QueueTransferUrb(), USBPORT_RemoveDevice(), USBPORT_RemoveDeviceHandle(), USBPORT_RootHubCreateDevice(), USBPORT_SendSetupPacket(), USBPORT_SyncResetPipeAndClearStall(), USBPORT_ValidateDeviceHandle(), USBPORT_ValidatePipeHandle(), USBPORT_ValidateURB(), and WdmAudInitUserModeMixer().

◆ DeviceInformationBufferLength

_In_ PUSB_DEVICE_HANDLE _In_ ULONG DeviceInformationBufferLength

Definition at line 181 of file hubbusif.h.

Referenced by USBH_GetDeviceType().

◆ DeviceObject

Definition at line 248 of file hubbusif.h.

◆ DeviceSpeed

◆ Enable

Definition at line 201 of file hubbusif.h.

◆ Flags

Definition at line 139 of file hubbusif.h.

◆ HsHubDeviceHandle

Definition at line 72 of file hubbusif.h.

◆ HubDeviceHandle

◆ HubInformationBufferLength

_In_ PDEVICE_OBJECT _In_ ULONG HubInformationBufferLength

Definition at line 212 of file hubbusif.h.

◆ HubPhysicalDeviceObject

_In_ PDEVICE_OBJECT HubPhysicalDeviceObject

Definition at line 209 of file hubbusif.h.

Referenced by USBHI_GetExtendedHubInformation().

◆ HubSymNameActualLength

_In_ ULONG _Out_ PULONG HubSymNameActualLength

Definition at line 223 of file hubbusif.h.

◆ HubSymNameBufferLength

_In_ ULONG HubSymNameBufferLength

Definition at line 222 of file hubbusif.h.

◆ IdErrInfo

◆ LengthOfDataCopied

Definition at line 182 of file hubbusif.h.

◆ Mode

_In_ ULONG Mode

Definition at line 303 of file hubbusif.h.

Referenced by __RxAcquireFcb(), AccpGetAceAccessMode(), AcpiHwSetMode(), ConsoleEfiGopEnable(), ConsoleEfiGopIsPixelFormatSupported(), ConsoleEfiGopOpen(), ConsoleEfiTextFindModeFromAllowed(), ConsoleEfiTextGetStateFromMode(), ConsoleFirmwareTextClose(), ConsoleFirmwareTextOpen(), ConsolepFindResolution(), ConStreamInit(), ConStreamInitEx(), ConStreamSetCacheCodePage(), ConStreamSetMode(), CpSetBaud(), DECLARE_INTERFACE_(), EfiConOutQueryMode(), EfiConOutReadCurrentMode(), EfiConOutSetMode(), EfiGopGetCurrentMode(), EfiGopSetMode(), EngStretchBlt(), HalpDmaInitializeEisaAdapter(), HalpEnableInterruptHandler(), IDirect3D9Impl_EnumAdapterModes(), IKsPin_PinMasterClock(), InitializeModeTable(), IntGdiSetBkMode(), IntGdiSetTextAlign(), IopGetFileMode(), Ke386SanitizeDr(), Ke386SanitizeFlags(), Ke386SanitizeSeg(), KeInitializeApc(), KsFastMethodHandler(), KsFastPropertyHandler(), KsInstallBusEnumInterface(), KsRemoveBusEnumInterface(), CKsAllocator::KsSetAllocatorMode(), MmAccessFault(), MmArmAccessFault(), MmNotPresentFault(), MmpAccessFault(), NpReadDataQueue(), NpWriteDataQueue(), NtGdiEngStretchBlt(), NtGdiPolyPatBlt(), NtGdiSelectClipPath(), ParseModes(), PATH_PathToRegion(), PcNewInterruptSync(), PcVideoSetBiosVesaMode(), PcVideoVesaGetSVGAModeInformation(), PitWriteCommand(), PolygonTest(), PspComputeQuantumAndPriority(), PspGetOrSetContextKernelRoutine(), PspSetContext(), ReadWriteMode(), RepairList(), SamGetCompatibilityMode(), ServiceInit(), SetRelAbs(), test_pack_IMAGE_ARCHIVE_MEMBER_HEADER(), UDFMountVolume(), UDFVerifyVolume(), VbeService(), VbeSetExtendedVideoMode(), VdmMapFlat(), VgaSetMode(), WCacheInit__(), WCacheSetMode__(), and WinMain().

◆ NewDeviceHandle

◆ NewIdleReadyState

_In_ PUSB_DEVICE_HANDLE _In_ ULONG NewIdleReadyState

Definition at line 389 of file hubbusif.h.

◆ Object

Definition at line 369 of file hubbusif.h.

◆ OldDeviceHandle

_Inout_ PUSB_DEVICE_HANDLE OldDeviceHandle

Definition at line 161 of file hubbusif.h.

Referenced by USBD_RestoreDeviceEx(), USBH_ResetDevice(), and USBPORT_RestoreDevice().

◆ Opcode

◆ PdoDeviceObject

◆ PhysicalDeviceObjectName

◆ PipeInfo

Definition at line 294 of file hubbusif.h.

◆ PortNumber

_In_ USHORT PortNumber

Definition at line 43 of file hubbusif.h.

◆ PortPath

◆ PortStatus

◆ Tag

Definition at line 370 of file hubbusif.h.

◆ TestData

Definition at line 332 of file hubbusif.h.

◆ TtCount

◆ TtPortNumber

◆ UsbDevicePdo

_In_ PVOID _In_ PDEVICE_OBJECT UsbDevicePdo

Definition at line 322 of file hubbusif.h.

Referenced by USBHUB_SetDeviceHandleData().

◆ ValueData

_In_ GUID _In_ PVOID ValueData

Definition at line 312 of file hubbusif.h.

Referenced by _Function_class_(), BadBlockQueryRoutine(), BasepConfigureAppCertDlls(), BiGetRegistryValue(), ChangeUniqueIdRoutine(), CheckForNoDriveLetterEntry(), CmEnumerateValueKey(), CmGetSystemControlValues(), CmpInitializeRegistryNode(), CmpMarkKeyDirty(), CmpSetVersionData(), CmpValidateValueListByCount(), CmQueryValueKey(), CreateGroupListRoutine(), CreateGroupOrderListRoutine(), DeleteDriveLetterRoutine(), DeleteFromLocalDatabaseRoutine(), DeleteNoDriveLetterEntryRoutine(), DeviceMediaChangeRegistryCallBack(), DiskConfigurationDataQueryRoutine(), DiskIdentifierQueryRoutine(), EnumerateNt4ServiceSoundDevices(), Ext2RegistryQueryCallback(), LoadSettings(), LsapAddAuthPackage(), MountMgrQuerySystemVolumeNameQueryRoutine(), NpReadAlias(), NtVdmConfigureBios(), NtVdmConfigureFloppy(), NtVdmConfigureHDD(), NtVdmConfigureRom(), PiAttachFilterDriversCallback(), QUERY_REGISTRY_VALUES_ROUTINE(), QueryBinaryValueCallback(), QueryRegistryCallback(), QueryRoutine(), QueryStringCallback(), QueryUniqueIdQueryRoutine(), RtlAddActionToRXact(), RtlAddAttributeActionToRXact(), RtlpQueryRegistryDirect(), RtlWriteRegistryValue(), ScrubRegistryRoutine(), SepRegQueryHelper(), SmpConfigureAllowProtectedRenames(), SmpConfigureDosDevices(), SmpConfigureEnvironment(), SmpConfigureExcludeKnownDlls(), SmpConfigureFileRenames(), SmpConfigureKnownDlls(), SmpConfigureMemoryMgmt(), SmpConfigureObjectDirectories(), SmpConfigureProtectionMode(), SmpConfigureSubSystems(), SmpCreateDynamicEnvironmentVariables(), SymbolicLinkNamesFromUniqueIdCount(), SymbolicLinkNamesFromUniqueIdQuery(), SystemConfigurationDataQueryRoutine(), USBH_GetConfigValue(), USBPORT_GetConfigValue(), and VideoPortSetRegistryParameters().

◆ ValueLength

Definition at line 313 of file hubbusif.h.