diff options
author | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-12-22 02:56:28 +0000 |
---|---|---|
committer | rsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-12-22 02:56:28 +0000 |
commit | 5c6889f7cea4fda6a7c75289994f009691c6da8e (patch) | |
tree | 7ca0e6c246e3ae26a6b7304c5d41194c38a7afe0 /MdeModulePkg/Bus | |
parent | d8982b0303e75c7fe1c5aab58ac45d3659494fff (diff) | |
download | edk2-5c6889f7cea4fda6a7c75289994f009691c6da8e.zip edk2-5c6889f7cea4fda6a7c75289994f009691c6da8e.tar.gz edk2-5c6889f7cea4fda6a7c75289994f009691c6da8e.tar.bz2 |
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
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r-- | MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c index 64f1f1b..08ecaa4 100644 --- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c +++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciIo.c @@ -1580,24 +1580,6 @@ PciIoAttributes ( }
//
- // 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.
//
|