ReactOS 0.4.17-dev-1281-g065abb3
xhcierrata.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS xHCI Host Controller Driver
3 * LICENSE: MIT (https://spdx.org/licenses/MIT)
4 * PURPOSE: Controller errata flag bit positions
5 * COPYRIGHT: Copyright 2026 Justin Miller <justin.miller@reactos.org>
6 */
7
8#pragma once
9
10/*
11 * Bit positions of the 64 bit errata value. They match the layout the errata
12 * database uses, so a value from there can be ORed in unchanged.
13 */
14enum class XhciErrata : ULONG
15{
24 UnusedBit8 = 8,
26 UnusedBit10 = 10,
28 IntPrimaryOnly = 12,
34 StrmUnsupported = 18,
36 PwrStayInD0 = 20,
47 CmdOneInFlight = 31,
68 EpInfiniteCerr = 52,
78 Reserved62 = 62,
80
81 /* Second 64 bit errata word, position 64 + bit */
84 Usb4TunnelFromAcpiDsm = 64 + 28
85};
86
91 _In_ XhciErrata Bit)
92{
93 return 1ULL << static_cast<ULONG>(Bit);
94}
unsigned __int64 ULONG64
Definition: imports.h:198
#define _In_
Definition: no_sal2.h:158
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define FORCEINLINE
Definition: wdftypes.h:67
FORCEINLINE ULONG64 NTAPI XhciErrataBit(_In_ XhciErrata Bit)
Definition: xhcierrata.h:90
XhciErrata
Definition: xhcierrata.h:15
@ PortHoldWakeMaskAwake
@ XferFlattenMdlChain
@ PortMaskDebugPortNoise
@ StrmReconfigOnStop
@ PortHighSpeedDisableSuspends
@ IsochStarveEventNoEd
@ Usb4TunnelFromVendorPortReg
@ StrmByteCountHasValidFlag
@ EvtDropVendorCode199
@ IsochFsNoBareLinkTd
@ BootStrictBiosRelease
@ PortWakeToU0BeforeSuspend
@ CfgMultiTtFromHubData
@ EpClampIntervalTo7
@ IsochInterruptEveryTd
@ StrmByteCountLayoutA
@ PwrSkipSaveRestore
@ XferOneAsyncTdAtATime
@ PwrResetBeforeShutdown
@ StrmByteCountTruncated
@ IsochNoFrameIdContinuity
@ AcpiDsmAllowD3Cold
@ PortAckCscOnPowerDown
@ EvtCheckTrbAddress
@ EvtDiscardRepeatedEd0
@ AcpiNotifyBeforeIntOff
@ IsochMissedServiceSilent
@ EvtTwoSegmentRingCap
@ PwrTogglePmeEnable
@ StrmByteCountLayoutB
@ StrmByteCountRearm
@ XferPacketAlignChunks
@ PortRetrySuspendEntry
@ BootTolerateBiosHold
@ IsochSkipPastFrames
@ IntelPchAsyncOrderingFix
@ IntelPchBandwidthCap
@ RingKeepTdInOneSegment
@ PortHighSpeedLpmOff
@ EpResetViaSlotCycle
@ XferPadSsBulkInTail
@ RingClearNewSegments
@ Usb4TunnelFromVendorStatusReg
@ AcpiDsmHsicSuspendDetach
@ PwrPreserveVendorRegs
@ PortHighSpeedLpmOffForSuspend
@ EpStopContextErrorIsStopped
@ RegSplit64BitAccess
@ Usb4TunnelFromAcpiDsm
@ EvtResetOnRingOverflow
@ XferFlushTtOnAbort