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:
@@ -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 }
|
||||
};
|
||||
|
@@ -74,6 +74,9 @@ EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding = {
|
||||
};
|
||||
|
||||
BOOLEAN gFullEnumeration;
|
||||
|
||||
UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;
|
||||
UINT64 gAllZero = 0;
|
||||
|
||||
//
|
||||
// PCI Bus Driver Support Functions
|
||||
|
@@ -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"
|
||||
|
@@ -267,7 +267,7 @@ PciIoSetBarAttributes(
|
||||
//
|
||||
// Pci Io Protocol Interface
|
||||
//
|
||||
static EFI_PCI_IO_PROTOCOL PciIoInterface = {
|
||||
EFI_PCI_IO_PROTOCOL PciIoInterface = {
|
||||
PciIoPollMem,
|
||||
PciIoPollIo,
|
||||
{
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user