!usbkd.usbhcdext
The !usbkd.usbhcdext command displays information from the device extension of a USB host controller or a USB root hub.
!usbkd.usbhcdext DeviceExtension
Parameters
DeviceExtension
Address of one of the following:
- The device extension for the functional device object (FDO) of a USB host controller.
- The device extension for the physical device object (PDO) a USB root hub.
DLL
Usbkd.dll
Examples
Here is one way to find the address of the device extension for the FDO of an EHCI host controller. First enter !usbkd.usb2tree.
0: kd> !usbkd.usb2tree
EHCI MINIPORT(s) dt usbport!_USBPORT_MINIPORT_DRIVER ffffe00001f48bd0
1)!ehci_info ffffe00001ca11a0 !devobj ffffe00001ca1050 PCI: VendorId 8086 DeviceId 293c RevisionId 0002
...
In the preceding output, the address of the device extension of the FDO is displayed as the argument of the DML command !ehci_info ffffe00001ca11a0.
Now pass the address of the device extension to the !usbhcdext command.
0: kd> !usbkd.usbhcdext ffffe00001ca11a0
HC Flavor 1000 FDO ffffe00001ca1050
Root Hub: FDO ffffe00002320050 !hub2_info ffffe000023201a0
Operational Registers ffffd000228bf020
Device Data ffffe00001ca2da0
dt USBPORT!_FDO_EXTENSION ffffe00001ca15a0
DM Timer Flags ffffe00001ca16d4
FDO Flags ffffe00001ca16d0
HCD Log ffffe00001ca11a0
DeviceHandleList: !usblist ffffe00001ca23b8, DL
DeviceHandleDeletedList: !usblist ffffe00001ca23c8, DL [Empty]
GlobalEndpointList: !usblist ffffe00001ca2388, EP
EpNeoStateChangeList: !usblist ffffe00001ca2370, SC [Empty]
GlobalTtListHead: !usblist ffffe00001ca23a8, TT [Empty]
BusContextHead: !usblist ffffe00001ca16b0, BC
## Pending Requests
[001] dt USBPORT!_USB_IOREQUEST_CONTEXT ffffe00001ca1450 Tag: AddD Obj: ffffe00001ca11a0
...
## XDPC List
01) dt USBPORT!_XDPC_CONTEXT ffffe00001ca1f18
...
Here is one way to find the address of the device extension for the PDO of a root hub. First enter !usbkd.usb2tree.
0: kd> !usbkd.usb2tree
EHCI MINIPORT(s) dt usbport!_USBPORT_MINIPORT_DRIVER ffffe00001f48bd0
1)!ehci_info ffffe00001ca11a0 !devobj ffffe00001ca1050 PCI: VendorId 8086 DeviceId 293c RevisionId 0002
RootHub !hub2_info ffffe000023201a0 !devstack ffffe00002320050
...
In the preceding output, you can see the address of the FDO of the root hub displayed as the argument to the command !devstack ffffe00002320050. Use the !devstack command to find the address of the PDO and the PDO device extension.
0: kd> !kdexts.devstack ffffe00002320050
!DevObj !DrvObj !DevExt ObjectName
> ffffe00002320050 \Driver\usbhub ffffe000023201a0 0000002d
ffffe0000213c050 \Driver\usbehci ffffe0000213c1a0 USBPDO-3
...
In the preceding output, you can see that the address of the device extension for the PDO of the root hub is ffffe0000213c1a0
.
Now pass the address of the device extension to the !usbhcdext command.
0: kd> !usbkd.usbhcdext ffffe0000213c1a0
Root Hub PDO Extension
Parent HC: FDO ffffe00001ca1050 !ehci_info ffffe00001ca11a0
HUB FDO ffffe00002320050 !hub2_info ffffe000023201a0
dt USBPORT!_PDO_EXTENSION ffffe0000213c5a0
## Pending Requests
[001] dt USBPORT!_USB_IOREQUEST_CONTEXT ffffe0000213c450 Tag: RHcr Obj: ffffe0000213c1a0
[002] dt USBPORT!_USB_IOREQUEST_CONTEXT ffffe00003ce5800 Tag: iIRP Obj: ffffe00002182210
## POWER FUNC HISTORY (latest at bottom)
[00] IRP_MN_WAIT_WAKE (PowerSystemHibernate)
...
## PnP STATE LOG (latest at bottom)
## EVENT STATE NEXT
[01] EvPDO_IRP_MN_START_DEVICE PnpNotStarted PnpStarted