//\r
if (gFullEnumeration) {\r
\r
- PciSetCommandRegister (PciIoDevice, 0);\r
+ PciDisableCommandRegister (PciIoDevice, EFI_PCI_COMMAND_BITS_OWNED);\r
\r
}\r
\r
);\r
\r
if (gFullEnumeration) {\r
- PciSetCommandRegister (PciIoDevice, 0);\r
+ PciDisableCommandRegister (PciIoDevice, EFI_PCI_COMMAND_BITS_OWNED);\r
\r
//\r
// Initalize the bridge control register\r
//\r
- PciSetBridgeControlRegister (PciIoDevice, 0);\r
+ PciDisableBridgeControlRegister (PciIoDevice, EFI_PCI_BRIDGE_CONTROL_BITS_OWNED);\r
\r
}\r
\r
);\r
\r
if (gFullEnumeration) {\r
- PciSetCommandRegister (PciIoDevice, 0);\r
+ PciDisableCommandRegister (PciIoDevice, EFI_PCI_COMMAND_BITS_OWNED);\r
\r
//\r
// Initalize the bridge control register\r
//\r
- PciSetBridgeControlRegister (PciIoDevice, 0);\r
+ PciDisableBridgeControlRegister (PciIoDevice, EFI_PCCARD_BRIDGE_CONTROL_BITS_OWNED);\r
\r
}\r
//\r
Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO;\r
}\r
\r
+ if (BridgeControl & EFI_PCI_BRIDGE_CONTROL_VGA_16) {\r
+ Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_IO_16;\r
+ Attributes |= EFI_PCI_IO_ATTRIBUTE_VGA_PALETTE_IO_16;\r
+ }\r
+\r
if (Option == EFI_SET_SUPPORTS) {\r
\r
Attributes |= EFI_PCI_IO_ATTRIBUTE_MEMORY_WRITE_COMBINE | \r
EFI_PCI_COMMAND_BUS_MASTER |\r
EFI_PCI_COMMAND_VGA_PALETTE_SNOOP;\r
\r
- BridgeControl = EFI_PCI_BRIDGE_CONTROL_ISA | EFI_PCI_BRIDGE_CONTROL_VGA;\r
+ BridgeControl = EFI_PCI_BRIDGE_CONTROL_ISA | EFI_PCI_BRIDGE_CONTROL_VGA | EFI_PCI_BRIDGE_CONTROL_VGA_16;\r
\r
//\r
// Test whether the device can support attributes above\r