/* Usb hub control transfer to get the hub status. */
EFI_STATUS UsbHubCtrlGetHubStatus(IN USB_DEVICE *HubDev, OUT UINT32 *State)
/* Usb hub control transfer to get the hub status. */
EFI_STATUS UsbHubCtrlGetHubStatus(IN USB_DEVICE *HubDev, OUT UINT32 *State)
{
  EFI_STATUS  Status;
  Status = UsbCtrlRequest (
             HubDev,
             EfiUsbDataIn,
             USB_REQ_TYPE_CLASS,
             USB_HUB_TARGET_HUB,
             USB_HUB_REQ_GET_STATUS,
             0,
             0,
             State,
             4
             );
  return Status;
}