]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ide.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / IdeBusDxe / Ide.c
index ffc818036ae4db17f982ea48c41de6a766a83849..539c961d8edbd43f99f4b746e2e3dc2d3c6b354a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The file ontaining the helper functions implement of the Ide Bus driver\r
-  \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -24,7 +24,7 @@ UINT8   MasterDeviceType      = INVALID_DEVICE_TYPE;
   read a one-byte data from a IDE port.\r
 \r
   @param  PciIo  The PCI IO protocol instance\r
-  @param  Port   the IDE Port number \r
+  @param  Port   the IDE Port number\r
 \r
   @return  the one-byte data read from IDE port\r
 **/\r
@@ -270,7 +270,7 @@ IDEWritePortWMultiple (
   @param  PciIo Pointer to the EFI_PCI_IO_PROTOCOL instance\r
   @param  IdeRegsBaseAddr Pointer to IDE_REGISTERS_BASE_ADDR to\r
            receive IDE IO port registers' base addresses\r
-           \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
@@ -351,7 +351,7 @@ GetIdeRegistersBaseAddr (
   succeess.\r
 \r
   @param  IdeDev The BLK_IO private data which specifies the IDE device\r
-  \r
+\r
   @retval EFI_INVALID_PARAMETER return this value when the channel is invalid\r
   @retval EFI_SUCCESS           reassign the IDE IO resource successfully\r
   @retval other                 get the IDE current base address effor\r
@@ -370,7 +370,7 @@ ReassignIdeResources (
   if (IdeDev->Channel >= IdeMaxChannel) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Requery IDE IO port registers' base addresses in case of the switch of\r
   // native and legacy modes\r
@@ -593,7 +593,7 @@ DetectIDEController (
   Detect if there is disk attached to this port\r
 \r
   @param  IdeDev The BLK_IO private data which specifies the IDE device.\r
-  \r
+\r
   @retval EFI_NOT_FOUND   The device or channel is not found\r
   @retval EFI_SUCCESS     The device is found\r
 \r
@@ -715,7 +715,7 @@ InitializeIDEChannelData (
   Register. DRQ is cleared when the device is finished transferring data.\r
   So this function is called after data transfer is finished.\r
 \r
-  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                 pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                 to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds  used to designate the timeout for the DRQ clear.\r
 \r
@@ -778,7 +778,7 @@ DRQClear (
   transferring data. So this function is called after data transfer\r
   is finished.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ clear.\r
@@ -901,10 +901,10 @@ DRQReady (
 }\r
 /**\r
   This function is used to poll for the DRQ bit set in the Alternate Status Register.\r
-  DRQ is set when the device is ready to transfer data. So this function is called after \r
+  DRQ is set when the device is ready to transfer data. So this function is called after\r
   the command is sent to the device and before required data is transferred.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used to\r
                                record all the information of the IDE device.\r
 \r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
@@ -966,7 +966,7 @@ DRQReady2 (
   This function is used to poll for the BSY bit clear in the Status Register. BSY\r
   is clear when the device is not busy. Every command must be sent after device is not busy.\r
 \r
-  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used \r
+  @param IdeDev                pointer pointing to IDE_BLK_IO_DEV data structure, used\r
                                to record all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -1008,11 +1008,11 @@ WaitForBSYClear (
   return EFI_SUCCESS;\r
 }\r
 /**\r
-  This function is used to poll for the BSY bit clear in the Alternate Status Register. \r
-  BSY is clear when the device is not busy. Every command must be sent after device is \r
+  This function is used to poll for the BSY bit clear in the Alternate Status Register.\r
+  BSY is clear when the device is not busy. Every command must be sent after device is\r
   not busy.\r
 \r
-  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record \r
+  @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used to record\r
                               all the information of the IDE device.\r
   @param TimeoutInMilliSeconds used to designate the timeout for the DRQ ready.\r
 \r
@@ -1051,7 +1051,7 @@ WaitForBSYClear2 (
 }\r
 /**\r
   This function is used to poll for the DRDY bit set in the Status Register. DRDY\r
-  bit is set when the device is ready to accept command. Most ATA commands must be \r
+  bit is set when the device is ready to accept command. Most ATA commands must be\r
   sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev               pointer pointing to IDE_BLK_IO_DEV data structure, used\r
@@ -1103,8 +1103,8 @@ DRDYReady (
   return EFI_SUCCESS;\r
 }\r
 /**\r
-  This function is used to poll for the DRDY bit set in the Alternate Status Register. \r
-  DRDY bit is set when the device is ready to accept command. Most ATA commands must \r
+  This function is used to poll for the DRDY bit set in the Alternate Status Register.\r
+  DRDY bit is set when the device is ready to accept command. Most ATA commands must\r
   be sent after DRDY set except the ATAPI Packet Command.\r
 \r
   @param IdeDev              pointer pointing to IDE_BLK_IO_DEV data structure, used\r