]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Bus/Ata: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:07:24 +0000 (02:07 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in documentation, comments and debug strings.

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-12-philmd@redhat.com>
[lersek@redhat.com: replace EFI_D_xxx w/ DEBUG_xxx to shut up PatchCheck]

13 files changed:
MdeModulePkg/Bus/Ata/AhciPei/AhciMode.c
MdeModulePkg/Bus/Ata/AhciPei/AhciPei.h
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.h
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.h
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.h
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.h
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.uni
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c

index 8c491bd138656e2d62463cfd84337f405a0204cc..7636ad27c86c072c0a76039a3504e81a8922e567 100644 (file)
@@ -266,7 +266,7 @@ AhciWaitMemSet (
 \r
   do {\r
     //\r
 \r
   do {\r
     //\r
-    // Access sytem memory to see if the value is the tested one.\r
+    // Access system memory to see if the value is the tested one.\r
     //\r
     // The system memory pointed by Address will be updated by the\r
     // SATA Host Controller, "volatile" is introduced to prevent\r
     //\r
     // The system memory pointed by Address will be updated by the\r
     // SATA Host Controller, "volatile" is introduced to prevent\r
@@ -520,7 +520,7 @@ AhciBuildCommand (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Buid a command FIS.\r
+  Build a command FIS.\r
 \r
   @param[in,out] CmdFis             A pointer to the EFI_AHCI_COMMAND_FIS data\r
                                     structure.\r
 \r
   @param[in,out] CmdFis             A pointer to the EFI_AHCI_COMMAND_FIS data\r
                                     structure.\r
@@ -801,7 +801,7 @@ AhciPioTransfer (
   AhciWriteReg (AhciBar, Offset, Data64.Uint32.Upper32);\r
 \r
   //\r
   AhciWriteReg (AhciBar, Offset, Data64.Uint32.Upper32);\r
 \r
   //\r
-  // Single task envrionment, we only use one command table for all port\r
+  // Single task environment, we only use one command table for all port\r
   //\r
   Offset = AHCI_PORT_START + Port * AHCI_PORT_REG_WIDTH + AHCI_PORT_CLB;\r
   OldCmdListLo  = AhciReadReg (AhciBar, Offset);\r
   //\r
   Offset = AHCI_PORT_START + Port * AHCI_PORT_REG_WIDTH + AHCI_PORT_CLB;\r
   OldCmdListLo  = AhciReadReg (AhciBar, Offset);\r
@@ -1843,7 +1843,7 @@ AhciModeInitialization (
       if (EFI_ERROR (Status)) {\r
         DEBUG ((\r
           DEBUG_ERROR,\r
       if (EFI_ERROR (Status)) {\r
         DEBUG ((\r
           DEBUG_ERROR,\r
-          "%a: Error occured when waiting for the first D2H register FIS - %r\n",\r
+          "%a: Error occurred when waiting for the first D2H register FIS - %r\n",\r
           __FUNCTION__, Status\r
           ));\r
         continue;\r
           __FUNCTION__, Status\r
           ));\r
         continue;\r
index 9a34dc6e4f1514210d8068344e461ef3cea9dd9e..2be78076bee7501520cc1b1746851187dcc57694 100644 (file)
@@ -161,7 +161,7 @@ typedef struct {
   UINT8     AhciD2HRegisterFis[0x14];      // D2H Register Fis: offset 0x40\r
   UINT8     AhciD2HRegisterFisRsvd[0x04];\r
   UINT64    AhciSetDeviceBitsFis;          // Set Device Bits Fix: offset 0x58\r
   UINT8     AhciD2HRegisterFis[0x14];      // D2H Register Fis: offset 0x40\r
   UINT8     AhciD2HRegisterFisRsvd[0x04];\r
   UINT64    AhciSetDeviceBitsFis;          // Set Device Bits Fix: offset 0x58\r
-  UINT8     AhciUnknownFis[0x40];          // Unkonwn Fis: offset 0x60\r
+  UINT8     AhciUnknownFis[0x40];          // Unknown Fis: offset 0x60\r
   UINT8     AhciUnknownFisRsvd[0x60];\r
 } EFI_AHCI_RECEIVED_FIS;\r
 \r
   UINT8     AhciUnknownFisRsvd[0x60];\r
 } EFI_AHCI_RECEIVED_FIS;\r
 \r
@@ -239,7 +239,7 @@ typedef struct {
 } EFI_AHCI_COMMAND_PRDT;\r
 \r
 //\r
 } EFI_AHCI_COMMAND_PRDT;\r
 \r
 //\r
-// Command table Data strucute which is pointed to by the entry in the command list\r
+// Command table Data structure which is pointed to by the entry in the command list\r
 //\r
 typedef struct {\r
   EFI_AHCI_COMMAND_FIS      CommandFis;       // A software constructed FIS.\r
 //\r
 typedef struct {\r
   EFI_AHCI_COMMAND_FIS      CommandFis;       // A software constructed FIS.\r
index 00aa7e686c34c6c57ea208541b2600001daa7304..7e2fade400e30c31b970113c30265f17bc1ced30 100644 (file)
@@ -219,7 +219,7 @@ AhciWaitMemSet (
 \r
   do {\r
     //\r
 \r
   do {\r
     //\r
-    // Access sytem memory to see if the value is the tested one.\r
+    // Access system memory to see if the value is the tested one.\r
     //\r
     // The system memory pointed by Address will be updated by the\r
     // SATA Host Controller, "volatile" is introduced to prevent\r
     //\r
     // The system memory pointed by Address will be updated by the\r
     // SATA Host Controller, "volatile" is introduced to prevent\r
@@ -581,7 +581,7 @@ AhciBuildCommand (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Buid a command FIS.\r
+  Build a command FIS.\r
 \r
   @param  CmdFis            A pointer to the EFI_AHCI_COMMAND_FIS data structure.\r
   @param  AtaCommandBlock   A pointer to the AhciBuildCommandFis data structure.\r
 \r
   @param  CmdFis            A pointer to the EFI_AHCI_COMMAND_FIS data structure.\r
   @param  AtaCommandBlock   A pointer to the AhciBuildCommandFis data structure.\r
@@ -997,7 +997,7 @@ AhciDmaTransfer (
   }\r
 \r
   //\r
   }\r
 \r
   //\r
-  // Wait for command compelte\r
+  // Wait for command complete\r
   //\r
   FisBaseAddr = (UINTN)AhciRegisters->AhciRFis + Port * sizeof (EFI_AHCI_RECEIVED_FIS);\r
   Offset      = FisBaseAddr + EFI_AHCI_D2H_FIS_OFFSET;\r
   //\r
   FisBaseAddr = (UINTN)AhciRegisters->AhciRFis + Port * sizeof (EFI_AHCI_RECEIVED_FIS);\r
   Offset      = FisBaseAddr + EFI_AHCI_D2H_FIS_OFFSET;\r
@@ -1903,7 +1903,7 @@ AhciCreateTransferDescriptor (
 \r
   PortImplementBitMap  = AhciReadReg(PciIo, EFI_AHCI_PI_OFFSET);\r
   //\r
 \r
   PortImplementBitMap  = AhciReadReg(PciIo, EFI_AHCI_PI_OFFSET);\r
   //\r
-  // Get the highest bit of implemented ports which decides how many bytes are allocated for recived FIS.\r
+  // Get the highest bit of implemented ports which decides how many bytes are allocated for received FIS.\r
   //\r
   MaxPortNumber        = (UINT8)(UINTN)(HighBitSet32(PortImplementBitMap) + 1);\r
   if (MaxPortNumber == 0) {\r
   //\r
   MaxPortNumber        = (UINT8)(UINTN)(HighBitSet32(PortImplementBitMap) + 1);\r
   if (MaxPortNumber == 0) {\r
@@ -1958,7 +1958,7 @@ AhciCreateTransferDescriptor (
 \r
   //\r
   // Allocate memory for command list\r
 \r
   //\r
   // Allocate memory for command list\r
-  // Note that the implemenation is a single task model which only use a command list for all ports.\r
+  // Note that the implementation is a single task model which only use a command list for all ports.\r
   //\r
   Buffer = NULL;\r
   MaxCommandListSize = MaxCommandSlotNumber * sizeof (EFI_AHCI_COMMAND_LIST);\r
   //\r
   Buffer = NULL;\r
   MaxCommandListSize = MaxCommandSlotNumber * sizeof (EFI_AHCI_COMMAND_LIST);\r
@@ -2713,7 +2713,7 @@ AhciModeInitialization (
       } else {\r
         continue;\r
       }\r
       } else {\r
         continue;\r
       }\r
-      DEBUG ((EFI_D_INFO, "port [%d] port mulitplier [%d] has a [%a]\n",\r
+      DEBUG ((DEBUG_INFO, "port [%d] port multitplier [%d] has a [%a]\n",\r
               Port, 0, DeviceType == EfiIdeCdrom ? "cdrom" : "harddisk"));\r
 \r
       //\r
               Port, 0, DeviceType == EfiIdeCdrom ? "cdrom" : "harddisk"));\r
 \r
       //\r
@@ -2761,7 +2761,7 @@ AhciModeInitialization (
       TransferMode.ModeNumber = (UINT8) (SupportedModes->PioMode.Mode);\r
 \r
       //\r
       TransferMode.ModeNumber = (UINT8) (SupportedModes->PioMode.Mode);\r
 \r
       //\r
-      // Set supported DMA mode on this IDE device. Note that UDMA & MDMA cann't\r
+      // Set supported DMA mode on this IDE device. Note that UDMA & MDMA can't\r
       // be set together. Only one DMA mode can be set to a device. If setting\r
       // DMA mode operation fails, we can continue moving on because we only use\r
       // PIO mode at boot time. DMA modes are used by certain kind of OS booting\r
       // be set together. Only one DMA mode can be set to a device. If setting\r
       // DMA mode operation fails, we can continue moving on because we only use\r
       // PIO mode at boot time. DMA modes are used by certain kind of OS booting\r
index 66d5da0b714cd5ff26d04fa0a14cbed0f859cafc..786413930ae97ee03fd127d0b8f50614a90751f0 100644 (file)
@@ -263,7 +263,7 @@ typedef struct {
 } EFI_AHCI_COMMAND_PRDT;\r
 \r
 //\r
 } EFI_AHCI_COMMAND_PRDT;\r
 \r
 //\r
-// Command table data strucute which is pointed to by the entry in the command list\r
+// Command table data structure which is pointed to by the entry in the command list\r
 //\r
 typedef struct {\r
   EFI_AHCI_COMMAND_FIS      CommandFis;       // A software constructed FIS.\r
 //\r
 typedef struct {\r
   EFI_AHCI_COMMAND_FIS      CommandFis;       // A software constructed FIS.\r
@@ -283,7 +283,7 @@ typedef struct {
   UINT8    AhciD2HRegisterFis[0x14];      // D2H Register Fis: offset 0x40\r
   UINT8    AhciD2HRegisterFisRsvd[0x04];\r
   UINT64   AhciSetDeviceBitsFis;          // Set Device Bits Fix: offset 0x58\r
   UINT8    AhciD2HRegisterFis[0x14];      // D2H Register Fis: offset 0x40\r
   UINT8    AhciD2HRegisterFisRsvd[0x04];\r
   UINT64   AhciSetDeviceBitsFis;          // Set Device Bits Fix: offset 0x58\r
-  UINT8    AhciUnknownFis[0x40];          // Unkonwn Fis: offset 0x60\r
+  UINT8    AhciUnknownFis[0x40];          // Unknown Fis: offset 0x60\r
   UINT8    AhciUnknownFisRsvd[0x60];\r
 } EFI_AHCI_RECEIVED_FIS;\r
 \r
   UINT8    AhciUnknownFisRsvd[0x60];\r
 } EFI_AHCI_RECEIVED_FIS;\r
 \r
index e5b8f40d03b385624117fc9f477c5711b633731f..86fe9d954fdb54e6bde60d1fb8919ffe59c8388b 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
 /** @file\r
-  This file implements ATA_PASSTHRU_PROCTOCOL and EXT_SCSI_PASSTHRU_PROTOCOL interfaces\r
+  This file implements ATA_PASSTHRU_PROTOCOL and EXT_SCSI_PASSTHRU_PROTOCOL interfaces\r
   for managed ATA controllers.\r
 \r
   Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
   for managed ATA controllers.\r
 \r
   Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>\r
@@ -404,7 +404,7 @@ AsyncNonBlockingTransferRoutine (
   Instance   = (ATA_ATAPI_PASS_THRU_INSTANCE *) Context;\r
   EntryHeader = &Instance->NonBlockingTaskList;\r
   //\r
   Instance   = (ATA_ATAPI_PASS_THRU_INSTANCE *) Context;\r
   EntryHeader = &Instance->NonBlockingTaskList;\r
   //\r
-  // Get the Taks from the Taks List and execute it, until there is\r
+  // Get the Tasks from the Tasks List and execute it, until there is\r
   // no task in the list or the device is busy with task (EFI_NOT_READY).\r
   //\r
   while (TRUE) {\r
   // no task in the list or the device is busy with task (EFI_NOT_READY).\r
   //\r
   while (TRUE) {\r
@@ -538,7 +538,7 @@ AtaAtapiPassThruSupported (
   EFI_IDE_CONTROLLER_INIT_PROTOCOL  *IdeControllerInit;\r
 \r
   //\r
   EFI_IDE_CONTROLLER_INIT_PROTOCOL  *IdeControllerInit;\r
 \r
   //\r
-  // SATA Controller is a device driver, and should ingore the\r
+  // SATA Controller is a device driver, and should ignore the\r
   // "RemainingDevicePath" according to UEFI spec\r
   //\r
   Status = gBS->OpenProtocol (\r
   // "RemainingDevicePath" according to UEFI spec\r
   //\r
   Status = gBS->OpenProtocol (\r
@@ -659,7 +659,7 @@ AtaAtapiPassThruSupported (
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
-  @retval Others                   The driver failded to start the device.\r
+  @retval Others                   The driver failed to start the device.\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
index de9e1ee98f19e08fd4c2440309e3a53e5e04e361..5f582b9b3e761800f44f6d6198b2f96a1b6d8da4 100644 (file)
@@ -384,7 +384,7 @@ AtaAtapiPassThruSupported (
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
-  @retval Others                   The driver failded to start the device.\r
+  @retval Others                   The driver failed to start the device.\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
@@ -521,7 +521,7 @@ EnumerateAttachedDevice (
   );\r
 \r
 /**\r
   );\r
 \r
 /**\r
-  Call back funtion when the timer event is signaled.\r
+  Call back function when the timer event is signaled.\r
 \r
   @param[in]  Event     The Event this notify function registered to.\r
   @param[in]  Context   Pointer to the context data registered to the\r
 \r
   @param[in]  Event     The Event this notify function registered to.\r
   @param[in]  Context   Pointer to the context data registered to the\r
index ac055f00422f132d283755f338967f4161033628..d284cc600b6ae28570662e3f740bb6fd3bf4cf5d 100644 (file)
@@ -46,7 +46,7 @@ IdeReadPortB (
   write a 1-byte data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
   write a 1-byte data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
-  @param  Port   The IDE port to be writen\r
+  @param  Port   The IDE port to be written\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
@@ -76,7 +76,7 @@ IdeWritePortB (
   write a 1-word data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
   write a 1-word data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
-  @param  Port   The IDE port to be writen\r
+  @param  Port   The IDE port to be written\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
@@ -106,7 +106,7 @@ IdeWritePortW (
   write a 2-word data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
   write a 2-word data to a specific IDE port.\r
 \r
   @param  PciIo  A pointer to EFI_PCI_IO_PROTOCOL data structure\r
-  @param  Port   The IDE port to be writen\r
+  @param  Port   The IDE port to be written\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
   @param  Data   The data to write to the port\r
 **/\r
 VOID\r
@@ -718,12 +718,12 @@ WaitForBSYClear (
   Table 2. BARs for Register Mapping\r
 \r
   @param[in]      PciIo          Pointer to the EFI_PCI_IO_PROTOCOL instance\r
   Table 2. BARs for Register Mapping\r
 \r
   @param[in]      PciIo          Pointer to the EFI_PCI_IO_PROTOCOL instance\r
-  @param[in, out] IdeRegisters    Pointer to EFI_IDE_REGISTERS which is used to\r
+  @param[in, out] IdeRegisters   Pointer to EFI_IDE_REGISTERS which is used to\r
                                  store the IDE i/o port registers' base addresses\r
 \r
   @retval EFI_UNSUPPORTED        Return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS            Get the Base address successfully\r
                                  store the IDE i/o port registers' base addresses\r
 \r
   @retval EFI_UNSUPPORTED        Return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS            Get the Base address successfully\r
-  @retval Other                  Read the pci configureation data error\r
+  @retval Other                  Read the pci configuration data error\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
@@ -983,7 +983,7 @@ AtaPioDataInOut (
   Increment = 256;\r
 \r
   //\r
   Increment = 256;\r
 \r
   //\r
-  // used to record bytes of currently transfered data\r
+  // used to record bytes of currently transferred data\r
   //\r
   WordCount = 0;\r
 \r
   //\r
   WordCount = 0;\r
 \r
@@ -1688,7 +1688,7 @@ AtaPacketReadWrite (
   RequiredWordCount = *ByteCount >> 1;\r
 \r
   //\r
   RequiredWordCount = *ByteCount >> 1;\r
 \r
   //\r
-  // No data transfer is premitted.\r
+  // No data transfer is permitted.\r
   //\r
   if (RequiredWordCount == 0) {\r
     return EFI_SUCCESS;\r
   //\r
   if (RequiredWordCount == 0) {\r
     return EFI_SUCCESS;\r
@@ -2509,7 +2509,7 @@ DetectAndConfigIdeDevice (
     }\r
 \r
     //\r
     }\r
 \r
     //\r
-    // Set supported DMA mode on this IDE device. Note that UDMA & MDMA cann't\r
+    // Set supported DMA mode on this IDE device. Note that UDMA & MDMA can't\r
     // be set together. Only one DMA mode can be set to a device. If setting\r
     // DMA mode operation fails, we can continue moving on because we only use\r
     // PIO mode at boot time. DMA modes are used by certain kind of OS booting\r
     // be set together. Only one DMA mode can be set to a device. If setting\r
     // DMA mode operation fails, we can continue moving on because we only use\r
     // PIO mode at boot time. DMA modes are used by certain kind of OS booting\r
index 39273c5b02db1d47c1cc6f709b0e4a414d9111f1..c39ebd06679d3e8360bb2b9db338fe0b3b7dcc2c 100644 (file)
@@ -158,7 +158,7 @@ typedef struct {
 \r
   @retval EFI_UNSUPPORTED        Return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS            Get the Base address successfully\r
 \r
   @retval EFI_UNSUPPORTED        Return this value when the BARs is not IO type\r
   @retval EFI_SUCCESS            Get the Base address successfully\r
-  @retval Other                  Read the pci configureation data error\r
+  @retval Other                  Read the pci configuration data error\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
index f93afab3bba702f5bd940233d13964293d4ad9ef..28f8638c52fa422411aa3d9c65d2f2602e41aba0 100644 (file)
@@ -703,7 +703,7 @@ AtaBusDriverBindingSupported (
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
-  @retval Others                   The driver failded to start the device.\r
+  @retval Others                   The driver failed to start the device.\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1007,7 +1007,7 @@ AtaBlockIoReset (
   @retval EFI_WRITE_PROTECTED   The device can not be read/written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read/write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_WRITE_PROTECTED   The device can not be read/written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read/write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read/write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read/write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -1101,7 +1101,7 @@ BlockIoReadWrite (
   @retval EFI_SUCCESS           The data was read correctly from the device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_SUCCESS           The data was read correctly from the device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -1135,7 +1135,7 @@ AtaBlockIoReadBlocks (
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -1272,7 +1272,7 @@ AtaBlockIoReadBlocksEx (
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
index 54c0f3d30fc2ee2ff30fa7e3bb0ef623d90083d4..a5a8652099426fb7d0cd617a7a9728558213e279 100644 (file)
@@ -408,7 +408,7 @@ AtaBusDriverBindingSupported (
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
   @retval EFI_SUCCESS              The device was started.\r
   @retval EFI_DEVICE_ERROR         The device could not be started due to a device error.Currently not implemented.\r
   @retval EFI_OUT_OF_RESOURCES     The request could not be completed due to a lack of resources.\r
-  @retval Others                   The driver failded to start the device.\r
+  @retval Others                   The driver failed to start the device.\r
 \r
 **/\r
 EFI_STATUS\r
 \r
 **/\r
 EFI_STATUS\r
@@ -614,7 +614,7 @@ AtaBlockIoReset (
   @retval EFI_SUCCESS           The data was read correctly from the device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_SUCCESS           The data was read correctly from the device.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the read.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHANGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -645,7 +645,7 @@ AtaBlockIoReadBlocks (
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -679,7 +679,7 @@ AtaBlockIoFlushBlocks (
   );\r
 \r
 /**\r
   );\r
 \r
 /**\r
-  Reset the Block Device throught Block I/O2 protocol.\r
+  Reset the Block Device through Block I/O2 protocol.\r
 \r
   @param[in]  This                 Indicates a pointer to the calling context.\r
   @param[in]  ExtendedVerification Driver may perform diagnostics on reset.\r
 \r
   @param[in]  This                 Indicates a pointer to the calling context.\r
   @param[in]  ExtendedVerification Driver may perform diagnostics on reset.\r
@@ -749,7 +749,7 @@ AtaBlockIoReadBlocksEx (
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
   @retval EFI_WRITE_PROTECTED   The device can not be written to.\r
   @retval EFI_DEVICE_ERROR      The device reported an error while performing the write.\r
   @retval EFI_NO_MEDIA          There is no media in the device.\r
-  @retval EFI_MEDIA_CHNAGED     The MediaId does not matched the current device.\r
+  @retval EFI_MEDIA_CHANGED     The MediaId does not match the current device.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
   @retval EFI_BAD_BUFFER_SIZE   The Buffer was not a multiple of the block size of the device.\r
   @retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,\r
                                 or the buffer is not on proper alignment.\r
@@ -1061,7 +1061,7 @@ AtaStorageSecuritySendData (
   Typically, there are 2 mechanism for resetting eDrive. They are:\r
   1. TPer Reset through IEEE 1667 protocol.\r
   2. TPer Reset through native TCG protocol.\r
   Typically, there are 2 mechanism for resetting eDrive. They are:\r
   1. TPer Reset through IEEE 1667 protocol.\r
   2. TPer Reset through native TCG protocol.\r
-  This routine will detect what protocol the attached eDrive comform to, TCG or\r
+  This routine will detect what protocol the attached eDrive conform to, TCG or\r
   IEEE 1667 protocol. Then send out TPer Reset command separately.\r
 \r
   @param[in] AtaDevice    ATA_DEVICE pointer.\r
   IEEE 1667 protocol. Then send out TPer Reset command separately.\r
 \r
   @param[in] AtaDevice    ATA_DEVICE pointer.\r
index c3ab5c18f14876f04cbb7e9db523e12973778c30..086ec5f7c6d32e3b0c1d18e7b55688bfa9a4eccf 100644 (file)
@@ -1,5 +1,5 @@
 ## @file\r
 ## @file\r
-#  ATA Bus driver to enumerate and identfy ATA devices.\r
+#  ATA Bus driver to enumerate and identify ATA devices.\r
 #\r
 #  This driver follows UEFI driver model and layers on ATA Pass Thru protocol defined\r
 #  in UEFI spec 2.2. It installs Block IO and Disk Info protocol for each ATA device\r
 #\r
 #  This driver follows UEFI driver model and layers on ATA Pass Thru protocol defined\r
 #  in UEFI spec 2.2. It installs Block IO and Disk Info protocol for each ATA device\r
index 00bebce11c2c5d1adac0d464d31214f3cf3d01b4..ec4aab24d5f6e05b9a702db7341e7ae654c7262a 100644 (file)
@@ -1,5 +1,5 @@
 // /** @file\r
 // /** @file\r
-// ATA Bus driver to enumerate and identfy ATA devices.\r
+// ATA Bus driver to enumerate and identify ATA devices.\r
 //\r
 // This driver follows UEFI driver model and layers on ATA Pass Thru protocol defined\r
 // in UEFI spec 2.2. It installs Block IO and Disk Info protocol for each ATA device\r
 //\r
 // This driver follows UEFI driver model and layers on ATA Pass Thru protocol defined\r
 // in UEFI spec 2.2. It installs Block IO and Disk Info protocol for each ATA device\r
index fd483cb9a465cf3f00a650697b1fd9473d064acd..79026a4a957d1909a9f634d8fdd3f267bb705c06 100644 (file)
@@ -536,7 +536,7 @@ TransferAtaDevice (
   //\r
   // As AtaBus is used to manage ATA devices, we have to use the lowest transfer rate to\r
   // calculate the possible maximum timeout value for each read/write operation.\r
   //\r
   // As AtaBus is used to manage ATA devices, we have to use the lowest transfer rate to\r
   // calculate the possible maximum timeout value for each read/write operation.\r
-  // The timout value is rounded up to nearest integar and here an additional 30s is added\r
+  // The timeout value is rounded up to nearest integer and here an additional 30s is added\r
   // to follow ATA spec in which it mentioned that the device may take up to 30s to respond\r
   // commands in the Standby/Idle mode.\r
   //\r
   // to follow ATA spec in which it mentioned that the device may take up to 30s to respond\r
   // commands in the Standby/Idle mode.\r
   //\r
@@ -634,7 +634,7 @@ AtaTerminateNonBlockingTask (
 }\r
 \r
 /**\r
 }\r
 \r
 /**\r
-  Call back funtion when the event is signaled.\r
+  Call back function when the event is signaled.\r
 \r
   @param[in]  Event     The Event this notify function registered to.\r
   @param[in]  Context   Pointer to the context data registered to the\r
 \r
   @param[in]  Event     The Event this notify function registered to.\r
   @param[in]  Context   Pointer to the context data registered to the\r