Patch to remove STATIC modifier. This is on longer recommended by EFI Framework coding style. All duplicated symbols has been renamed accordingly.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6302 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4
2008-10-30 06:17:19 +00:00
parent 7492c63d42
commit e56dd2ce13
26 changed files with 39 additions and 101 deletions

View File

@@ -55,7 +55,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2
};
STATIC EFI_UNICODE_STRING_TABLE mPciBusDriverNameTable[] = {
EFI_UNICODE_STRING_TABLE mPciBusDriverNameTable[] = {
{ "eng;en", L"PCI Bus Driver" },
{ NULL, NULL }
};

View File

@@ -74,6 +74,9 @@ EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding = {
};
BOOLEAN gFullEnumeration;
UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;
UINT64 gAllZero = 0;
//
// PCI Bus Driver Support Functions

View File

@@ -204,8 +204,8 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2;
extern EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding;
extern BOOLEAN gFullEnumeration;
static UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;
static UINT64 gAllZero = 0;
extern UINT64 gAllOne;
extern UINT64 gAllZero;
#include "PciIo.h"
#include "PciCommand.h"

View File

@@ -267,7 +267,7 @@ PciIoSetBarAttributes(
//
// Pci Io Protocol Interface
//
static EFI_PCI_IO_PROTOCOL PciIoInterface = {
EFI_PCI_IO_PROTOCOL PciIoInterface = {
PciIoPollMem,
PciIoPollIo,
{

View File

@@ -31,13 +31,12 @@ typedef struct {
UINT8 Func;
} EFI_PCI_ROM_IMAGE_MAPPING;
static UINTN mNumberOfPciRomImages = 0;
static UINTN mMaxNumberOfPciRomImages = 0;
static EFI_PCI_ROM_IMAGE_MAPPING *mRomImageTable = NULL;
UINTN mNumberOfPciRomImages = 0;
UINTN mMaxNumberOfPciRomImages = 0;
EFI_PCI_ROM_IMAGE_MAPPING *mRomImageTable = NULL;
static CHAR16 mHexDigit[17] = L"0123456789ABCDEF";
CHAR16 mHexDigit[17] = L"0123456789ABCDEF";
static
VOID
PciRomAddImageMapping (
IN EFI_HANDLE ImageHandle,
@@ -77,7 +76,6 @@ PciRomAddImageMapping (
mNumberOfPciRomImages++;
}
static
VOID
HexToString (
CHAR16 *String,