Efi_usb_io_protocol.usbgetdevicedescriptor(), Usbgetdevicedescriptor(), Func – Intel Extensible Firmware Interface User Manual
Page 594

Extensible Firmware Interface Specification
14-54 12/01/02
Version
1.10
EFI_USB_IO_PROTOCOL.UsbGetDeviceDescriptor()
Summary
Retrieves the USB Device Descriptor.
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_USB_IO_GET_DEVICE_DESCRIPTOR) (
IN EFI_USB_IO_PROTOCOL
*This,
OUT EFI_USB_DEVICE_DESCRIPTOR
*DeviceDescriptor
);
Parameters
This
A pointer to the
instance. Type
EFI_USB_IO_PROTOCOL
is defined in Section 14.2.5.
DeviceDescriptor
A pointer to the caller allocated USB Device Descriptor. See
“Related Definitions” for a detailed description.
Related Definitions
//
// See USB1.1 for detail descrption.
//
typedef struct {
UINT8
Length;
UINT8
DescriptorType;
UINT16
BcdUSB;
UINT8
DeviceClass;
UINT8
DeviceSubClass;
UINT8
DeviceProtocol;
UINT8
MaxPacketSize0;
UINT16
IdVendor;
UINT16
IdProduct;
UINT16
BcdDevice;
UINT8
StrManufacturer;
UINT8
StrProduct;
UINT8
StrSerialNumber;
UINT8
NumConfigurations;
} EFI_USB_DEVICE_DESCRIPTOR;