mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/PciBus: Use shorter global variable name
Remove "Efi" from gEfiIncompatiblePciDeviceSupport to shorten the global variable name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
48495aae38
commit
ea669c1ba3
|
@ -8,7 +8,7 @@
|
|||
PCI Root Bridges. So it means platform needs install PCI Root Bridge IO protocol for each
|
||||
PCI Root Bus and install PCI Host Bridge Resource Allocation Protocol.
|
||||
|
||||
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
|
@ -34,7 +34,7 @@ EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding = {
|
|||
};
|
||||
|
||||
EFI_HANDLE gPciHostBrigeHandles[PCI_MAX_HOST_BRIDGE_NUM];
|
||||
EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport = NULL;
|
||||
EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gIncompatiblePciDeviceSupport = NULL;
|
||||
UINTN gPciHostBridgeNumber = 0;
|
||||
BOOLEAN gFullEnumeration = TRUE;
|
||||
UINT64 gAllOne = 0xFFFFFFFFFFFFFFFFULL;
|
||||
|
@ -258,7 +258,7 @@ PciBusDriverBindingStart (
|
|||
gBS->LocateProtocol (
|
||||
&gEfiIncompatiblePciDeviceSupportProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &gEfiIncompatiblePciDeviceSupport
|
||||
(VOID **) &gIncompatiblePciDeviceSupport
|
||||
);
|
||||
|
||||
//
|
||||
|
|
|
@ -307,7 +307,7 @@ struct _PCI_IO_DEVICE {
|
|||
//
|
||||
// Global Variables
|
||||
//
|
||||
extern EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gEfiIncompatiblePciDeviceSupport;
|
||||
extern EFI_INCOMPATIBLE_PCI_DEVICE_SUPPORT_PROTOCOL *gIncompatiblePciDeviceSupport;
|
||||
extern EFI_DRIVER_BINDING_PROTOCOL gPciBusDriverBinding;
|
||||
extern EFI_COMPONENT_NAME_PROTOCOL gPciBusComponentName;
|
||||
extern EFI_COMPONENT_NAME2_PROTOCOL gPciBusComponentName2;
|
||||
|
|
|
@ -1344,7 +1344,7 @@ UpdatePciInfo (
|
|||
Configuration = NULL;
|
||||
Status = EFI_SUCCESS;
|
||||
|
||||
if (gEfiIncompatiblePciDeviceSupport == NULL) {
|
||||
if (gIncompatiblePciDeviceSupport == NULL) {
|
||||
//
|
||||
// It can only be supported after the Incompatible PCI Device
|
||||
// Support Protocol has been installed
|
||||
|
@ -1352,7 +1352,7 @@ UpdatePciInfo (
|
|||
Status = gBS->LocateProtocol (
|
||||
&gEfiIncompatiblePciDeviceSupportProtocolGuid,
|
||||
NULL,
|
||||
(VOID **) &gEfiIncompatiblePciDeviceSupport
|
||||
(VOID **) &gIncompatiblePciDeviceSupport
|
||||
);
|
||||
}
|
||||
if (Status == EFI_SUCCESS) {
|
||||
|
@ -1360,15 +1360,15 @@ UpdatePciInfo (
|
|||
// Check whether the device belongs to incompatible devices from protocol or not
|
||||
// If it is , then get its special requirement in the ACPI table
|
||||
//
|
||||
Status = gEfiIncompatiblePciDeviceSupport->CheckDevice (
|
||||
gEfiIncompatiblePciDeviceSupport,
|
||||
PciIoDevice->Pci.Hdr.VendorId,
|
||||
PciIoDevice->Pci.Hdr.DeviceId,
|
||||
PciIoDevice->Pci.Hdr.RevisionID,
|
||||
PciIoDevice->Pci.Device.SubsystemVendorID,
|
||||
PciIoDevice->Pci.Device.SubsystemID,
|
||||
&Configuration
|
||||
);
|
||||
Status = gIncompatiblePciDeviceSupport->CheckDevice (
|
||||
gIncompatiblePciDeviceSupport,
|
||||
PciIoDevice->Pci.Hdr.VendorId,
|
||||
PciIoDevice->Pci.Hdr.DeviceId,
|
||||
PciIoDevice->Pci.Hdr.RevisionID,
|
||||
PciIoDevice->Pci.Device.SubsystemVendorID,
|
||||
PciIoDevice->Pci.Device.SubsystemID,
|
||||
&Configuration
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue