|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Classes | |
| struct | _XHCI_ROOTHUB_CONTEXT |
| struct | _XHCI_SPEED_LIST |
Macros | |
| #define | NDEBUG |
Typedefs | |
| typedef struct _XHCI_ROOTHUB_CONTEXT | XHCI_ROOTHUB_CONTEXT |
| typedef struct _XHCI_ROOTHUB_CONTEXT * | PXHCI_ROOTHUB_CONTEXT |
| typedef struct _XHCI_SPEED_LIST | XHCI_SPEED_LIST |
| typedef struct _XHCI_SPEED_LIST * | PXHCI_SPEED_LIST |
Enumerations | |
| enum | : USHORT { FeatureHubLocalPowerChange = 0 , FeatureHubOverCurrentChange = 1 , FeaturePortEnable = 1 , FeaturePortSuspend = 2 , FeaturePortReset = 4 , FeaturePortLinkState = 5 , FeaturePortPower = 8 , FeatureConnectChange = 16 , FeatureEnableChange = 17 , FeatureSuspendChange = 18 , FeatureOverCurrentChange = 19 , FeatureResetChange = 20 , FeaturePortTest = 21 , FeaturePortIndicator = 22 , FeatureU1Timeout = 23 , FeatureU2Timeout = 24 , FeatureLinkStateChange = 25 , FeatureConfigErrorChange = 26 , FeatureRemoteWakeMask = 27 , FeatureWarmReset = 28 , FeatureWarmResetChange = 29 , FeatureForceLinkPmAccept = 30 } |
Functions | |
| WDF_DECLARE_CONTEXT_TYPE_WITH_NAME (XHCI_ROOTHUB_CONTEXT, XhciGetRootHubContext) | |
| FORCEINLINE ULONG NTAPI | XhciLinkState (_In_ ULONG PortSc) |
| FORCEINLINE ULONG NTAPI | XhciPortSpeed (_In_ ULONG PortSc) |
| FORCEINLINE ULONG NTAPI | XhciLinkWrite (_In_ ULONG State) |
| FORCEINLINE BOOLEAN NTAPI | XhciPortActive (_In_ ULONG PortSc) |
| static PVOID NTAPI | XhciRequestArgument (_In_ WDFREQUEST Request) |
| FORCEINLINE PUSB_DEFAULT_PIPE_SETUP_PACKET NTAPI | XhciSetupOf (_In_ PURB Urb) |
| static PVOID NTAPI | XhciTransferBuffer (_In_opt_ PVOID Buffer, _In_opt_ PMDL Mdl, _In_ ULONG Length, _In_ ULONG Needed) |
| static PVOID NTAPI | XhciHubRequestBuffer (_In_ PURB Urb, _In_ ULONG Needed) |
| static VOID NTAPI | XhciTraceBadRequest (_In_ PCSTR Callback, _In_ PURB Urb) |
| static VOID NTAPI | XhciAddSpeed (_Inout_ PXHCI_SPEED_LIST List, _In_ ULONG Id, _In_ ULONG Exponent, _In_ ULONG Mantissa, _In_ ULONG Mode, _In_ ULONG Direction) |
Variables | |
| static const UCHAR | HubRequestToHub = 0x20 |
| static const UCHAR | HubRequestFromHub = 0xA0 |
| static const UCHAR | HubRequestToPort = 0x23 |
| static const UCHAR | HubRequestFromPort = 0xA3 |
| static const ULONG | XhciResumeSignalMs = 50 |
| static const ULONG | XhciU3WaitSteps = 2400 |
| static const ULONG | XhciU0WaitSteps = 1200 |
| static const ULONG | XhciResumeWaitSteps = 1200 |
| static const ULONG | XhciPortGone = 0xFFFFFFFF |
| #define NDEBUG |
Definition at line 11 of file rootports.cpp.
| typedef struct _XHCI_ROOTHUB_CONTEXT * PXHCI_ROOTHUB_CONTEXT |
| typedef struct _XHCI_SPEED_LIST * PXHCI_SPEED_LIST |
| typedef struct _XHCI_SPEED_LIST XHCI_SPEED_LIST |
Definition at line 20 of file rootports.cpp.
| WDF_DECLARE_CONTEXT_TYPE_WITH_NAME | ( | XHCI_ROOTHUB_CONTEXT | , |
| XhciGetRootHubContext | |||
| ) |
|
static |
Appends one sublink speed (Mode 1 asymmetric, Direction 1 TX); counts past capacity.
Definition at line 1962 of file rootports.cpp.
Referenced by XhciRootHub::FillSpeeds().
Definition at line 151 of file rootports.cpp.
Referenced by XhciRootHub::GetHubStatus(), XhciRootHub::GetPortErrorCount(), and XhciRootHub::GetPortStatus().
| FORCEINLINE ULONG NTAPI XhciLinkState | ( | _In_ ULONG | PortSc | ) |
Definition at line 66 of file rootports.cpp.
Referenced by XhciRootHub::AcknowledgeResume(), XhciRootHub::ClearUsb20PortFeature(), XhciRootHub::GetPortStatus(), XhciRootHub::InterruptTransfer(), XhciRootHub::IsPortConnected(), XhciRootHub::ResuspendResumedPorts(), XhciRootHub::SuspendPort(), XhciRootHub::WaitForU3(), XhciRootHub::WaitU0(), and XhciPortActive().
| FORCEINLINE ULONG NTAPI XhciLinkWrite | ( | _In_ ULONG | State | ) |
PORTSC bits that move the link to State.
Definition at line 85 of file rootports.cpp.
Referenced by XhciRootHub::AcknowledgeResume(), XhciRootHub::ClearUsb20PortFeature(), XhciRootHub::SetUsb30LinkState(), XhciRootHub::SuspendPort(), XhciRootHub::WaitForU3(), and XhciRootHub::WaitU0().
| FORCEINLINE BOOLEAN NTAPI XhciPortActive | ( | _In_ ULONG | PortSc | ) |
Powered, connected, enabled, no pending connect change and not SS.Disabled.
Definition at line 95 of file rootports.cpp.
Referenced by XhciRootHub::ResuspendResumedPorts(), XhciRootHub::WaitForU3(), and XhciRootHub::WaitU0().
| FORCEINLINE ULONG NTAPI XhciPortSpeed | ( | _In_ ULONG | PortSc | ) |
Definition at line 109 of file rootports.cpp.
| FORCEINLINE PUSB_DEFAULT_PIPE_SETUP_PACKET NTAPI XhciSetupOf | ( | _In_ PURB | Urb | ) |
Definition at line 122 of file rootports.cpp.
Referenced by XhciRootHub::ClearHubFeature(), XhciRootHub::ClearPortFeature(), XhciRootHub::GetHubStatus(), XhciRootHub::GetPortErrorCount(), XhciRootHub::GetPortStatus(), XhciRootHub::SetPortFeature(), and XhciTraceBadRequest().
Definition at line 166 of file rootports.cpp.
Referenced by XhciRootHub::ClearHubFeature(), XhciRootHub::ClearPortFeature(), XhciRootHub::GetHubStatus(), XhciRootHub::GetPortErrorCount(), XhciRootHub::GetPortStatus(), and XhciRootHub::SetPortFeature().
|
static |
Data buffer of a transfer with room for Needed bytes, or NULL.
Definition at line 133 of file rootports.cpp.
Referenced by XhciRootHub::InterruptTransfer(), and XhciHubRequestBuffer().
Definition at line 16 of file rootports.cpp.
Referenced by XhciRootHub::GetHubStatus().
Definition at line 18 of file rootports.cpp.
Referenced by XhciRootHub::GetPortErrorCount(), and XhciRootHub::GetPortStatus().
Definition at line 15 of file rootports.cpp.
Referenced by XhciRootHub::ClearHubFeature().
Definition at line 17 of file rootports.cpp.
Referenced by XhciRootHub::ClearPortFeature(), and XhciRootHub::SetPortFeature().
Definition at line 54 of file rootports.cpp.
Referenced by XhciRootHub::AcknowledgeResume(), XhciRootHub::CheckRunning(), XhciRootHub::GetPortStatus(), XhciRootHub::InterruptTransfer(), XhciRootHub::ResuspendResumedPorts(), XhciRootHub::WaitForU3(), and XhciRootHub::WaitU0().
Definition at line 47 of file rootports.cpp.
Referenced by XhciRootHub::StartResumeTimer().
Definition at line 52 of file rootports.cpp.
Referenced by XhciRootHub::ResuspendResumedPorts().
Definition at line 51 of file rootports.cpp.
Referenced by XhciRootHub::WaitU0().
Definition at line 50 of file rootports.cpp.
Referenced by XhciRootHub::WaitForU3().