mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
MdeModulePkg/UsbMass: Fix various typos
Fix various typos in comments and documentation. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Antoine Coeur <coeur@gmx.fr> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Acked-by: Liming Gao <liming.gao@intel.com> Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Message-Id: <20200207010831.9046-20-philmd@redhat.com>
This commit is contained in:
parent
5099057fb8
commit
957ca63190
@ -197,7 +197,7 @@ UsbBootExecCmd (
|
|||||||
|
|
||||||
//
|
//
|
||||||
// If ExecCommand() returns no error and CmdResult is success,
|
// If ExecCommand() returns no error and CmdResult is success,
|
||||||
// then the commnad transfer is successful.
|
// then the command transfer is successful.
|
||||||
//
|
//
|
||||||
if ((CmdResult == USB_MASS_CMD_SUCCESS) && !EFI_ERROR (Status)) {
|
if ((CmdResult == USB_MASS_CMD_SUCCESS) && !EFI_ERROR (Status)) {
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
@ -610,7 +610,7 @@ UsbScsiModeSense (
|
|||||||
This function get the parameters for the USB mass storage media,
|
This function get the parameters for the USB mass storage media,
|
||||||
It is used both to initialize the media during the Start() phase
|
It is used both to initialize the media during the Start() phase
|
||||||
of Driver Binding Protocol and to re-initialize it when the media is
|
of Driver Binding Protocol and to re-initialize it when the media is
|
||||||
changed. Althought the RemoveableMedia is unlikely to change,
|
changed. Although the RemoveableMedia is unlikely to change,
|
||||||
it is also included here.
|
it is also included here.
|
||||||
|
|
||||||
@param UsbMass The device to retrieve disk gemotric.
|
@param UsbMass The device to retrieve disk gemotric.
|
||||||
|
@ -77,7 +77,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
// Mass command timeout, refers to specification[USB20-9.2.6.1]
|
// Mass command timeout, refers to specification[USB20-9.2.6.1]
|
||||||
//
|
//
|
||||||
// USB2.0 Spec define the up-limit timeout 5s for all command. USB floppy,
|
// USB2.0 Spec define the up-limit timeout 5s for all command. USB floppy,
|
||||||
// USB CD-Rom and iPod devices are much slower than USB key when reponse
|
// USB CD-Rom and iPod devices are much slower than USB key when response
|
||||||
// most of commands, So we set 5s as timeout here.
|
// most of commands, So we set 5s as timeout here.
|
||||||
//
|
//
|
||||||
#define USB_BOOT_GENERAL_CMD_TIMEOUT (5 * USB_MASS_1_SECOND)
|
#define USB_BOOT_GENERAL_CMD_TIMEOUT (5 * USB_MASS_1_SECOND)
|
||||||
@ -213,7 +213,7 @@ typedef struct {
|
|||||||
This function get the parameters for the USB mass storage media,
|
This function get the parameters for the USB mass storage media,
|
||||||
It is used both to initialize the media during the Start() phase
|
It is used both to initialize the media during the Start() phase
|
||||||
of Driver Binding Protocol and to re-initialize it when the media is
|
of Driver Binding Protocol and to re-initialize it when the media is
|
||||||
changed. Althought the RemoveableMedia is unlikely to change,
|
changed. Although the RemoveableMedia is unlikely to change,
|
||||||
it is also included here.
|
it is also included here.
|
||||||
|
|
||||||
@param UsbMass The device to retrieve disk gemotric.
|
@param UsbMass The device to retrieve disk gemotric.
|
||||||
|
@ -326,7 +326,7 @@ UsbBotGetStatus (
|
|||||||
|
|
||||||
for (Index = 0; Index < USB_BOT_RECV_CSW_RETRY; Index++) {
|
for (Index = 0; Index < USB_BOT_RECV_CSW_RETRY; Index++) {
|
||||||
//
|
//
|
||||||
// Attemp to the read Command Status Wrapper from bulk in endpoint
|
// Attempt to the read Command Status Wrapper from bulk in endpoint
|
||||||
//
|
//
|
||||||
ZeroMem (&Csw, sizeof (USB_BOT_CSW));
|
ZeroMem (&Csw, sizeof (USB_BOT_CSW));
|
||||||
Result = 0;
|
Result = 0;
|
||||||
@ -553,7 +553,7 @@ UsbBotGetMaxLun (
|
|||||||
UsbBot = (USB_BOT_PROTOCOL *) Context;
|
UsbBot = (USB_BOT_PROTOCOL *) Context;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Issue a class specific Bulk-Only Mass Storage get max lun reqest.
|
// Issue a class specific Bulk-Only Mass Storage get max lun request.
|
||||||
// according to section 3.2 of USB Mass Storage Class Bulk-Only Transport Spec, v1.0.
|
// according to section 3.2 of USB Mass Storage Class Bulk-Only Transport Spec, v1.0.
|
||||||
//
|
//
|
||||||
Request.RequestType = 0xA1;
|
Request.RequestType = 0xA1;
|
||||||
|
@ -14,14 +14,14 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
extern USB_MASS_TRANSPORT mUsbBotTransport;
|
extern USB_MASS_TRANSPORT mUsbBotTransport;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Usb Bulk-Only class specfic request
|
// Usb Bulk-Only class specific request
|
||||||
//
|
//
|
||||||
#define USB_BOT_RESET_REQUEST 0xFF ///< Bulk-Only Mass Storage Reset
|
#define USB_BOT_RESET_REQUEST 0xFF ///< Bulk-Only Mass Storage Reset
|
||||||
#define USB_BOT_GETLUN_REQUEST 0xFE ///< Get Max Lun
|
#define USB_BOT_GETLUN_REQUEST 0xFE ///< Get Max Lun
|
||||||
#define USB_BOT_CBW_SIGNATURE 0x43425355 ///< dCBWSignature, tag the packet as CBW
|
#define USB_BOT_CBW_SIGNATURE 0x43425355 ///< dCBWSignature, tag the packet as CBW
|
||||||
#define USB_BOT_CSW_SIGNATURE 0x53425355 ///< dCSWSignature, tag the packet as CSW
|
#define USB_BOT_CSW_SIGNATURE 0x53425355 ///< dCSWSignature, tag the packet as CSW
|
||||||
#define USB_BOT_MAX_LUN 0x0F ///< Lun number is from 0 to 15
|
#define USB_BOT_MAX_LUN 0x0F ///< Lun number is from 0 to 15
|
||||||
#define USB_BOT_MAX_CMDLEN 16 ///< Maxium number of command from command set
|
#define USB_BOT_MAX_CMDLEN 16 ///< Maximum number of command from command set
|
||||||
|
|
||||||
//
|
//
|
||||||
// Usb BOT command block status values
|
// Usb BOT command block status values
|
||||||
|
@ -305,7 +305,7 @@ UsbCbiDataTransfer (
|
|||||||
if (TransStatus == EFI_USB_ERR_NAK) {
|
if (TransStatus == EFI_USB_ERR_NAK) {
|
||||||
//
|
//
|
||||||
// The device can NAK the host if either the data/buffer isn't
|
// The device can NAK the host if either the data/buffer isn't
|
||||||
// aviable or the command is in-progress.
|
// available or the command is in-progress.
|
||||||
// If data are partially transferred, we just ignore NAK and continue.
|
// If data are partially transferred, we just ignore NAK and continue.
|
||||||
// If all data have been transferred and status is NAK, then we retry for several times.
|
// If all data have been transferred and status is NAK, then we retry for several times.
|
||||||
// If retry exceeds the USB_CBI_MAX_RETRY, then return error status.
|
// If retry exceeds the USB_CBI_MAX_RETRY, then return error status.
|
||||||
@ -378,7 +378,7 @@ UsbCbiGetStatus (
|
|||||||
Timeout = Timeout / USB_MASS_1_MILLISECOND;
|
Timeout = Timeout / USB_MASS_1_MILLISECOND;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Attemp to the read the result from interrupt endpoint
|
// Attempt to the read the result from interrupt endpoint
|
||||||
//
|
//
|
||||||
for (Retry = 0; Retry < USB_CBI_MAX_RETRY; Retry++) {
|
for (Retry = 0; Retry < USB_CBI_MAX_RETRY; Retry++) {
|
||||||
TransStatus = 0;
|
TransStatus = 0;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Defination for the USB mass storage Control/Bulk/Interrupt (CBI) transport,
|
Definition for the USB mass storage Control/Bulk/Interrupt (CBI) transport,
|
||||||
according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1.
|
according to USB Mass Storage Class Control/Bulk/Interrupt (CBI) Transport, Revision 1.1.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
|
@ -367,7 +367,7 @@ UsbMassInitMedia (
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initilize the USB Mass Storage transport.
|
Initialize the USB Mass Storage transport.
|
||||||
|
|
||||||
This function tries to find the matching USB Mass Storage transport
|
This function tries to find the matching USB Mass Storage transport
|
||||||
protocol for USB device. If found, initializes the matching transport.
|
protocol for USB device. If found, initializes the matching transport.
|
||||||
@ -770,7 +770,7 @@ ON_EXIT:
|
|||||||
/**
|
/**
|
||||||
Starts the USB mass storage device with this driver.
|
Starts the USB mass storage device with this driver.
|
||||||
|
|
||||||
This function consumes USB I/O Portocol, intializes USB mass storage device,
|
This function consumes USB I/O Protocol, initializes USB mass storage device,
|
||||||
installs Block I/O Protocol, and submits Asynchronous Interrupt
|
installs Block I/O Protocol, and submits Asynchronous Interrupt
|
||||||
Transfer to manage the USB mass storage device.
|
Transfer to manage the USB mass storage device.
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ USBMassDriverBindingSupported (
|
|||||||
/**
|
/**
|
||||||
Starts the USB mass storage device with this driver.
|
Starts the USB mass storage device with this driver.
|
||||||
|
|
||||||
This function consumes USB I/O Portocol, intializes USB mass storage device,
|
This function consumes USB I/O Protocol, initializes USB mass storage device,
|
||||||
installs Block I/O Protocol, and submits Asynchronous Interrupt
|
installs Block I/O Protocol, and submits Asynchronous Interrupt
|
||||||
Transfer to manage the USB mass storage device.
|
Transfer to manage the USB mass storage device.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user