]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
MdeModulePkg/Bus/Ata: Fix various typos
[mirror_edk2.git] / MdeModulePkg / Bus / Ata / AtaAtapiPassThru / AhciMode.c
index 00aa7e686c34c6c57ea208541b2600001daa7304..7e2fade400e30c31b970113c30265f17bc1ced30 100644 (file)
@@ -219,7 +219,7 @@ AhciWaitMemSet (
 \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
@@ -581,7 +581,7 @@ AhciBuildCommand (
 }\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
@@ -997,7 +997,7 @@ AhciDmaTransfer (
   }\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
@@ -1903,7 +1903,7 @@ AhciCreateTransferDescriptor (
 \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
@@ -1958,7 +1958,7 @@ AhciCreateTransferDescriptor (
 \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
@@ -2713,7 +2713,7 @@ AhciModeInitialization (
       } 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
@@ -2761,7 +2761,7 @@ AhciModeInitialization (
       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