diff options
author | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 06:17:19 +0000 |
---|---|---|
committer | jji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-30 06:17:19 +0000 |
commit | e56dd2ce1342c358962eeab09d54cb1a95c064bf (patch) | |
tree | 7de2ad650759902a24330257dde6791ec443eedc /DuetPkg/PciBusNoEnumerationDxe | |
parent | 7492c63d423201cbabc00c343cc25269bb1254c1 (diff) | |
download | edk2-platforms-e56dd2ce1342c358962eeab09d54cb1a95c064bf.tar.xz |
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
Diffstat (limited to 'DuetPkg/PciBusNoEnumerationDxe')
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/ComponentName.c | 2 | ||||
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciBus.c | 3 | ||||
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciBus.h | 4 | ||||
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciIo.c | 2 | ||||
-rw-r--r-- | DuetPkg/PciBusNoEnumerationDxe/PciRomTable.c | 10 |
5 files changed, 11 insertions, 10 deletions
diff --git a/DuetPkg/PciBusNoEnumerationDxe/ComponentName.c b/DuetPkg/PciBusNoEnumerationDxe/ComponentName.c index 48b0dcee2c..647e571d3c 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/ComponentName.c +++ b/DuetPkg/PciBusNoEnumerationDxe/ComponentName.c @@ -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 }
};
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciBus.c b/DuetPkg/PciBusNoEnumerationDxe/PciBus.c index d50becdb9d..214e3994f6 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciBus.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciBus.c @@ -74,6 +74,9 @@ EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding = { };
BOOLEAN gFullEnumeration;
+
+UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;
+UINT64 gAllZero = 0;
//
// PCI Bus Driver Support Functions
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciBus.h b/DuetPkg/PciBusNoEnumerationDxe/PciBus.h index fe974bee33..420c868bbe 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciBus.h +++ b/DuetPkg/PciBusNoEnumerationDxe/PciBus.h @@ -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"
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciIo.c b/DuetPkg/PciBusNoEnumerationDxe/PciIo.c index 1a0937fe7e..03fc0944a7 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciIo.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciIo.c @@ -267,7 +267,7 @@ PciIoSetBarAttributes( //
// Pci Io Protocol Interface
//
-static EFI_PCI_IO_PROTOCOL PciIoInterface = {
+EFI_PCI_IO_PROTOCOL PciIoInterface = {
PciIoPollMem,
PciIoPollIo,
{
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciRomTable.c b/DuetPkg/PciBusNoEnumerationDxe/PciRomTable.c index d14a0d56da..7629384bab 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciRomTable.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciRomTable.c @@ -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,
|