]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBus.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / IdeBusDxe / IdeBus.c
index 82fd44f17dab7d1f82c02503b0a7cda380b699c6..6648dfd541a91c6c3197828552c1886f62facd8a 100644 (file)
@@ -1,9 +1,9 @@
 /** @file\r
-  This file implement UEFI driver for IDE Bus which includes device identification, \r
-  Child device(Disk, CDROM, etc) enumeration and child handler installation, and \r
+  This file implement UEFI driver for IDE Bus which includes device identification,\r
+  Child device(Disk, CDROM, etc) enumeration and child handler installation, and\r
   driver stop.\r
-    \r
-  Copyright (c) 2006 - 2014, 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
@@ -154,7 +154,7 @@ IDEBusDriverBindingSupported (
   if (RemainingDevicePath != NULL) {\r
     Node = (EFI_DEV_PATH *) RemainingDevicePath;\r
     //\r
-    // Check if RemainingDevicePath is the End of Device Path Node, \r
+    // Check if RemainingDevicePath is the End of Device Path Node,\r
     // if yes, go on checking other conditions\r
     //\r
     if (!IsDevicePathEnd (Node)) {\r
@@ -190,7 +190,7 @@ IDEBusDriverBindingSupported (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Close the I/O Abstraction(s) used to perform the supported test\r
   //\r
@@ -237,11 +237,11 @@ IDEBusDriverBindingSupported (
                   Controller,\r
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                   );\r
-  \r
+\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  \r
+\r
   //\r
   // Now further check the PCI header: Base class (offset 0x0B) and\r
   // Sub Class (offset 0x0A). This controller should be an IDE controller\r
@@ -258,11 +258,11 @@ IDEBusDriverBindingSupported (
     //\r
     // Examine if it is IDE mode by class code\r
     //\r
-    if ((PciData.Hdr.ClassCode[2] != PCI_CLASS_MASS_STORAGE) || (PciData.Hdr.ClassCode[1] != PCI_SUB_CLASS_IDE)) {     \r
+    if ((PciData.Hdr.ClassCode[2] != PCI_CLASS_MASS_STORAGE) || (PciData.Hdr.ClassCode[1] != PCI_SUB_CLASS_IDE)) {\r
       Status = EFI_UNSUPPORTED;\r
-    } else {    \r
+    } else {\r
       Status = EFI_SUCCESS;\r
-    } \r
+    }\r
   }\r
 \r
   return Status;\r
@@ -464,7 +464,7 @@ IDEBusDriverBindingStart (
 \r
    if (EnumAll || RemainingDevicePath == NULL) {\r
     //\r
-    // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL, \r
+    // If IdeInit->EnumAll is TRUE or RemainingDevicePath is NULL,\r
     // must enumerate all IDE devices anyway\r
     //\r
     BeginningIdeChannel = IdePrimary;\r
@@ -474,7 +474,7 @@ IDEBusDriverBindingStart (
 \r
   } else if (!IsDevicePathEnd (RemainingDevicePath)) {\r
     //\r
-    // If RemainingDevicePath isn't the End of Device Path Node, \r
+    // If RemainingDevicePath isn't the End of Device Path Node,\r
     // only scan the specified device by RemainingDevicePath\r
     //\r
     Node                = (EFI_DEV_PATH *) RemainingDevicePath;\r
@@ -495,7 +495,7 @@ IDEBusDriverBindingStart (
     //\r
     // If RemainingDevicePath is the End of Device Path Node,\r
     // skip enumerate any device and return EFI_SUCESSS\r
-    // \r
+    //\r
     BeginningIdeChannel = IdeMaxChannel;\r
     EndIdeChannel       = IdeMaxChannel - 1;\r
     BeginningIdeDevice  = IdeMaxDevice;\r
@@ -1298,7 +1298,7 @@ IDEBlkIoFlushBlocks (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get inquiry data. \r
+  This function is used by the IDE bus driver to get inquiry data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -1306,9 +1306,9 @@ IDEBlkIoFlushBlocks (
   @param  InquiryDataSize       Pointer to the value for the inquiry data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IntquiryDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1339,7 +1339,7 @@ IDEDiskInfoInquiry (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get identify data. \r
+  This function is used by the IDE bus driver to get identify data.\r
   Data format of Identify data is defined by the Interface GUID.\r
 \r
   @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
@@ -1347,9 +1347,9 @@ IDEDiskInfoInquiry (
   @param  IdentifyDataSize      Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading IdentifyData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  IdentifyDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1380,18 +1380,18 @@ IDEDiskInfoIdentify (
 }\r
 \r
 /**\r
-  This function is used by the IDE bus driver to get sense data. \r
+  This function is used by the IDE bus driver to get sense data.\r
   Data format of Sense data is defined by the Interface GUID.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
-  @param  SenseData             Pointer to the SenseData. \r
-  @param  SenseDataSize         Size of SenseData in bytes. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
+  @param  SenseData             Pointer to the SenseData.\r
+  @param  SenseDataSize         Size of SenseData in bytes.\r
   @param  SenseDataNumber       Pointer to the value for the identify data size.\r
 \r
   @retval EFI_SUCCESS           The command was accepted without any errors.\r
-  @retval EFI_NOT_FOUND         Device does not support this data class \r
-  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device \r
-  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough \r
+  @retval EFI_NOT_FOUND         Device does not support this data class\r
+  @retval EFI_DEVICE_ERROR      Error reading InquiryData from device\r
+  @retval EFI_BUFFER_TOO_SMALL  SenseDataSize not big enough\r
 \r
 **/\r
 EFI_STATUS\r
@@ -1409,12 +1409,12 @@ IDEDiskInfoSenseData (
 /**\r
   This function is used by the IDE bus driver to get controller information.\r
 \r
-  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance. \r
+  @param  This                  Pointer to the EFI_DISK_INFO_PROTOCOL instance.\r
   @param  IdeChannel            Pointer to the Ide Channel number. Primary or secondary.\r
   @param  IdeDevice             Pointer to the Ide Device number. Master or slave.\r
 \r
-  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid \r
-  @retval EFI_UNSUPPORTED       This is not an IDE device \r
+  @retval EFI_SUCCESS           IdeChannel and IdeDevice are valid\r
+  @retval EFI_UNSUPPORTED       This is not an IDE device\r
 \r
 **/\r
 EFI_STATUS\r