)\r
{\r
UINT32 Value32;\r
- UINT32 Offset;\r
- UINT32 OffsetMax;\r
EFI_PCI_IO_PROTOCOL *PciIo;\r
\r
PciIo = &PciDevice->PciIo;\r
if (Enable) {\r
- //\r
- // Clear all bars\r
- //\r
- OffsetMax = 0x24;\r
- if (IS_PCI_BRIDGE(&PciDevice->Pci)) {\r
- OffsetMax = 0x14;\r
- }\r
-\r
- for (Offset = 0x10; Offset <= OffsetMax; Offset += sizeof (UINT32)) {\r
- PciIo->Pci.Write (PciIo, EfiPciIoWidthUint32, Offset, 1, &gAllZero);\r
- }\r
\r
//\r
// set the Rom base address: now is hardcode\r