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
This commit is contained in:
rsun3 2011-12-22 02:56:28 +00:00
parent d8982b0303
commit 5c6889f7ce
1 changed files with 0 additions and 18 deletions

View File

@ -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.