- Usb hub control transfer to get the super speed hub descriptor.\r
-\r
- @param HubDev The hub device.\r
- @param Buf The buffer to hold the descriptor.\r
-\r
- @retval EFI_SUCCESS The hub descriptor is retrieved.\r
- @retval Others Failed to retrieve the hub descriptor.\r
-\r
-**/\r
-EFI_STATUS\r
-UsbHubCtrlGetSuperSpeedHubDesc (\r
- IN USB_DEVICE *HubDev,\r
- OUT VOID *Buf\r
- )\r
-{\r
- EFI_STATUS Status;\r
- \r
- Status = EFI_INVALID_PARAMETER;\r
- \r
- Status = UsbCtrlRequest (\r
- HubDev,\r
- EfiUsbDataIn,\r
- USB_REQ_TYPE_CLASS,\r
- USB_HUB_TARGET_HUB,\r
- USB_HUB_REQ_GET_DESC,\r
- (UINT16) (USB_DESC_TYPE_HUB_SUPER_SPEED << 8),\r
- 0,\r
- Buf,\r
- 32\r
- );\r
-\r
- return Status;\r
-}\r
-\r
-/**\r
- Usb hub control transfer to get the hub descriptor.\r