49 ULONG PciState, TimeoutEntry, PmcsrOffset, TryCount;
89 Interval.QuadPart = -10 * TimeoutEntry;
107 PCI_VERIFIER_DETECTED_VIOLATION,
137 DPRINT1(
"Cannot disable decodes on this device, ignoring PM request...\n");
146 DeviceExtension->CapabilitiesPtr,
185 DPRINT1(
"No PM on this device, ignoring request\n");
192 if (DeviceState < DeviceExtension->
PowerState.CurrentDeviceState)
#define NT_SUCCESS(StatCode)
VOID NTAPI PciWriteDeviceConfig(IN PPCI_PDO_EXTENSION DeviceExtension, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
UCHAR NTAPI PciReadDeviceCapability(IN PPCI_PDO_EXTENSION DeviceExtension, IN UCHAR Offset, IN ULONG CapabilityId, OUT PPCI_CAPABILITIES_HEADER Buffer, IN ULONG Length)
PPCI_VERIFIER_DATA NTAPI PciVerifierRetrieveFailureData(IN ULONG FailureCode)
BOOLEAN NTAPI PciCanDisableDecodes(IN PPCI_PDO_EXTENSION DeviceExtension, IN PPCI_COMMON_HEADER Config, IN ULONGLONG HackFlags, IN BOOLEAN ForPowerDown)
VOID NTAPI PciReadDeviceConfig(IN PPCI_PDO_EXTENSION DeviceExtension, IN PVOID Buffer, IN ULONG Offset, IN ULONG Length)
NTSTATUS NTAPI PciFdoWaitWake(IN PIRP Irp, IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension)
NTSTATUS NTAPI PciFdoSetPowerState(IN PIRP Irp, IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension)
ULONG PciPowerDelayTable[PowerDeviceD3 *PowerDeviceD3]
NTSTATUS NTAPI PciStallForPowerChange(IN PPCI_PDO_EXTENSION PdoExtension, IN DEVICE_POWER_STATE PowerState, IN ULONG_PTR CapOffset)
NTSTATUS NTAPI PciSetPowerManagedDevicePowerState(IN PPCI_PDO_EXTENSION DeviceExtension, IN DEVICE_POWER_STATE DeviceState, IN BOOLEAN IrpSet)
NTSTATUS NTAPI PciFdoIrpQueryPower(IN PIRP Irp, IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension)
#define UNIMPLEMENTED_DBGBREAK(...)
#define KeGetCurrentIrql()
#define KeDelayExecutionThread(mode, foo, t)
#define KeStallExecutionProcessor(MicroSeconds)
#define UNREFERENCED_PARAMETER(P)
ULONG NTAPI KeQueryTimeIncrement(VOID)
VOID __cdecl VfFailDeviceNode(IN PDEVICE_OBJECT PhysicalDeviceObject, IN ULONG BugCheckMajorCode, IN ULONG BugCheckMinorCode, IN VF_FAILURE_CLASS FailureClass, IN OUT PULONG AssertionControl, IN PSTR DebuggerMessageText, IN PSTR ParameterFormatString,...)
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
#define STATUS_DEVICE_PROTOCOL_ERROR
#define STATUS_NOT_SUPPORTED
#define STATUS_NOT_IMPLEMENTED
#define PCI_HACK_NO_PM_CAPS
struct _PCI_PMC::_PM_SUPPORT Support
union _PCI_PM_CAPABILITY::@4030 PMC
union _PCI_PM_CAPABILITY::@4031 PMCSR
PCI_CAPABILITIES_HEADER Header
VF_FAILURE_CLASS FailureClass
PCHAR DebuggerMessageText
#define FIELD_OFFSET(t, f)
_In_ WDFDEVICE _Out_ PWDF_DEVICE_STATE DeviceState
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
#define PCI_CAPABILITY_ID_POWER_MANAGEMENT