audk/MdeModulePkg/Bus/Pci
Nate DeSimone ff4c49a5ee MdeModulePkg/Bus: Fix XhciDxe Linker Issues
The DXE & MM standalone variant of AcpiTimerLib defines a global
named mPerformanceCounterFrequency. A global with an identical
name is also present in MdeModulePkg/Bus/Pci/XhciDxe/Xhci.c

Since XhciDxe has a dependency on TimerLib, this can cause link
errors due to the same symbol being defined twice if the platform
DSC chooses to use AcpiTimerLib as the TimerLib implementation for
any given platform.

To resolve this, I noted that some of the globals in Xhci.c are not
used outside of the Xhci.c compilation unit:

- mPerformanceCounterStartValue
- mPerformanceCounterEndValue
- mPerformanceCounterFrequency
- mPerformanceCounterValuesCached

I have changed the definition for all of these to static and added
an Xhci prefix. Since they are not used outside of the Xhci.c
compilation unit, there is no reason to have them exported as
globals.

Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2023-12-06 23:52:13 +00:00
..
EhciDxe MdeModulePkg/Bus/Pci/EhciDxe: Fix FORWARD_NULL Coverity issues 2023-07-17 02:19:45 +00:00
EhciPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IdeBusPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
IncompatiblePciDeviceSupportDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
NonDiscoverablePciDeviceDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
NvmExpressDxe Add the volatile keyword to NvmExpressDxe's Passthru CQ 2023-05-08 01:56:16 +00:00
NvmExpressPei MdeModulePkg/Bus/Pci/NvmExpressPei: Fix DEADCODE Coverity issue 2023-09-20 06:49:52 +00:00
PciBusDxe MdeModulePkg/PciBusDxe: Fix boot hang with faulty PCI Option ROM 2023-08-30 06:29:14 +00:00
PciHostBridgeDxe MdeModulePkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
PciSioSerialDxe MdeModulePkg: Fix spelling error in PciSioSerialDxe 2022-10-25 22:30:33 +00:00
SataControllerDxe MdeModulePkg/SataControllerDxe: Fix up ASSERTS (Private != NULL) 2023-06-01 18:08:33 +00:00
SdMmcPciHcDxe MdeModulePkg SdMmcPciHcDxe: SD/MMC capability debug print is incorrect 2023-05-29 04:37:03 +00:00
SdMmcPciHcPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UfsPciHcDxe MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UfsPciHcPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UhciDxe MdeModulePkg/Bus/Pci/UhciDxe: Fix FORWARD_NULL Coverity issues 2023-09-22 04:56:35 +00:00
UhciPei MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
XhciDxe MdeModulePkg/Bus: Fix XhciDxe Linker Issues 2023-12-06 23:52:13 +00:00
XhciPei MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00