Request.Length = CmdLen;\r
\r
Status = EFI_SUCCESS;\r
- Timeout = Timeout / USB_MASS_STALL_1_MS;\r
+ Timeout = Timeout / USB_MASS_1_MILLISECOND;\r
\r
for (Retry = 0; Retry < USB_CBI_MAX_RETRY; Retry++) {\r
//\r
Remain = *TransLen;\r
Retry = 0;\r
Status = EFI_SUCCESS;\r
- Timeout = Timeout / USB_MASS_STALL_1_MS;\r
+ Timeout = Timeout / USB_MASS_1_MILLISECOND;\r
\r
//\r
// Transfer the data, if the device returns NAK, retry it.\r
\r
Endpoint = UsbCbi->InterruptEndpoint->EndpointAddress;\r
Status = EFI_SUCCESS;\r
- Timeout = Timeout / USB_MASS_STALL_1_MS;\r
+ Timeout = Timeout / USB_MASS_1_MILLISECOND;\r
\r
//\r
// Attemp to the read the result from interrupt endpoint\r
\r
ResetCmd[0] = 0x1D;\r
ResetCmd[1] = 0x04;\r
- Timeout = USB_CBI_RESET_TIMEOUT / USB_MASS_STALL_1_MS;\r
+ Timeout = USB_CBI_RESET_DEVICE_TIMEOUT / USB_MASS_1_MILLISECOND;\r
\r
//\r
// Send the command to the device. Don't use UsbCbiExecCommand here.\r
// 50ms to wait it complete\r
//\r
UsbCbiGetStatus (UsbCbi, Timeout, &Result);\r
- gBS->Stall (50 * 1000);\r
+ gBS->Stall (USB_CBI_RESET_DEVICE_STALL);\r
\r
//\r
// Clear the Bulk-In and Bulk-Out stall condition and\r