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
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
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
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
- @retval Other Read the pci configureation data error\r
+ @retval Other Read the pci configuration data error\r
\r
**/\r
EFI_STATUS\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
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
\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