X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FUsb%2FUsbBusDxe%2FUsbHub.h;h=e31ba27586b6de7b75ff8904eab84eb04abde155;hp=a5bcbb2623f54ebbf5bd0a8e0975a32bb7f0adc0;hb=23c326c20199413241245cf2e32cfaaec9bc7373;hpb=c52fa98ca98ceaab75e8ddf9ebcfbcbd323bab13 diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h index a5bcbb2623..e31ba27586 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.h @@ -90,8 +90,11 @@ enum { USB_HUB_CLASS_CODE = 0x09, USB_HUB_SUBCLASS_CODE = 0x00, - - USB_HUB_LOOP = 50 + // + // Host software return timeout if port status doesn't change + // after 500ms(LOOP * STALL = 100 * 5ms), set by experience + // + USB_WAIT_PORT_STS_CHANGE_LOOP = 100 }; #pragma pack(1) @@ -112,7 +115,7 @@ typedef struct { typedef struct { UINT16 ChangedBit; - UINT8 Feature; + EFI_USB_PORT_FEATURE Feature; } USB_CHANGE_FEATURE_MAP;