usb mdb command to view descriptors of USB devices

来源:互联网 发布:仿淘宝手机首页 编辑:程序博客网 时间:2024/06/07 19:14
[allen@blu-lab:uts]pfexec mdb -k
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc pcplusmp scsi_vhci zfs sata sd ip hook neti arp usba uhci stmf_sbd stmf kssl fctl md sockfs lofs random idm sppp cpc fcp fcip smbsrv nfs crypto nsmb logindmux ptm ufs ipc ]
> ::prtusb
INDEX   DRIVER      INST  NODE            VID.PID     PRODUCT             
1       ehci        0     pci8086,34cc    0000.0000   No Product String
2       uhci        0     pci8086,34cc    0000.0000   No Product String
3       uhci        1     pci8086,34cc    0000.0000   No Product String
4       uhci        2     pci8086,34cc    0000.0000   No Product String
5       uhci        3     pci8086,34cc    0000.0000   No Product String
6       hubd        0     hub             0424.2504   No Product String
7       usb_mid     0     device          0557.2217   ATEN  CS-1716/08/04
> ::prtusb -v -i 7
INDEX   DRIVER      INST  NODE            VID.PID     PRODUCT             
7       usb_mid     0     device          0557.2217   ATEN  CS-1716/08/04

Device Descriptor
{
    bLength = 0x12
    bDescriptorType = 0x1
    bcdUSB = 0x110
    bDeviceClass = 0
    bDeviceSubClass = 0
    bDeviceProtocol = 0
    bMaxPacketSize0 = 0x8
    idVendor = 0x557
    idProduct = 0x2217
    bcdDevice = 0x100
    iManufacturer = 0x1
    iProduct = 0x2
    iSerialNumber = 0
    bNumConfigurations = 0x1
}
    -- Active Config Index 0
    Configuration Descriptor
    {
        bLength = 0x9
        bDescriptorType = 0x2
        wTotalLength = 0x3b
        bNumInterfaces = 0x2
        bConfigurationValue = 0x1
        iConfiguration = 0x0
        bmAttributes = 0xa0
        bMaxPower = 0x32
    }
        Interface Descriptor
        {
            bLength = 0x9
            bDescriptorType = 0x4
            bInterfaceNumber = 0x0
            bAlternateSetting = 0x0
            bNumEndpoints = 0x1
            bInterfaceClass = 0x3
            bInterfaceSubClass = 0x1
            bInterfaceProtocol = 0x1
            iInterface = 0x4
        }
            HID Descriptor
            {
                bLength = 0x9
                bDescriptorType = 0x21
                bcdHID = 0x110
                bCountryCode = 0x1e
                bNumDescriptors = 0x1
                bReportDescriptorType = 0x22
                wReportDescriptorLength = 0x41
            }
        Endpoint Descriptor           
        {
            bLength = 0x7
            bDescriptorType = 0x5
            bEndpointAddress = 0x81
            bmAttributes = 0x3
            wMaxPacketSize = 0x8
            bInterval = 0xa
        }
        Interface Descriptor
        {
            bLength = 0x9
            bDescriptorType = 0x4
            bInterfaceNumber = 0x1
            bAlternateSetting = 0x0
            bNumEndpoints = 0x1
            bInterfaceClass = 0x3
            bInterfaceSubClass = 0x1
            bInterfaceProtocol = 0x2
            iInterface = 0x5
        }
            HID Descriptor
            {
                bLength = 0x9
                bDescriptorType = 0x21
                bcdHID = 0x110
                bCountryCode = 0x0
                bNumDescriptors = 0x1
                bReportDescriptorType = 0x22
                wReportDescriptorLength = 0x34
            }
        Endpoint Descriptor
        {
            bLength = 0x7
            bDescriptorType = 0x5
            bEndpointAddress = 0x82
            bmAttributes = 0x3
            wMaxPacketSize = 0x8
            bInterval = 0xa
        }
                                             

原创粉丝点击