ReactOS 0.4.17-dev-1281-g065abb3
usbdhub.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS USB Driver Library
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: usbd.sys exports used by the SuperSpeed hub driver
5 * COPYRIGHT: Copyright 2026 Justin Miller <justin.miller@reactos.org>
6 */
7
8#pragma once
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14/* Hub numbers run from 1 to 255; 0 means none was available */
15#define USBD_HUB_NUMBER_NONE 0
16#define USBD_HUB_NUMBER_COUNT 256
17
18/* USBD_AddDeviceToGlobalList results */
19#define USBD_GLOBAL_LIST_ADDED 1
20#define USBD_GLOBAL_LIST_DUPLICATE_PENDING 2
21#define USBD_GLOBAL_LIST_DUPLICATE 3
22#define USBD_GLOBAL_LIST_NO_MEMORY 4
23
28
30VOID
33 _In_ ULONG HubNumber);
34
46 _In_ PUSB_ID_STRING SerialNumber);
47
49VOID
53
55VOID
59
60#ifdef __cplusplus
61}
62#endif
#define _IRQL_requires_max_(irql)
Definition: driverspecs.h:230
#define _IRQL_requires_(irql)
Definition: driverspecs.h:229
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
VOID NTAPI USBD_ReleaseHubNumber(_In_ ULONG HubNumber)
Definition: hubsup.c:117
VOID NTAPI USBD_MarkDeviceAsDisconnected(_In_ PVOID DeviceContext)
Definition: hubsup.c:269
ULONG NTAPI USBD_AddDeviceToGlobalList(_In_ PVOID DeviceContext, _In_opt_ PVOID HubContext, _In_ ULONG PortNumber, _In_opt_ PVOID ConnectorNode, _In_ USHORT IdVendor, _In_ USHORT IdProduct, _In_ PUSB_ID_STRING SerialNumber)
Definition: hubsup.c:204
ULONG NTAPI USBD_AllocateHubNumber(VOID)
Definition: hubsup.c:96
VOID NTAPI USBD_RemoveDeviceFromGlobalList(_In_ PVOID DeviceContext)
Definition: hubsup.c:286
_In_ UCXHUB_DEVICE_CONTEXT DeviceContext
Definition: hubucx.h:237
_In_ ULONG PortNumber
Definition: hubucx.h:272
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
unsigned short USHORT
Definition: pedump.c:61
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
_In_opt_ PVOID _In_ ULONG _In_opt_ PVOID ConnectorNode
Definition: usbdhub.h:43
_In_opt_ PVOID HubContext
Definition: usbdhub.h:41
_In_opt_ PVOID _In_ ULONG _In_opt_ PVOID _In_ USHORT IdVendor
Definition: usbdhub.h:44
_In_opt_ PVOID _In_ ULONG _In_opt_ PVOID _In_ USHORT _In_ USHORT _In_ PUSB_ID_STRING SerialNumber
Definition: usbdhub.h:46
_In_opt_ PVOID _In_ ULONG _In_opt_ PVOID _In_ USHORT _In_ USHORT IdProduct
Definition: usbdhub.h:45