/*++\r
\r
-Copyright (c) 2005 - 2006, Intel Corporation \r
+Copyright (c) 2005 - 2008, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
\r
#include "PcatPciRootBridge.h"\r
\r
-static BOOLEAN mPciOptionRomTableInstalled = FALSE;\r
-static EFI_PCI_OPTION_ROM_TABLE mPciOptionRomTable = {0, NULL};\r
+BOOLEAN mPciOptionRomTableInstalled = FALSE;\r
+EFI_PCI_OPTION_ROM_TABLE mPciOptionRomTable = {0, NULL};\r
\r
EFI_STATUS\r
EFIAPI\r
return EFI_SUCCESS;\r
}\r
\r
-static\r
VOID\r
ScanPciBus(\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev,\r
}\r
}\r
\r
-static\r
VOID\r
CheckForRom (\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev,\r
IoDev->Pci.Write (IoDev, EfiPciWidthUint32, Address, sizeof(PciHeader)/sizeof(UINT32), &PciHeader);\r
}\r
\r
-static\r
VOID\r
SaveCommandRegister (\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev,\r
IoDev->Pci.Write (IoDev, EfiPciWidthUint16, Address, 1, &Command);\r
}\r
\r
-static\r
VOID\r
RestoreCommandRegister (\r
EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL *IoDev,\r
mPciOptionRomTableInstalled = TRUE;\r
}\r
\r
- Status = IoDev->Configuration(IoDev, &Descriptors);\r
+ Status = IoDev->Configuration(IoDev, (VOID **)&Descriptors);\r
if (EFI_ERROR (Status) || Descriptors == NULL) {\r
return EFI_NOT_FOUND;\r
}\r
//\r
// Find Memory Descriptors that are less than 4GB, so the PPB Memory Window can be used for downstream devices\r
//\r
- if (Descriptors->AddrRangeMax < 0x100000000) {\r
+ if (Descriptors->AddrRangeMax < 0x100000000ULL) {\r
//\r
// Find the largest Non-Prefetchable Memory Descriptor that is less than 4GB\r
//\r
Status = gBS->AllocatePool(\r
EfiBootServicesData,\r
sizeof(UINT16) * (MaxBus - MinBus + 1) * (PCI_MAX_DEVICE+1) * (PCI_MAX_FUNC+1),\r
- &Context.CommandRegisterBuffer\r
+ (VOID **)&Context.CommandRegisterBuffer\r
);\r
\r
if (EFI_ERROR (Status)) {\r