]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/IdeBusPei/AtapiPeim.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / IdeBusPei / AtapiPeim.h
index 20b35c4afd3226212e308a6c78c65cf69bf3bb5a..2b06a8ba1b2b436d0b35fcb7826a32673826cfa0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Private Include file for IdeBus PEIM.\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -140,16 +140,16 @@ typedef struct {
 /**\r
   Gets the count of block I/O devices that one specific block driver detects.\r
 \r
-  This function is used for getting the count of block I/O devices that one \r
+  This function is used for getting the count of block I/O devices that one\r
   specific block driver detects.  To the PEI ATAPI driver, it returns the number\r
-  of all the detected ATAPI devices it detects during the enumeration process. \r
-  To the PEI legacy floppy driver, it returns the number of all the legacy \r
-  devices it finds during its enumeration process. If no device is detected, \r
-  then the function will return zero.  \r
-  \r
-  @param[in]  PeiServices          General-purpose services that are available \r
+  of all the detected ATAPI devices it detects during the enumeration process.\r
+  To the PEI legacy floppy driver, it returns the number of all the legacy\r
+  devices it finds during its enumeration process. If no device is detected,\r
+  then the function will return zero.\r
+\r
+  @param[in]  PeiServices          General-purpose services that are available\r
                                    to every PEIM.\r
-  @param[in]  This                 Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI \r
+  @param[in]  This                 Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI\r
                                    instance.\r
   @param[out] NumberBlockDevices   The number of block I/O devices discovered.\r
 \r
@@ -167,27 +167,27 @@ AtapiGetNumberOfBlockDevices (
 /**\r
   Gets a block device's media information.\r
 \r
-  This function will provide the caller with the specified block device's media \r
-  information. If the media changes, calling this function will update the media \r
+  This function will provide the caller with the specified block device's media\r
+  information. If the media changes, calling this function will update the media\r
   information accordingly.\r
 \r
   @param[in]  PeiServices   General-purpose services that are available to every\r
                             PEIM\r
   @param[in]  This          Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI instance.\r
-  @param[in]  DeviceIndex   Specifies the block device to which the function wants \r
-                            to talk. Because the driver that implements Block I/O \r
-                            PPIs will manage multiple block devices, the PPIs that \r
-                            want to talk to a single device must specify the \r
+  @param[in]  DeviceIndex   Specifies the block device to which the function wants\r
+                            to talk. Because the driver that implements Block I/O\r
+                            PPIs will manage multiple block devices, the PPIs that\r
+                            want to talk to a single device must specify the\r
                             device index that was assigned during the enumeration\r
-                            process. This index is a number from one to \r
+                            process. This index is a number from one to\r
                             NumberBlockDevices.\r
-  @param[out] MediaInfo     The media information of the specified block media.  \r
-                            The caller is responsible for the ownership of this \r
+  @param[out] MediaInfo     The media information of the specified block media.\r
+                            The caller is responsible for the ownership of this\r
                             data structure.\r
-  \r
-  @retval EFI_SUCCESS           Media information about the specified block device \r
+\r
+  @retval EFI_SUCCESS           Media information about the specified block device\r
                                 was obtained successfully.\r
-  @retval EFI_DEVICE_ERROR      Cannot get the media information due to a hardware \r
+  @retval EFI_DEVICE_ERROR      Cannot get the media information due to a hardware\r
                                 error.\r
   @retval Others                Other failure occurs.\r
 \r
@@ -204,31 +204,31 @@ AtapiGetBlockDeviceMediaInfo (
 /**\r
   Reads the requested number of blocks from the specified block device.\r
 \r
-  The function reads the requested number of blocks from the device. All the \r
+  The function reads the requested number of blocks from the device. All the\r
   blocks are read, or an error is returned. If there is no media in the device,\r
   the function returns EFI_NO_MEDIA.\r
 \r
-  @param[in]  PeiServices   General-purpose services that are available to \r
+  @param[in]  PeiServices   General-purpose services that are available to\r
                             every PEIM.\r
   @param[in]  This          Indicates the EFI_PEI_RECOVERY_BLOCK_IO_PPI instance.\r
-  @param[in]  DeviceIndex   Specifies the block device to which the function wants \r
-                            to talk. Because the driver that implements Block I/O \r
-                            PPIs will manage multiple block devices, the PPIs that \r
-                            want to talk to a single device must specify the device \r
-                            index that was assigned during the enumeration process. \r
+  @param[in]  DeviceIndex   Specifies the block device to which the function wants\r
+                            to talk. Because the driver that implements Block I/O\r
+                            PPIs will manage multiple block devices, the PPIs that\r
+                            want to talk to a single device must specify the device\r
+                            index that was assigned during the enumeration process.\r
                             This index is a number from one to NumberBlockDevices.\r
   @param[in]  StartLBA      The starting logical block address (LBA) to read from\r
                             on the device\r
   @param[in]  BufferSize    The size of the Buffer in bytes. This number must be\r
                             a multiple of the intrinsic block size of the device.\r
   @param[out] Buffer        A pointer to the destination buffer for the data.\r
-                            The caller is responsible for the ownership of the \r
+                            The caller is responsible for the ownership of the\r
                             buffer.\r
-                         \r
+\r
   @retval EFI_SUCCESS             The data was read correctly from the device.\r
-  @retval EFI_DEVICE_ERROR        The device reported an error while attempting \r
+  @retval EFI_DEVICE_ERROR        The device reported an error while attempting\r
                                   to perform the read operation.\r
-  @retval EFI_INVALID_PARAMETER   The read request contains LBAs that are not \r
+  @retval EFI_INVALID_PARAMETER   The read request contains LBAs that are not\r
                                   valid, or the buffer is not properly aligned.\r
   @retval EFI_NO_MEDIA            There is no media in the device.\r
   @retval EFI_BAD_BUFFER_SIZE     The BufferSize parameter is not a multiple of\r
@@ -374,7 +374,7 @@ AtapiEnumerateDevices (
 \r
 /**\r
   Detect Atapi devices.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev   A pointer to atapi block IO device.\r
   @param[in]  DevicePosition  An integer to signify device position.\r
   @param[out] MediaInfo       The media information of the specified block media.\r
@@ -394,7 +394,7 @@ DiscoverAtapiDevice (
 \r
 /**\r
   Detect if an IDE controller exists in specified position.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev   A pointer to atapi block IO device.\r
   @param[in]  DevicePosition  An integer to signify device position.\r
 \r
@@ -410,7 +410,7 @@ DetectIDEController (
 \r
 /**\r
   Wait specified time interval to poll for BSY bit clear in the Status Register.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev          A pointer to atapi block IO device.\r
   @param[in]  IdeIoRegisters         A pointer to IDE IO registers.\r
   @param[in]  TimeoutInMilliSeconds  Time specified in milliseconds.\r
@@ -428,7 +428,7 @@ WaitForBSYClear (
 \r
 /**\r
   Wait specified time interval to poll for DRDY bit set in the Status register.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev          A pointer to atapi block IO device.\r
   @param[in]  IdeIoRegisters         A pointer to IDE IO registers.\r
   @param[in]  TimeoutInMilliSeconds  Time specified in milliseconds.\r
@@ -446,7 +446,7 @@ DRDYReady (
 \r
 /**\r
   Wait specified time interval to poll for DRQ bit clear in the Status Register.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev          A pointer to atapi block IO device.\r
   @param[in]  IdeIoRegisters         A pointer to IDE IO registers.\r
   @param[in]  TimeoutInMilliSeconds  Time specified in milliseconds.\r
@@ -464,7 +464,7 @@ DRQClear (
 \r
 /**\r
   Wait specified time interval to poll for DRQ bit clear in the Alternate Status Register.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev          A pointer to atapi block IO device.\r
   @param[in]  IdeIoRegisters         A pointer to IDE IO registers.\r
   @param[in]  TimeoutInMilliSeconds  Time specified in milliseconds.\r
@@ -569,7 +569,7 @@ TestUnitReady (
 \r
 /**\r
   Send out ATAPI commands conforms to the Packet Command with PIO Data In Protocol.\r
-  \r
+\r
   @param[in]  AtapiBlkIoDev         A pointer to atapi block IO device.\r
   @param[in]  DevicePosition        An integer to signify device position.\r
   @param[in]  Packet                A pointer to ATAPI command packet.\r
@@ -613,10 +613,10 @@ Inquiry (
   OUT EFI_PEI_BLOCK_IO2_MEDIA       *MediaInfo2\r
   );\r
 \r
-/**  \r
-  Used before read/write blocks from/to ATAPI device media. \r
+/**\r
+  Used before read/write blocks from/to ATAPI device media.\r
   Since ATAPI device media is removable, it is necessary to detect\r
-  whether media is present and get current present media's information.  \r
+  whether media is present and get current present media's information.\r
 \r
   @param[in]  AtapiBlkIoDev     A pointer to atapi block IO device.\r
   @param[in]  DevicePosition    An integer to signify device position.\r
@@ -636,7 +636,7 @@ DetectMedia (
   IN OUT EFI_PEI_BLOCK_IO2_MEDIA    *MediaInfo2\r
   );\r
 \r
-/**  \r
+/**\r
   Reset specified Atapi device.\r
 \r
   @param[in]  AtapiBlkIoDev     A pointer to atapi block IO device.\r
@@ -654,7 +654,7 @@ ResetDevice (
   IN  BOOLEAN           Extensive\r
   );\r
 \r
-/**  \r
+/**\r
   Sends out ATAPI Request Sense Packet Command to the specified device.\r
 \r
   @param[in]      AtapiBlkIoDev   A pointer to atapi block IO device.\r
@@ -674,7 +674,7 @@ RequestSense (
   IN OUT  UINT8                 *SenseCounts\r
   );\r
 \r
-/**  \r
+/**\r
   Sends out ATAPI Read Capacity Packet Command to the specified device.\r
   This command will return the information regarding the capacity of the\r
   media in the device.\r
@@ -696,7 +696,7 @@ ReadCapacity (
   IN OUT EFI_PEI_BLOCK_IO2_MEDIA    *MediaInfo2\r
   );\r
 \r
-/**  \r
+/**\r
   Perform read from disk in block unit.\r
 \r
   @param[in]  AtapiBlkIoDev   A pointer to atapi block IO device.\r
@@ -720,7 +720,7 @@ ReadSectors (
   IN  UINTN               BlockSize\r
   );\r
 \r
-/**  \r
+/**\r
   Check if there is media according to sense data.\r
 \r
   @param[in]  SenseData   Pointer to sense data.\r
@@ -736,14 +736,14 @@ IsNoMedia (
   IN  UINTN                 SenseCounts\r
   );\r
 \r
-/**  \r
+/**\r
   Check if device state is unclear according to sense data.\r
 \r
   @param[in]  SenseData   Pointer to sense data.\r
   @param[in]  SenseCounts Count of sense data.\r
 \r
   @retval TRUE    Device state is unclear\r
-  @retval FALSE   Device state is clear  \r
+  @retval FALSE   Device state is clear\r
 \r
 **/\r
 BOOLEAN\r
@@ -752,7 +752,7 @@ IsDeviceStateUnclear (
   IN  UINTN                 SenseCounts\r
   );\r
 \r
-/**  \r
+/**\r
   Check if there is media error according to sense data.\r
 \r
   @param[in]  SenseData   Pointer to sense data.\r
@@ -768,7 +768,7 @@ IsMediaError (
   IN  UINTN                 SenseCounts\r
   );\r
 \r
-/**  \r
+/**\r
   Check if drive is ready according to sense data.\r
 \r
   @param[in]  SenseData   Pointer to sense data.\r