]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBot.h
Support ICC build .
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMassStorageDxe / UsbMassBot.h
index e11e9c5108ef1696075b045c7d1b4aaed170eb5a..b6b87b931b8904a883a8da883bf3cc9bba3eca25 100644 (file)
@@ -46,21 +46,21 @@ enum {
   USB_BOT_COMMAND_ERROR    = 0x02, // Phase error, need to reset the device\r
 \r
   //\r
-  // Usb Bot retry times\r
+  // Usb Bot retry to get CSW, refers to specification[BOT10-5.3, it says 2 times]\r
   //\r
-  USB_BOT_GET_STATUS_RETRY = 3,\r
+  USB_BOT_RECV_CSW_RETRY       = 3,\r
 \r
   //\r
-  // Usb Bot stall time\r
+  // Usb Bot wait device reset complete, set by experience\r
+  //  \r
+  USB_BOT_RESET_DEVICE_STALL   = 100 * USB_MASS_1_MILLISECOND,\r
+  \r
   //\r
-  USB_BOT_RESET_STALL      = 100 * USB_MASS_STALL_1_MS,\r
-\r
-  //\r
-  // Usb Bot transfer timeout\r
+  // Usb Bot transport timeout, set by experience\r
   //\r
-  USB_BOT_CBW_TIMEOUT      = 1 * USB_MASS_STALL_1_S,\r
-  USB_BOT_CSW_TIMEOUT      = 1 * USB_MASS_STALL_1_S,\r
-  USB_BOT_RESET_TIMEOUT    = 3 * USB_MASS_STALL_1_S,\r
+  USB_BOT_SEND_CBW_TIMEOUT     = 3 * USB_MASS_1_SECOND,\r
+  USB_BOT_RECV_CSW_TIMEOUT     = 3 * USB_MASS_1_SECOND,\r
+  USB_BOT_RESET_DEVICE_TIMEOUT = 3 * USB_MASS_1_SECOND\r
 };\r
 \r
 //\r