Muokkaa

Jaa


!usbkd._ehcidd

The !usbkd._ehcidd command displays information from a usbehci!_DEVICE_DATA structure.

!usbkd._ehcidd StructAddr

Parameters

StructAddr
Address of a usbehci!_DEVICE_DATA structure. To find addresses of usbehci!_DEVICE_DATA structures, use !usbhcdext or !usbhcdlist.

DLL

Usbkd.dll

Examples

Here is one way to get the address of a usbehci!_DEVICE_DATA structure. First enter !usbkd.usbhcdlist.

0: kd> !usbkd.usbhcdlist

MINIPORT List @ fffff80001e5bbd0

## List of EHCI controllers

!drvobj ffffe00001fd33a0 dt USBPORT!_USBPORT_MINIPORT_DRIVER ffffe00001f48bd0 Registration Packet ffffe00001f48c08

01. Xxxx Corporation PCI: VendorID Xxxx DeviceID Xxxx RevisionId 0002
    !devobj ffffe0000781a050
    !ehci_info ffffe0000781a1a0
    Operational Registers ffffd00021fb8420
    Device Data ffffe0000781bda0
    ...

In the preceding output, ffffe0000781bda0 is the address of a _DEVICE_DATA structure.

Now pass the structure address to !_ehcidd

0: kd> !usbkd._ehcidd ffffe0000781bda0

*USBEHCI DEVICE DATA ffffe0000781bda0
** dt usbehci!_DEVICE_DATA ffffe0000781bda0 

get_field_ulong ffffe0000781bda0 usbehci!_DEVICE_DATA Flags
*All Endpoints list:
head @ ffffe0000781bdb0 f_link ffffe0000781bdb0 b_link ffffe0000781bdb0
AsyncQueueHead ffffd00021cf5000 !_ehciqh ffffd00021cf5000
    PhysicalAddress: 0xde79a000
    NextQh: ffffd00021cf5000 Hlink de79a002
    PrevQh: ffffd00021cf5000

See also

USB 2.0 Debugger Extensions

Universal Serial Bus (USB) Drivers