]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PcAtChipsetPkg/IsaAcpiDxe/PcatIsaAcpi.h
PcAtChipsetPkg/IsaAcpiDxe: Restore PCI attributes correctly
[mirror_edk2.git] / PcAtChipsetPkg / IsaAcpiDxe / PcatIsaAcpi.h
index 955162c2d2bab3905810f5a0e2de3a5d997b2606..d48c5882d5fc9e8990ba427c7d441832cbdb0587 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   EFI PCAT ISA ACPI Driver for a Generic PC Platform\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2006 - 2017, 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
@@ -29,6 +29,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Library/UefiLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/BaseMemoryLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 #include <Protocol/IsaAcpi.h>\r
 //\r
@@ -41,6 +43,7 @@ typedef struct {
   EFI_HANDLE             Handle;    \r
   EFI_ISA_ACPI_PROTOCOL  IsaAcpi;\r
   EFI_PCI_IO_PROTOCOL    *PciIo;\r
+  UINT64                 OriginalAttributes;\r
 } PCAT_ISA_ACPI_DEV;\r
 \r
 #define PCAT_ISA_ACPI_DEV_FROM_THIS(a) BASE_CR(a, PCAT_ISA_ACPI_DEV, IsaAcpi)\r
@@ -131,7 +134,7 @@ PcatIsaAcpiDriverBindingStop (
   @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_SUCCESS    Success retrieve the next Isa device for enumration.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -150,7 +153,7 @@ IsaDeviceEnumerate (
   @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
@@ -202,7 +205,7 @@ IsaGetPossibleResource (
   @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
@@ -220,7 +223,7 @@ IsaSetResource (
   @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
@@ -237,7 +240,7 @@ IsaEnableDevice (
   @param This            Point to instance of EFI_ISA_ACPI_PROTOCOL\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
@@ -252,7 +255,7 @@ 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
@@ -261,4 +264,12 @@ IsaInterfaceInit (
   IN EFI_ISA_ACPI_PROTOCOL  *This\r
   );  \r
 \r
+/**\r
+  Initialize the ISA device list.\r
+**/\r
+VOID\r
+InitializePcatIsaAcpiDeviceList (\r
+  VOID\r
+  );\r
+\r
 #endif\r