21 "QUERY_REMOVE_DEVICE",
23 "CANCEL_REMOVE_DEVICE",
27 "QUERY_DEVICE_RELATIONS",
31 "QUERY_RESOURCE_REQUIREMENTS",
33 "FILTER_RESOURCE_REQUIREMENTS",
34 "** UNKNOWN PNP IRP Minor Code **",
40 "QUERY_PNP_DEVICE_STATE",
41 "QUERY_BUS_INFORMATION",
42 "DEVICE_USAGE_NOTIFICATION"
88 Text =
"** UNKNOWN PNP IRP Minor Code **";
110 Text =
"** UNKNOWN PO IRP Minor Code **";
134 switch (IoStackLocation->MajorFunction)
168 else if (IoStackLocation->MajorFunction ==
IRP_MJ_PNP)
174 PdoDeviceExtension = (
PVOID)DeviceExtension;
175 DPRINT1(
"PDO(b=0x%x, d=0x%x, f=0x%x)<-%s\n",
177 PdoDeviceExtension->
Slot.
u.
bits.DeviceNumber,
178 PdoDeviceExtension->
Slot.
u.
bits.FunctionNumber,
188 else if (IoStackLocation->MajorFunction ==
IRP_MJ_PNP)
194 DPRINT1(
"FDO(%p)<-%s\n", DeviceExtension, IrpString);
198 if (IoStackLocation->MinorFunction > MaxMinor)
199 DPRINT1(
"Unknown IRP, minor = 0x%x\n", IoStackLocation->MinorFunction);
202 return ((1 << IoStackLocation->MinorFunction) & BreakMask);
226 DPRINT1(
"Capabilities\n Lock:%u, Eject:%u, Remove:%u, Dock:%u, UniqueId:%u\n",
227 DeviceCaps->LockSupported,
228 DeviceCaps->EjectSupported,
229 DeviceCaps->Removable,
230 DeviceCaps->DockDevice,
231 DeviceCaps->UniqueID);
232 DbgPrint(
" SilentInstall:%u, RawOk:%u, SurpriseOk:%u\n",
233 DeviceCaps->SilentInstall,
234 DeviceCaps->RawDeviceOK,
235 DeviceCaps->SurpriseRemovalOK);
236 DbgPrint(
" Address %08x, UINumber %08x, Latencies D1 %u, D2 %u, D3 %u\n",
238 DeviceCaps->UINumber,
239 DeviceCaps->D1Latency,
240 DeviceCaps->D2Latency,
241 DeviceCaps->D3Latency);
244 DbgPrint(
" System Wake: %s, Device Wake: %s\n DeviceState[PowerState] [",
273 default:
return "*** INVALID RESOURCE TYPE ***";
293 for (
i = 0;
i < 6;
i += 3)
304 ULONG AlternativeLists;
310 if (!Requirements)
return;
313 AlternativeLists = Requirements->AlternativeLists;
314 List = Requirements->List;
317 DPRINT1(
" IO_RESOURCE_REQUIREMENTS_LIST (PCI Bus Driver)\n");
318 DPRINT1(
" InterfaceType %d\n", Requirements->InterfaceType);
319 DPRINT1(
" BusNumber 0x%x\n", Requirements->BusNumber);
320 DPRINT1(
" SlotNumber %d (0x%x), (d/f = 0x%x/0x%x)\n",
321 Requirements->SlotNumber,
322 Requirements->SlotNumber,
325 DPRINT1(
" AlternativeLists %u\n", AlternativeLists);
328 while (AlternativeLists--)
335 DPRINT1(
"\n List[%u].Count = %u\n", AlternativeLists,
Count);
351 DPRINT1(
" Partial Resource Descriptor @0x%p\n", PartialResource);
353 DPRINT1(
" ShareDisposition = %u\n", PartialResource->ShareDisposition);
354 DPRINT1(
" Flags = 0x%04X\n", PartialResource->Flags);
355 DPRINT1(
" Data[%d] = %08x %08x %08x\n",
357 PartialResource->u.Generic.Start.LowPart,
358 PartialResource->u.Generic.Start.HighPart,
359 PartialResource->u.Generic.Length);
371 if (!PartialList)
return;
374 ListCount = PartialList->Count;
375 FullDescriptor = PartialList->List;
376 DPRINT1(
" CM_RESOURCE_LIST (PCI Bus Driver) (List Count = %u)\n", PartialList->Count);
379 for (
i = 0;
i < ListCount;
i++)
FORCEINLINE PCM_PARTIAL_RESOURCE_DESCRIPTOR CmiGetNextPartialDescriptor(_In_ const CM_PARTIAL_RESOURCE_DESCRIPTOR *PartialDescriptor)
BOOLEAN NTAPI PciDebugIrpDispatchDisplay(IN PIO_STACK_LOCATION IoStackLocation, IN PPCI_FDO_EXTENSION DeviceExtension, IN USHORT MaxMinor)
VOID NTAPI PciDebugPrintPartialResource(IN PCM_PARTIAL_RESOURCE_DESCRIPTOR PartialResource)
VOID NTAPI PciDebugDumpCommonConfig(IN PPCI_COMMON_HEADER PciData)
PCHAR SystemPowerStates[]
ULONG PciBreakOnFdoPnpIrp
PCHAR NTAPI PciDebugCmResourceTypeToText(IN UCHAR Type)
VOID NTAPI PciDebugPrintIoResReqList(IN PIO_RESOURCE_REQUIREMENTS_LIST Requirements)
ULONG PciBreakOnPdoPowerIrp
VOID NTAPI PciDebugPrintCmResList(IN PCM_RESOURCE_LIST PartialList)
PCHAR NTAPI PciDebugPnpIrpTypeToText(IN USHORT MinorFunction)
PCHAR DevicePowerStates[]
ULONG PciBreakOnPdoPnpIrp
VOID NTAPI PciDebugPrintIoResource(IN PIO_RESOURCE_DESCRIPTOR Descriptor)
PCHAR NTAPI PciDebugPoIrpTypeToText(IN USHORT MinorFunction)
VOID NTAPI PciDebugDumpQueryCapabilities(IN PDEVICE_CAPABILITIES DeviceCaps)
ULONG PciBreakOnFdoPowerIrp
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define CmResourceTypePcCardConfig
struct _CM_FULL_RESOURCE_DESCRIPTOR * PCM_FULL_RESOURCE_DESCRIPTOR
#define CmResourceTypeConfigData
#define CmResourceTypeMemory
#define CmResourceTypeDma
#define CmResourceTypeDevicePrivate
#define CmResourceTypeDeviceSpecific
#define CmResourceTypePort
#define CmResourceTypeBusNumber
#define CmResourceTypeInterrupt
#define IRP_MN_SURPRISE_REMOVAL
CM_PARTIAL_RESOURCE_LIST PartialResourceList
INTERFACE_TYPE InterfaceType
CM_PARTIAL_RESOURCE_DESCRIPTOR PartialDescriptors[1]
PPCI_FDO_EXTENSION ParentFdoExtension
struct _PCI_SLOT_NUMBER::@4018::@4019 bits
union _PCI_SLOT_NUMBER::@4018 u
_In_ UCHAR _In_ UCHAR MinorFunction
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
_Must_inspect_result_ _In_ WDFCMRESLIST List
struct _IO_RESOURCE_LIST * PIO_RESOURCE_LIST
#define PCI_COMMON_HDR_LENGTH
#define IRP_MN_QUERY_POWER