|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Classes | |
| struct | HubDriverState |
Macros | |
| #define | HUB_LIVEDUMP_HUB_RESET_OK 0x3000 |
| #define | HUB_LIVEDUMP_HUB_RESET_FAILED 0x3001 |
| #define | HUB_LIVEDUMP_SUPERSPEED_DISABLED 0x3002 |
| #define | HUB_LIVEDUMP_ENUMERATION_FAILED 0x3003 |
| #define | HUB_BUGCHECK_USB3 0x144 |
| #define | HUB_USB3_BOOT_DEVICE_FAILED 2 |
| #define | HUB_BOOT_DEVICE_IS_STORAGE 1 |
| #define | HUB_BOOT_DEVICE_IS_HUB 2 |
Typedefs | |
| typedef NTSTATUS(NTAPI * | PFN_HUB_KSE_QUERY_DEVICE_FLAGS) (_In_ PCWSTR DeviceKey, _In_ PCWSTR DeviceClass, _Out_ PULONG64 DeviceFlags) |
| typedef NTSTATUS(NTAPI * | PFN_HUB_REGISTER_BOOT_DEVICE) (_In_ PVOID Registration, _Out_ PVOID *Handle) |
| typedef VOID(NTAPI * | PFN_HUB_NOTIFY_BOOT_DEVICE_REMOVAL) (_In_ PVOID Handle) |
| typedef NTSTATUS(NTAPI * | PFN_HUB_REGISTER_POWER_SETTING) (_In_opt_ PDEVICE_OBJECT DeviceObject, _In_ LPCGUID SettingGuid, _In_ PPOWER_SETTING_CALLBACK Callback, _In_opt_ PVOID Context, _Outptr_opt_ PVOID *Handle) |
| typedef NTSTATUS(NTAPI * | PFN_HUB_UNREGISTER_POWER_SETTING) (_Inout_ PVOID Handle) |
| typedef _Must_inspect_result_ NTSTATUS(NTAPI * | PFN_HUB_GET_INTERFACE_PROPERTY) (_In_ PUNICODE_STRING SymbolicLinkName, _In_ CONST DEVPROPKEY *PropertyKey, _In_ LCID Lcid, _Reserved_ ULONG Flags, _In_ ULONG Size, _Out_writes_bytes_to_(Size, *RequiredSize) PVOID Data, _Out_ PULONG RequiredSize, _Out_ PDEVPROPTYPE Type) |
Enumerations | |
| enum class | HubGlobal : ULONG { DisableSelectiveSuspendUI = 0x00000002 , EnableDiagnosticMode = 0x00000008 , DisableUxdSupport = 0x00000010 , EnableExtendedValidation = 0x00000020 , WakeOnConnectUI = 0x00000040 , DisableOnSoftRemove = 0x00000080 , UxdDeleteOnShutdown = 0x00000100 , UxdDeleteOnReload = 0x00000200 , UxdDeleteOnDisconnect = 0x00000400 , UxdEnable = 0x00000800 , EtwEnabled = 0x00001000 , CheckReservedFields = 0x00002000 , StrictDescriptorChecks = 0x00004000 , EnableUsb20HardwareLpm = 0x00008000 , PreventSuperSpeedDebounce = 0x00010000 , AlwaysSecondReset = 0x00020000 , EnableUsbLtm = 0x00040000 } |
| enum class | HubMsOsMode : ULONG { QueryOnce = 0 , ForceQuery = 1 , NeverQuery = 2 } |
| enum class | HubReport : ULONG { HubResetSucceeded = 0 , HubResetFailed = 1 , DeviceEnumerationFailed = 2 } |
Functions | |
| NTSTATUS NTAPI | HubCreateReport (_In_ WDFDEVICE HubFdo, _In_ HubReport Type, _In_ ULONG SubReason) |
| _IRQL_requires_ (PASSIVE_LEVEL) NTSTATUS NTAPI HubSubmitLiveDump(_In_ WDFDEVICE Device | |
| Sends a synchronous IOCTL to the specified device object. | |
| VOID NTAPI | HubNotifyBootDeviceRemoval (_In_opt_ PVOID Handle) |
Variables | |
| HubDriverState | HubDriver |
| _In_ ULONG | Code |
| _In_ ULONG _In_ ULONG | SubReason |
| #define HUB_BOOT_DEVICE_IS_HUB 2 |
Definition at line 160 of file hubdriver.h.
| #define HUB_BOOT_DEVICE_IS_STORAGE 1 |
Definition at line 159 of file hubdriver.h.
| #define HUB_BUGCHECK_USB3 0x144 |
Definition at line 157 of file hubdriver.h.
| #define HUB_LIVEDUMP_ENUMERATION_FAILED 0x3003 |
Definition at line 154 of file hubdriver.h.
| #define HUB_LIVEDUMP_HUB_RESET_FAILED 0x3001 |
Definition at line 152 of file hubdriver.h.
| #define HUB_LIVEDUMP_HUB_RESET_OK 0x3000 |
Definition at line 151 of file hubdriver.h.
| #define HUB_LIVEDUMP_SUPERSPEED_DISABLED 0x3002 |
Definition at line 153 of file hubdriver.h.
| #define HUB_USB3_BOOT_DEVICE_FAILED 2 |
Definition at line 158 of file hubdriver.h.
| typedef _Must_inspect_result_ NTSTATUS(NTAPI * PFN_HUB_GET_INTERFACE_PROPERTY) (_In_ PUNICODE_STRING SymbolicLinkName, _In_ CONST DEVPROPKEY *PropertyKey, _In_ LCID Lcid, _Reserved_ ULONG Flags, _In_ ULONG Size, _Out_writes_bytes_to_(Size, *RequiredSize) PVOID Data, _Out_ PULONG RequiredSize, _Out_ PDEVPROPTYPE Type) |
Definition at line 74 of file hubdriver.h.
| typedef NTSTATUS(NTAPI * PFN_HUB_KSE_QUERY_DEVICE_FLAGS) (_In_ PCWSTR DeviceKey, _In_ PCWSTR DeviceClass, _Out_ PULONG64 DeviceFlags) |
Definition at line 41 of file hubdriver.h.
Definition at line 54 of file hubdriver.h.
| typedef NTSTATUS(NTAPI * PFN_HUB_REGISTER_BOOT_DEVICE) (_In_ PVOID Registration, _Out_ PVOID *Handle) |
Definition at line 48 of file hubdriver.h.
| typedef NTSTATUS(NTAPI * PFN_HUB_REGISTER_POWER_SETTING) (_In_opt_ PDEVICE_OBJECT DeviceObject, _In_ LPCGUID SettingGuid, _In_ PPOWER_SETTING_CALLBACK Callback, _In_opt_ PVOID Context, _Outptr_opt_ PVOID *Handle) |
Definition at line 59 of file hubdriver.h.
Definition at line 68 of file hubdriver.h.
Definition at line 11 of file hubdriver.h.
|
strong |
| Enumerator | |
|---|---|
| QueryOnce | |
| ForceQuery | |
| NeverQuery | |
Definition at line 33 of file hubdriver.h.
| Enumerator | |
|---|---|
| HubResetSucceeded | |
| HubResetFailed | |
| DeviceEnumerationFailed | |
Definition at line 143 of file hubdriver.h.
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) |
Sends a synchronous IOCTL to the specified device object.
| [in] | IoControlCode | The IOCTL to send to the device. |
| [in] | DeviceObject | Pointer to the device object that will handle the IOCTL. |
| [in] | InputBuffer | Optional pointer to a buffer containing input data for the IOCTL. When specified, the buffer should be at least of InputBufferLength size. |
| [in] | InputBufferLength | Size in bytes, of the buffer pointed by InputBuffer. |
| [out] | OutputBuffer | Optional pointer to a buffer that will receive output data from the IOCTL. When specified, the buffer should be at least of OutputBufferLength size. |
| [in] | OutputBufferLength | Size in bytes, of the buffer pointed by OutputBuffer. |
| [in] | FileObject | Optional pointer to a file object that may be necessary for the IOCTL. |
Nothing is found unless the PCI bus driver publishes the properties.
The root hub name without its prefix; NULL when the PDO has no name.
Grows a private buffer to what the helper asks for.
Lets KMDF handle the IRP, then hands it back here still uncompleted.
Waits for the device machine to answer a PnP or power event; returns the PnP status.
Deletes the UCX endpoints of the disabled pipes, then the interface record.
One 4 byte value; the registry type is not checked.
Reread whenever user experience settings change; the open status is returned.
Sends a synchronous IOCTL to the specified device object.
Definition at line 2121 of file class.c.
Device enumeration failures are throttled per hub, since no device is passed.
Definition at line 151 of file errreport.cpp.
Referenced by HubEvtReportWorkItem(), and DeviceMachine::ReportEnumFailure().
Kernel boot device removal notice; nothing when the kernel lacks it or Handle is NULL.
Definition at line 335 of file entry.cpp.
Referenced by PortMachine::NotifyBootDeviceRemoval(), and DeviceMachine::NotifyWrongDevice().
Definition at line 176 of file hubdriver.h.
|
extern |
Definition at line 13 of file entry.cpp.
Referenced by _IRQL_requires_(), DeviceMachine::DisableWhenUnused(), HubApplyDisableOnSoftRemove(), HubApplyDisableSelectiveSuspendUI(), HubApplyDisableUxdSupport(), HubApplyEnableDiagnosticMode(), HubApplyEnableExtendedValidation(), HubApplyMsOsDescriptorMode(), HubApplyPreventSuperSpeedDebounce(), HubApplyWakeOnConnectUI(), HubChildAddressDone(), HubChildComputeLpm20(), HubConnectorFindById(), HubConnectorFindByPort(), HubDescInitDeviceContext(), HubEvtDriverCleanup(), HubNotifyBootDeviceRemoval(), HubUsb4InterfaceChange(), HubWmiEvtSurpriseRemovalCleanup(), DeviceMachine::LtmWanted(), DeviceMachine::MsOsQueryWanted(), PortMachine::NeedsDebounce(), and DeviceMachine::NeedsSecondReset().