\r
//\r
// If ExecCommand() returns no error and CmdResult is success,\r
- // then the commnad transfer is successful.\r
+ // then the command transfer is successful.\r
//\r
if ((CmdResult == USB_MASS_CMD_SUCCESS) && !EFI_ERROR (Status)) {\r
return EFI_SUCCESS;\r
This function get the parameters for the USB mass storage media,\r
It is used both to initialize the media during the Start() phase\r
of Driver Binding Protocol and to re-initialize it when the media is\r
- changed. Althought the RemoveableMedia is unlikely to change,\r
+ changed. Although the RemoveableMedia is unlikely to change,\r
it is also included here.\r
\r
@param UsbMass The device to retrieve disk gemotric.\r
// Mass command timeout, refers to specification[USB20-9.2.6.1]\r
//\r
// USB2.0 Spec define the up-limit timeout 5s for all command. USB floppy,\r
-// USB CD-Rom and iPod devices are much slower than USB key when reponse\r
+// USB CD-Rom and iPod devices are much slower than USB key when response\r
// most of commands, So we set 5s as timeout here.\r
//\r
#define USB_BOOT_GENERAL_CMD_TIMEOUT (5 * USB_MASS_1_SECOND)\r
This function get the parameters for the USB mass storage media,\r
It is used both to initialize the media during the Start() phase\r
of Driver Binding Protocol and to re-initialize it when the media is\r
- changed. Althought the RemoveableMedia is unlikely to change,\r
+ changed. Although the RemoveableMedia is unlikely to change,\r
it is also included here.\r
\r
@param UsbMass The device to retrieve disk gemotric.\r
\r
for (Index = 0; Index < USB_BOT_RECV_CSW_RETRY; Index++) {\r
//\r
- // Attemp to the read Command Status Wrapper from bulk in endpoint\r
+ // Attempt to the read Command Status Wrapper from bulk in endpoint\r
//\r
ZeroMem (&Csw, sizeof (USB_BOT_CSW));\r
Result = 0;\r
UsbBot = (USB_BOT_PROTOCOL *) Context;\r
\r
//\r
- // Issue a class specific Bulk-Only Mass Storage get max lun reqest.\r
+ // Issue a class specific Bulk-Only Mass Storage get max lun request.\r
// according to section 3.2 of USB Mass Storage Class Bulk-Only Transport Spec, v1.0.\r
//\r
Request.RequestType = 0xA1;\r
extern USB_MASS_TRANSPORT mUsbBotTransport;\r
\r
//\r
-// Usb Bulk-Only class specfic request\r
+// Usb Bulk-Only class specific request\r
//\r
#define USB_BOT_RESET_REQUEST 0xFF ///< Bulk-Only Mass Storage Reset\r
#define USB_BOT_GETLUN_REQUEST 0xFE ///< Get Max Lun\r
#define USB_BOT_CBW_SIGNATURE 0x43425355 ///< dCBWSignature, tag the packet as CBW\r
#define USB_BOT_CSW_SIGNATURE 0x53425355 ///< dCSWSignature, tag the packet as CSW\r
#define USB_BOT_MAX_LUN 0x0F ///< Lun number is from 0 to 15\r
-#define USB_BOT_MAX_CMDLEN 16 ///< Maxium number of command from command set\r
+#define USB_BOT_MAX_CMDLEN 16 ///< Maximum number of command from command set\r
\r
//\r
// Usb BOT command block status values\r
if (TransStatus == EFI_USB_ERR_NAK) {\r
//\r
// The device can NAK the host if either the data/buffer isn't\r
- // aviable or the command is in-progress.\r
+ // available or the command is in-progress.\r
// If data are partially transferred, we just ignore NAK and continue.\r
// If all data have been transferred and status is NAK, then we retry for several times.\r
// If retry exceeds the USB_CBI_MAX_RETRY, then return error status.\r
Timeout = Timeout / USB_MASS_1_MILLISECOND;\r
\r
//\r
- // Attemp to the read the result from interrupt endpoint\r
+ // Attempt to the read the result from interrupt endpoint\r
//\r
for (Retry = 0; Retry < USB_CBI_MAX_RETRY; Retry++) {\r
TransStatus = 0;\r
/** @file\r
- Defination for the USB mass storage Control/Bulk/Interrupt (CBI) transport,\r
+ Definition for the USB mass storage Control/Bulk/Interrupt (CBI) transport,\r
according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1.\r
\r
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
}\r
\r
/**\r
- Initilize the USB Mass Storage transport.\r
+ Initialize the USB Mass Storage transport.\r
\r
This function tries to find the matching USB Mass Storage transport\r
protocol for USB device. If found, initializes the matching transport.\r
/**\r
Starts the USB mass storage device with this driver.\r
\r
- This function consumes USB I/O Portocol, intializes USB mass storage device,\r
+ This function consumes USB I/O Protocol, initializes USB mass storage device,\r
installs Block I/O Protocol, and submits Asynchronous Interrupt\r
Transfer to manage the USB mass storage device.\r
\r
/**\r
Starts the USB mass storage device with this driver.\r
\r
- This function consumes USB I/O Portocol, intializes USB mass storage device,\r
+ This function consumes USB I/O Protocol, initializes USB mass storage device,\r
installs Block I/O Protocol, and submits Asynchronous Interrupt\r
Transfer to manage the USB mass storage device.\r
\r