]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/BiosVideo.h
Currently restoring PCI attributes are put in child uninstall logic, if one child...
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / BiosThunk / VideoDxe / BiosVideo.h
index 45a75b9cd016afb56e3087e7194bf83bc090c1b0..88ab1d7cf400c90f2f17c1f16b8c7ad70cecfbf1 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, 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
@@ -88,10 +88,6 @@ typedef struct {
   //\r
   EFI_PCI_IO_PROTOCOL                         *PciIo;\r
   EFI_LEGACY_BIOS_PROTOCOL                    *LegacyBios;\r
-  //\r
-  // Original PCI attributes\r
-  //\r
-  UINT64                                      OriginalPciAttributes;\r
 \r
   //\r
   // Produced Protocols\r
@@ -484,7 +480,6 @@ BiosVideoNotifyExitBootServices (
   @param  ParentLegacyBios       Parent LegacyBios interface\r
   @param  ParentDevicePath       Parent Device Path\r
   @param  RemainingDevicePath    Remaining Device Path\r
-  @param  OriginalPciAttributes  Original PCI Attributes\r
 \r
   @retval EFI_SUCCESS            If a child handle was added\r
   @retval other                  A child handle was not added\r
@@ -497,8 +492,7 @@ BiosVideoChildHandleInstall (
   IN  EFI_PCI_IO_PROTOCOL          *ParentPciIo,\r
   IN  EFI_LEGACY_BIOS_PROTOCOL     *ParentLegacyBios,\r
   IN  EFI_DEVICE_PATH_PROTOCOL     *ParentDevicePath,\r
-  IN  EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath,\r
-  IN  UINT64                       OriginalPciAttributes\r
+  IN  EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath\r
   );\r
 \r
 /**\r
@@ -529,4 +523,17 @@ BiosVideoDeviceReleaseResource (
   BIOS_VIDEO_DEV  *BiosVideoPrivate\r
   );\r
 \r
+/**\r
+  Check if all video child handles have been uninstalled.\r
+\r
+  @param  Controller             Video controller handle\r
+\r
+  @return TRUE                   Child handles exist.\r
+  @return FALSE                  All video child handles have been uninstalled.\r
+\r
+**/\r
+BOOLEAN\r
+HasChildHandle (\r
+  IN EFI_HANDLE  Controller\r
+  );\r
 #endif\r