]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.c
PcAtChipsetPkg: Clean up source files
[mirror_edk2.git] / PcAtChipsetPkg / IsaAcpiDxe / IsaAcpi.c
index 1194016271ac4edc837fb301c1dacb082568c7e4..0664f3bd1eba278158a054edcbd1ec1fad2d7e76 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   ISA ACPI Protocol Implementation\r
 \r
-Copyright (c) 2006 - 2011, 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
-http://opensource.org/licenses/bsd-license.php                                            \r
-                                                                                          \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 **/\r
 \r
 #include "PcatIsaAcpi.h"\r
@@ -101,7 +101,7 @@ EFI_ISA_ACPI_RESOURCE_LIST mPcatIsaAcpiFloppyBDevice = {
 //\r
 // Table of ISA Controllers\r
 //\r
-EFI_ISA_ACPI_RESOURCE_LIST gPcatIsaAcpiDeviceList[7] = {0};\r
+EFI_ISA_ACPI_RESOURCE_LIST gPcatIsaAcpiDeviceList[7] = {{{0, 0}, NULL}};\r
 \r
 /**\r
   Initialize gPcatIsaAcpiDeviceList.\r
@@ -146,7 +146,7 @@ InitializePcatIsaAcpiDeviceList (
 /**\r
   Enumerate the ISA devices on the ISA bus.\r
 \r
-  @param Device             Point to device ID instance \r
+  @param Device             Point to device ID instance\r
   @param IsaAcpiDevice      On return, point to resource data for Isa device\r
   @param NextIsaAcpiDevice  On return, point to resource data for next Isa device\r
 **/\r
@@ -167,7 +167,7 @@ IsaDeviceLookup (
     Index = 0;\r
   } else {\r
     for(Index = 0; gPcatIsaAcpiDeviceList[Index].ResourceItem != NULL; Index++) {\r
-      if (Device->HID == gPcatIsaAcpiDeviceList[Index].Device.HID && \r
+      if (Device->HID == gPcatIsaAcpiDeviceList[Index].Device.HID &&\r
           Device->UID == gPcatIsaAcpiDeviceList[Index].Device.UID    ) {\r
         break;\r
       }\r
@@ -188,10 +188,10 @@ IsaDeviceLookup (
 \r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
 \r
-  @retval EFI_NOT_FOUND Can not found the next Isa device.\r
-  @retval EFI_SUCESS    Success retrieve the next Isa device for enumration.\r
+  @retval EFI_NOT_FOUND  Can not found the next Isa device.\r
+  @retval EFI_SUCCESS    Success retrieve the next Isa device for enumration.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -217,11 +217,11 @@ IsaDeviceEnumerate (
 \r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
   @param OnOff           TRUE for setting isa device power on,\r
                          FALSE for setting isa device power off\r
 \r
-  @return EFI_SUCCESS    Sucess to change power status for isa device.\r
+  @return EFI_SUCCESS    Success to change power status for isa device.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
@@ -232,13 +232,13 @@ IsaDeviceSetPower (
   )\r
 {\r
   return EFI_SUCCESS;\r
-} \r
+}\r
 \r
 /**\r
   Get current resource for the specific ISA device.\r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
   @param ResourceList    On return, point to resources instances for given isa device\r
 \r
   @retval EFI_NOT_FOUND Can not found the resource instance for given isa device\r
@@ -248,7 +248,7 @@ EFI_STATUS
 EFIAPI\r
 IsaGetCurrentResource (\r
   IN  EFI_ISA_ACPI_PROTOCOL       *This,\r
-  IN  EFI_ISA_ACPI_DEVICE_ID      *Device,  \r
+  IN  EFI_ISA_ACPI_DEVICE_ID      *Device,\r
   OUT EFI_ISA_ACPI_RESOURCE_LIST  **ResourceList\r
   )\r
 {\r
@@ -261,9 +261,9 @@ IsaGetCurrentResource (
 \r
 /**\r
   Get possible resource for the specific ISA device.\r
-  \r
+\r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
   @param ResourceList    On return, point to resources instances for given isa device\r
 \r
   @retval EFI_SUCCESS   Success to get resource instance for given isa device.\r
@@ -272,7 +272,7 @@ EFI_STATUS
 EFIAPI\r
 IsaGetPossibleResource (\r
   IN  EFI_ISA_ACPI_PROTOCOL       *This,\r
-  IN  EFI_ISA_ACPI_DEVICE_ID      *Device,  \r
+  IN  EFI_ISA_ACPI_DEVICE_ID      *Device,\r
   OUT EFI_ISA_ACPI_RESOURCE_LIST  **ResourceList\r
   )\r
 {\r
@@ -283,31 +283,31 @@ IsaGetPossibleResource (
   Set resource for the specific ISA device.\r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
   @param ResourceList    Point to resources instances for given isa device\r
 \r
-  @return EFI_SUCESS  Success to set resource.\r
+  @return EFI_SUCCESS  Success to set resource.\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 IsaSetResource (\r
   IN EFI_ISA_ACPI_PROTOCOL       *This,\r
-  IN EFI_ISA_ACPI_DEVICE_ID      *Device,  \r
+  IN EFI_ISA_ACPI_DEVICE_ID      *Device,\r
   IN EFI_ISA_ACPI_RESOURCE_LIST  *ResourceList\r
   )\r
 {\r
   return EFI_SUCCESS;\r
 }\r
-        \r
+\r
 /**\r
   Enable/Disable the specific ISA device.\r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
   @param Enable          Enable/Disable\r
 \r
-  @return EFI_SUCESS  Success to enable/disable.\r
+  @return EFI_SUCCESS  Success to enable/disable.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -318,16 +318,16 @@ IsaEnableDevice (
   IN BOOLEAN                 Enable\r
   )\r
 {\r
-  return EFI_SUCCESS;  \r
+  return EFI_SUCCESS;\r
 }\r
 \r
 /**\r
   Initialize the specific ISA device.\r
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
-  @param Device          Point to device ID instance \r
+  @param Device          Point to device ID instance\r
 \r
-  @return EFI_SUCESS  Success to initialize.\r
+  @return EFI_SUCCESS  Success to initialize.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -346,14 +346,14 @@ IsaInitDevice (
 \r
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\r
 \r
-  @return EFI_SUCESS  Success to initialize ISA interface.\r
+  @return EFI_SUCCESS  Success to initialize ISA interface.\r
 \r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
 IsaInterfaceInit (\r
   IN EFI_ISA_ACPI_PROTOCOL  *This\r
-)  \r
+)\r
 {\r
   return EFI_SUCCESS;\r
-}  \r
+}\r