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:
		| @@ -8,7 +8,7 @@ | |||||||
|   PCI Root Bridges. So it means platform needs install PCI Root Bridge IO protocol for each |   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. |   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 | This program and the accompanying materials | ||||||
| are licensed and made available under the terms and conditions of the BSD License | 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 | 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_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; | UINTN                                         gPciHostBridgeNumber = 0; | ||||||
| BOOLEAN                                       gFullEnumeration     = TRUE; | BOOLEAN                                       gFullEnumeration     = TRUE; | ||||||
| UINT64                                        gAllOne              = 0xFFFFFFFFFFFFFFFFULL; | UINT64                                        gAllOne              = 0xFFFFFFFFFFFFFFFFULL; | ||||||
| @@ -258,7 +258,7 @@ PciBusDriverBindingStart ( | |||||||
|   gBS->LocateProtocol ( |   gBS->LocateProtocol ( | ||||||
|          &gEfiIncompatiblePciDeviceSupportProtocolGuid, |          &gEfiIncompatiblePciDeviceSupportProtocolGuid, | ||||||
|          NULL, |          NULL, | ||||||
|          (VOID **) &gEfiIncompatiblePciDeviceSupport |          (VOID **) &gIncompatiblePciDeviceSupport | ||||||
|          ); |          ); | ||||||
|  |  | ||||||
|   // |   // | ||||||
|   | |||||||
| @@ -307,7 +307,7 @@ struct _PCI_IO_DEVICE { | |||||||
| // | // | ||||||
| // Global Variables | // 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_DRIVER_BINDING_PROTOCOL                  gPciBusDriverBinding; | ||||||
| extern EFI_COMPONENT_NAME_PROTOCOL                  gPciBusComponentName; | extern EFI_COMPONENT_NAME_PROTOCOL                  gPciBusComponentName; | ||||||
| extern EFI_COMPONENT_NAME2_PROTOCOL                 gPciBusComponentName2; | extern EFI_COMPONENT_NAME2_PROTOCOL                 gPciBusComponentName2; | ||||||
|   | |||||||
| @@ -1344,7 +1344,7 @@ UpdatePciInfo ( | |||||||
|   Configuration = NULL; |   Configuration = NULL; | ||||||
|   Status        = EFI_SUCCESS; |   Status        = EFI_SUCCESS; | ||||||
|  |  | ||||||
|   if (gEfiIncompatiblePciDeviceSupport == NULL) { |   if (gIncompatiblePciDeviceSupport == NULL) { | ||||||
|     // |     // | ||||||
|     // It can only be supported after the Incompatible PCI Device |     // It can only be supported after the Incompatible PCI Device | ||||||
|     // Support Protocol has been installed |     // Support Protocol has been installed | ||||||
| @@ -1352,7 +1352,7 @@ UpdatePciInfo ( | |||||||
|     Status = gBS->LocateProtocol ( |     Status = gBS->LocateProtocol ( | ||||||
|                     &gEfiIncompatiblePciDeviceSupportProtocolGuid, |                     &gEfiIncompatiblePciDeviceSupportProtocolGuid, | ||||||
|                     NULL, |                     NULL, | ||||||
|                     (VOID **) &gEfiIncompatiblePciDeviceSupport |                     (VOID **) &gIncompatiblePciDeviceSupport | ||||||
|                     ); |                     ); | ||||||
|   } |   } | ||||||
|   if (Status == EFI_SUCCESS) { |   if (Status == EFI_SUCCESS) { | ||||||
| @@ -1360,15 +1360,15 @@ UpdatePciInfo ( | |||||||
|       // Check whether the device belongs to incompatible devices from protocol or not |       // Check whether the device belongs to incompatible devices from protocol or not | ||||||
|       // If it is , then get its special requirement in the ACPI table |       // If it is , then get its special requirement in the ACPI table | ||||||
|       // |       // | ||||||
|       Status = gEfiIncompatiblePciDeviceSupport->CheckDevice ( |       Status = gIncompatiblePciDeviceSupport->CheckDevice ( | ||||||
|                                                    gEfiIncompatiblePciDeviceSupport, |                                                 gIncompatiblePciDeviceSupport, | ||||||
|                                                    PciIoDevice->Pci.Hdr.VendorId, |                                                 PciIoDevice->Pci.Hdr.VendorId, | ||||||
|                                                    PciIoDevice->Pci.Hdr.DeviceId, |                                                 PciIoDevice->Pci.Hdr.DeviceId, | ||||||
|                                                    PciIoDevice->Pci.Hdr.RevisionID, |                                                 PciIoDevice->Pci.Hdr.RevisionID, | ||||||
|                                                    PciIoDevice->Pci.Device.SubsystemVendorID, |                                                 PciIoDevice->Pci.Device.SubsystemVendorID, | ||||||
|                                                    PciIoDevice->Pci.Device.SubsystemID, |                                                 PciIoDevice->Pci.Device.SubsystemID, | ||||||
|                                                    &Configuration |                                                 &Configuration | ||||||
|                                                    ); |                                                 ); | ||||||
|  |  | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user