summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
index 8ccc48be23..341ffd0931 100644
--- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
+++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
@@ -46,21 +46,21 @@ enum {
USB_BOT_COMMAND_ERROR = 0x02, // Phase error, need to reset the device
//
- // Usb Bot retry times
+ // Usb Bot retry to get CSW, refers to specification[BOT10-5.3, it says 2 times]
//
- USB_BOT_GET_STATUS_RETRY = 3,
+ USB_BOT_RECV_CSW_RETRY = 3,
//
- // Usb Bot stall time
+ // Usb Bot wait device reset complete, set by experience
+ //
+ USB_BOT_RESET_DEVICE_STALL = 100 * USB_MASS_1_MILLISECOND,
+
//
- USB_BOT_RESET_STALL = 100 * USB_MASS_STALL_1_MS,
-
- //
- // Usb Bot transfer timeout
+ // Usb Bot transport timeout, set by experience
//
- USB_BOT_CBW_TIMEOUT = 1 * USB_MASS_STALL_1_S,
- USB_BOT_CSW_TIMEOUT = 1 * USB_MASS_STALL_1_S,
- USB_BOT_RESET_TIMEOUT = 3 * USB_MASS_STALL_1_S
+ USB_BOT_SEND_CBW_TIMEOUT = 3 * USB_MASS_1_SECOND,
+ USB_BOT_RECV_CSW_TIMEOUT = 3 * USB_MASS_1_SECOND,
+ USB_BOT_RESET_DEVICE_TIMEOUT = 3 * USB_MASS_1_SECOND,
};
//