ReactOS 0.4.17-dev-1281-g065abb3
fdo.cpp File Reference
#include "usbhub3.h"
#include <debug.h>
Include dependency graph for fdo.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define HUB_OVERCURRENT_TIME   500
 
#define HUB_RESET_RETRY_TIME   500
 
#define HUB_DESCRIPTOR_RETRY_TIME   100
 
#define HUB_DEFAULT_IDLE_TIMEOUT   50
 
#define HUB_ROOT_MAX_PORT_POWER   500
 
#define HUB_RESET_LIMIT   3
 
#define HUB_RECOVERY_LIMIT   10
 
#define HUB_RECOVERY_WINDOW   (60LL * 1000 * 1000 * 10)
 
#define HUB_MSG_HUB_RESET_FAILED   0x40020003
 

Functions

 _IRQL_requires_ (PASSIVE_LEVEL) static VOID NTAPI HubFdoApplyTunnelLpmRule(_In_ HubFdo *Hub)
 Turns off link power management below a hub on a tunneled or unknown USB4 port, or below a root hub outside the system container.
 

Variables

static const UNICODE_STRING HubSystemContainerId
 
static const WCHAR HubNonFunctionalDescription [] = L"SuperSpeed USB Hub (Non Functional)"
 

Macro Definition Documentation

◆ HUB_DEFAULT_IDLE_TIMEOUT

#define HUB_DEFAULT_IDLE_TIMEOUT   50

Definition at line 18 of file fdo.cpp.

◆ HUB_DESCRIPTOR_RETRY_TIME

#define HUB_DESCRIPTOR_RETRY_TIME   100

Definition at line 16 of file fdo.cpp.

◆ HUB_MSG_HUB_RESET_FAILED

#define HUB_MSG_HUB_RESET_FAILED   0x40020003

Definition at line 27 of file fdo.cpp.

◆ HUB_OVERCURRENT_TIME

#define HUB_OVERCURRENT_TIME   500

Definition at line 14 of file fdo.cpp.

◆ HUB_RECOVERY_LIMIT

#define HUB_RECOVERY_LIMIT   10

Definition at line 23 of file fdo.cpp.

◆ HUB_RECOVERY_WINDOW

#define HUB_RECOVERY_WINDOW   (60LL * 1000 * 1000 * 10)

Definition at line 24 of file fdo.cpp.

◆ HUB_RESET_LIMIT

#define HUB_RESET_LIMIT   3

Definition at line 22 of file fdo.cpp.

◆ HUB_RESET_RETRY_TIME

#define HUB_RESET_RETRY_TIME   500

Definition at line 15 of file fdo.cpp.

◆ HUB_ROOT_MAX_PORT_POWER

#define HUB_ROOT_MAX_PORT_POWER   500

Definition at line 19 of file fdo.cpp.

◆ NDEBUG

#define NDEBUG

Definition at line 10 of file fdo.cpp.

Function Documentation

◆ _IRQL_requires_()

_IRQL_requires_ ( PASSIVE_LEVEL  )

Turns off link power management below a hub on a tunneled or unknown USB4 port, or below a root hub outside the system container.

Sends a synchronous IOCTL to the specified device object.

Definition at line 66 of file fdo.cpp.

70{
71 if (*WorkItem == NULL)
72 return;
73
74 m_Stack.WorkItemFlush(*WorkItem);
75 m_Stack.WorkItemDelete(*WorkItem);
76 *WorkItem = NULL;
77}
#define NULL
Definition: types.h:112
_In_opt_ PVOID _In_ PUCXHUB_WORKITEM WorkItem
Definition: hubucx.h:227

Variable Documentation

◆ HubNonFunctionalDescription

const WCHAR HubNonFunctionalDescription[] = L"SuperSpeed USB Hub (Non Functional)"
static

Definition at line 34 of file fdo.cpp.

◆ HubSystemContainerId

const UNICODE_STRING HubSystemContainerId
static
Initial value:
=
RTL_CONSTANT_STRING(L"{00000000-0000-0000-FFFF-FFFFFFFFFFFF}")
#define RTL_CONSTANT_STRING(s)
Definition: combase.c:35
#define L(x)
Definition: resources.c:13

Definition at line 30 of file fdo.cpp.