From 5c6889f7cea4fda6a7c75289994f009691c6da8e Mon Sep 17 00:00:00 2001 From: rsun3 Date: Thu, 22 Dec 2011 02:56:28 +0000 Subject: MdeModulePkg PCI Bus Driver: Remove the workaround for the EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO and EFI_PCI_IO_ATTRIBUTE_VGA_IO attributes to follow the UEFI spec. 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 | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'MdeModulePkg/Bus') diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c index 64f1f1b7c8..08ecaa4d10 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c @@ -1579,24 +1579,6 @@ PciIoAttributes ( return EFI_UNSUPPORTED; } - // - // workaround for PCI drivers which always set ISA_IO or VGA_IO attribute without detecting support of - // ISA_IO/ISA_IO_16 or VGA_IO/VGA_IO_16 to maintain backward-compatibility. - // - if (((Attributes & EFI_PCI_IO_ATTRIBUTE_VGA_IO) != 0) && - ((PciIoDevice->Supports & (EFI_PCI_IO_ATTRIBUTE_VGA_IO | EFI_PCI_IO_ATTRIBUTE_VGA_IO_16)) \ - == EFI_PCI_IO_ATTRIBUTE_VGA_IO_16)) { - Attributes &= ~(UINT64)EFI_PCI_IO_ATTRIBUTE_VGA_IO; - Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_IO_16; - } - - if (((Attributes & EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO) != 0) && - ((PciIoDevice->Supports & (EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO | EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16)) \ - == EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16)) { - Attributes &= ~(UINT64)EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO; - Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16; - } - // // If no attributes can be supported, then return. // Otherwise, set the attributes that it can support. -- cgit v1.2.3