]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg PCI Bus Driver: Remove the workaround for the EFI_PCI_IO_ATTRIBUTE_VGA_P...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 Dec 2011 02:56:28 +0000 (02:56 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 Dec 2011 02:56:28 +0000 (02:56 +0000)
Signed-off-by: rsun3
Reviewed-by: niruiyu
Reviewed-by: mdkinney
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12891 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c

index 64f1f1b7c896c6c31dd2caf2befa1d224b56ab41..08ecaa4d1024a63f2ce17efe19df186cafa7ac47 100644 (file)
@@ -1579,24 +1579,6 @@ PciIoAttributes (
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  //\r
-  // workaround for PCI drivers which always set ISA_IO or VGA_IO attribute without detecting support of\r
-  // ISA_IO/ISA_IO_16 or VGA_IO/VGA_IO_16 to maintain backward-compatibility.\r
-  //\r
-  if (((Attributes & EFI_PCI_IO_ATTRIBUTE_VGA_IO) != 0) && \r
-      ((PciIoDevice->Supports & (EFI_PCI_IO_ATTRIBUTE_VGA_IO | EFI_PCI_IO_ATTRIBUTE_VGA_IO_16)) \\r
-        == EFI_PCI_IO_ATTRIBUTE_VGA_IO_16)) {\r
-    Attributes &= ~(UINT64)EFI_PCI_IO_ATTRIBUTE_VGA_IO;\r
-    Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_IO_16;\r
-  }\r
-\r
-  if (((Attributes & EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO) != 0) && \r
-      ((PciIoDevice->Supports & (EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO | EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16)) \\r
-        == EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16)) {\r
-    Attributes &= ~(UINT64)EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO;\r
-    Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16;\r
-  }\r
-\r
   //\r
   // If no attributes can be supported, then return.\r
   // Otherwise, set the attributes that it can support.\r