|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Enumerations | |
| enum class | HubUxdEvent : ULONG { Disable = 1 , Disconnect = 2 } |
Variables | |
| _In_ HubPort * | Port |
| _In_ HubPort _In_ WDFSTRING | Name |
| _In_ ULONG | MessageId |
| EVT_WDF_TIMER | HubEvtBandwidthRetryTimer |
| _In_ PWDFDEVICE_INIT | DeviceInit |
| _Inout_ PIRP | Irp |
| _In_ PCUNICODE_STRING _In_ ULONG | Type |
| _In_ PCUNICODE_STRING _In_ ULONG _In_ ULONG | Length |
| _In_ PCUNICODE_STRING _In_ WDFSTRING | Value |
| _In_ HubChild * | Child |
| _In_ HubChild _Out_opt_ PBOOLEAN | UpdateRequired |
| _In_ HubUxdEvent | Event |
| _In_ WDFSTRING | String |
| _In_ PDEVICE_OBJECT | Pdo |
| _Out_ PUSB_BUS_NOTIFICATION | Notification |
| _In_ ULONG | PortNumber |
|
strong |
| Enumerator | |
|---|---|
| Disable | |
| Disconnect | |
Definition at line 1072 of file hubregistry.cpp.
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) |
Sends a synchronous IOCTL to the specified device object.
Fails only when a port cannot be bound to the USB4 host router its ACPI node names.
Assigns device, hardware, compatible, container and instance ids to a new child PDO.
Answers IRP_MN_QUERY_DEVICE_TEXT on a child PDO; always completes the IRP.
Takes the connector map lock, needed around HubConnectorFindCompanion.
Device hardware key values read at PDO prepare hardware.
Saves the MS OS 2.0 set info in usbflags when the set asks for alternate enumeration.
MsOs20Flags and EnumerationRetryCount, written at PDO start.
Rereads the UXD record; UpdateRequired says whether the device id changes.
Replacement PnP id of a UXD reserved device, or an empty String. Always succeeds.
Telemetry values under the device's Ceip subkey.
BootPathSurpriseRemovalCount + 1.
This machine's dual role features for a dual role partner.
Tells UCX the WDM PDO of the device; call right after the child PDO was created.
IOCTL_INTERNAL_USB_GET_CONTROLLER_NAME: Argument1 and its length Argument2.
IOCTL_INTERNAL_USB_GET_BUS_INFO for the device: the 16 byte USB_BUS_NOTIFICATION at Argument1.
Registers the GUID_USB_WMI_NODE_INFO instance of a child PDO (not for hubs or composites).
Registers the boot device surprise removal event on an external, non hub boot PDO.
Fires the boot device surprise removal event, if one is registered.
Definition at line 2121 of file class.c.
| _IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Records hub over current in the hub hardware key, once per devnode.
First selective suspend of the device; the registry write runs in a work item.
"USB device not recognized" popup for a port.
A hub was attached beyond the allowed tier depth.
The selected configuration draws more power than the port can give.
The controller ran out of bandwidth for the device; fired by the out of bandwidth timer.
Definition at line 77 of file common.c.
| _Out_writes_bytes_ | ( | Length | ) |
| BOOLEAN NTAPI HubCheckUsb2HubDescriptor | ( | _In_ HubFdo * | Hub, |
| _In_reads_bytes_(Length) PUSB_HUB_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 59 of file hubdescval.cpp.
Referenced by HubMachine::ParseHubDescriptor().
| BOOLEAN NTAPI HubCheckUsb3HubDescriptor | ( | _In_ HubFdo * | Hub, |
| _In_reads_bytes_(Length) PUSB_30_HUB_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 72 of file hubdescval.cpp.
Referenced by HubMachine::ParseHubDescriptor().
Sends the device's current client request to UCX as is; completes it, then posts ControllerRequestDone.
Definition at line 1352 of file devhcd.cpp.
Referenced by DeviceMachine::ForwardToController().
| VOID NTAPI HubClearTtBuffer | ( | _In_ UCXHUB_HUB_CONTEXT | HubContext, |
| _In_ UCXHUB_DEVICE_CONTEXT | DeviceContext, | ||
| _In_ UCXENDPOINT | Endpoint, | ||
| _In_ ULONG | EndpointNumber, | ||
| _In_ ULONG | TtPortNumber | ||
| ) |
Definition at line 220 of file hubreq.cpp.
Companion port 0 or 1 sharing Port's connector, or NULL. Only valid under the map lock.
Definition at line 287 of file portconn.cpp.
Referenced by HubIoGetConnectorProperties().
Connector map node of a port, or NULL when the port is not mapped.
Definition at line 320 of file portconn.cpp.
Referenced by DeviceMachine::AddChildToHub().
| HubPipe *NTAPI HubFindPipeByHandle | ( | _In_opt_ HubConfiguration * | Config, |
| _In_ USBD_PIPE_HANDLE | Handle | ||
| ) |
Pipe of Config whose USBD pipe handle is Handle, or NULL. The caller protects Config.
Definition at line 858 of file devreq.cpp.
Referenced by DeviceMachine::FindClientPipe().
Frees the billboard record and its descriptor copy, if any.
Definition at line 348 of file devdesc.cpp.
Referenced by HubKeepBillboardData(), HubReleaseTransferState(), and DeviceMachine::ReadBosHeader().
| NTSTATUS NTAPI HubIdBuildCompatibleIds | ( | _In_ HubChild * | Child, |
| _In_opt_ PWDFDEVICE_INIT | DeviceInit, | ||
| _Out_opt_ PUSB_ID_STRING | Ids | ||
| ) |
Compatible ids into a PDO init and/or a multi-sz list, which is zeroed first.
Definition at line 597 of file hubid.cpp.
| NTSTATUS NTAPI HubIdBuildHardwareIds | ( | _In_ HubChild * | Child, |
| _In_opt_ PWDFDEVICE_INIT | DeviceInit, | ||
| _Out_opt_ PUSB_ID_STRING | Ids | ||
| ) |
Hardware ids into a PDO init and/or a multi-sz list, which is zeroed first.
Definition at line 381 of file hubid.cpp.
Container id the PDO got; FALSE when it got none.
Definition at line 749 of file hubid.cpp.
| BOOLEAN NTAPI HubIdGetSerialNumberText | ( | _In_ HubChild * | Child, |
| _Outptr_result_bytebuffer_ *Length PCWSTR * | Text, | ||
| _Out_ PULONG | Length | ||
| ) |
Cached serial number text without its decoration, for the serial string IOCTL.
Definition at line 1111 of file hubid.cpp.
Referenced by HubIoGetDescriptor(), and DeviceMachine::SameSerialNumber().
TRUE when the device lists Language among its string languages.
Definition at line 911 of file hubid.cpp.
Referenced by DeviceMachine::ProductNameWanted().
| NTSTATUS NTAPI HubIdListCopy | ( | _Out_ PUSB_ID_STRING | Destination, |
| _In_ const USB_ID_STRING * | Source | ||
| ) |
Duplicates a multi-sz id list into nonpaged pool.
Definition at line 173 of file hubid.cpp.
Referenced by if().
Definition at line 85 of file hubdescval.cpp.
Referenced by HubMachine::CacheConfigDescriptor().
Records a descriptor validation code against the device.
Definition at line 483 of file devmisc.cpp.
Referenced by DeviceMachine::AddChildToHub().
The 71 byte USB 2.0 style hub descriptor legacy tools expect, for any hub speed.
Definition at line 135 of file hubwmi.cpp.
Referenced by HubWmiQueryHubNode().
| VOID NTAPI HubNoPingResponse | ( | _In_ UCXHUB_HUB_CONTEXT | HubContext, |
| _In_ UCXHUB_DEVICE_CONTEXT | DeviceContext | ||
| ) |
Definition at line 2955 of file childpdo.cpp.
Frees the buffers the registry and MS OS code keep in the device. Call at destroy.
Definition at line 2115 of file hubregistry.cpp.
Frees the buffers only the transfer module owns. Call when the device object is destroyed.
Definition at line 973 of file devdesc.cpp.
A device behind a USB4 port holds its host router powered while tunneled or not known yet.
Definition at line 587 of file hubtunnel.cpp.
| BOOLEAN NTAPI HubValidateHubConfiguration | ( | _In_ HubFdo * | Hub, |
| _In_reads_bytes_(Length) PUSB_CONFIGURATION_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
Definition at line 46 of file hubdescval.cpp.
Referenced by HubMachine::CacheConfigDescriptor().
Definition at line 750 of file hubwmi.cpp.
Referenced by PortMachine::NotifyUserOfOverCurrent().
| EVT_WDF_TIMER HubEvtBandwidthRetryTimer |
Definition at line 214 of file hubsvc.h.
Referenced by HubChild::Create().
| _In_ PCUNICODE_STRING Name |