ReactOS 0.4.17-dev-1281-g065abb3
devreq.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS SuperSpeed USB Hub Driver
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Control transfers to a child device and the descriptor cache
5 * COPYRIGHT: Copyright 2026 Justin Miller <justin.miller@reactos.org>
6 */
7
8#pragma once
9
10#include "hubid.h"
11
12/* MS OS 1.0 and 2.0 feature descriptor indexes (wIndex of the vendor request) */
13#define HUB_MSOS_INDEX_EXT_CONFIG 4
14#define HUB_MSOS_INDEX_EXT_PROPERTIES 5
15#define HUB_MSOS_INDEX_CONTAINER_ID 6
16#define HUB_MSOS20_INDEX_SET 7
17#define HUB_MSOS20_INDEX_ALT_ENUM 8
18
19/* String index of the MS OS string descriptor */
20#define HUB_MSOS_STRING_INDEX 0xEE
21
22/* devreq.cpp */
23
31 _In_ BOOLEAN ShortTransferOk);
32
39{
40 return Child->m_Control.Urb.TransferBufferLength;
41}
42
43/* devdesc.cpp */
44
46VOID
51
52/* hubioctl.cpp */
53
55VOID
59 _In_ WDFREQUEST Request,
unsigned char BOOLEAN
Definition: actypes.h:127
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
VOID NTAPI HubCompleteFdoDescriptorRequest(_In_ HubChild *Child, _In_ WDFREQUEST Request, _In_ NTSTATUS Status, _In_ ULONG Size)
Definition: hubioctl.cpp:372
VOID NTAPI HubDeviceDescContext(_In_ HubChild *Child, _Out_ HubDescContext *Context)
Definition: devdesc.cpp:35
FORCEINLINE ULONG NTAPI HubDeviceBytesReturned(_In_ HubChild *Child)
Definition: devreq.h:37
BOOLEAN NTAPI HubDeviceSend(_In_ HubChild *Child, _In_reads_bytes_opt_(Length) PVOID Buffer, _In_ ULONG Length, _In_ BOOLEAN ShortTransferOk)
Definition: devreq.cpp:262
Status
Definition: gdiplustypes.h:24
_In_ PIRP _In_ PIO_COMPLETION_ROUTINE _In_ PVOID Context
Definition: kse.h:81
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _In_reads_bytes_opt_(s)
Definition: no_sal2.h:224
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFREQUEST Request
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4539
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:536
#define FORCEINLINE
Definition: wdftypes.h:67