Adjust the code so that global variable placed at beginning of file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8172 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -53,6 +53,15 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <IndustryStandard/Acpi.h>
|
||||
#include "ComponentName.h"
|
||||
|
||||
|
||||
//
|
||||
// Global Variables
|
||||
//
|
||||
extern EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport;
|
||||
extern EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding;
|
||||
extern EFI_COMPONENT_NAME_PROTOCOL gPciBusComponentName;
|
||||
extern EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2;
|
||||
|
||||
//
|
||||
// Driver Produced Protocol Prototypes
|
||||
//
|
||||
@@ -238,10 +247,6 @@ typedef struct _PCI_IO_DEVICE {
|
||||
//
|
||||
// Global Variables
|
||||
//
|
||||
extern EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport;
|
||||
extern EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding;
|
||||
extern EFI_COMPONENT_NAME_PROTOCOL gPciBusComponentName;
|
||||
extern EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2;
|
||||
extern LIST_ENTRY gPciDevicePool;
|
||||
extern BOOLEAN gFullEnumeration;
|
||||
extern UINTN gPciHostBridgeNumber;
|
||||
|
@@ -18,22 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
// Internal use only
|
||||
//
|
||||
/**
|
||||
report a error Status code of PCI bus driver controller.
|
||||
|
||||
@param PciIoDevice Pci device instance.
|
||||
@param Code status code.
|
||||
**/
|
||||
EFI_STATUS
|
||||
ReportErrorStatusCode (
|
||||
IN PCI_IO_DEVICE *PciIoDevice,
|
||||
IN EFI_STATUS_CODE_VALUE Code
|
||||
);
|
||||
|
||||
//
|
||||
// PCI I/O Support Function Prototypes
|
||||
//
|
||||
//
|
||||
//
|
||||
// Pci Io Protocol Interface
|
||||
//
|
||||
@@ -66,6 +51,23 @@ EFI_PCI_IO_PROTOCOL PciIoInterface = {
|
||||
NULL
|
||||
};
|
||||
|
||||
/**
|
||||
report a error Status code of PCI bus driver controller.
|
||||
|
||||
@param PciIoDevice Pci device instance.
|
||||
@param Code status code.
|
||||
**/
|
||||
EFI_STATUS
|
||||
ReportErrorStatusCode (
|
||||
IN PCI_IO_DEVICE *PciIoDevice,
|
||||
IN EFI_STATUS_CODE_VALUE Code
|
||||
);
|
||||
|
||||
//
|
||||
// PCI I/O Support Function Prototypes
|
||||
//
|
||||
//
|
||||
|
||||
/**
|
||||
report a error Status code of PCI bus driver controller.
|
||||
|
||||
|
Reference in New Issue
Block a user