audk/MdeModulePkg/Bus/Pci/XhciDxe
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
..
ComponentName.c MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
ComponentName.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UsbHcMem.c MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00
UsbHcMem.h MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00
Xhci.c MdeModulePkg/Bus: Fix XhciDxe Linker Issues 2023-12-06 23:52:13 +00:00
Xhci.h MdeModulePkg/XhciDxe: Use Performance Timer for XHCI Timeouts 2023-09-25 02:56:05 +00:00
XhciDxe.inf MdeModulePkg/XhciDxe: Use Performance Timer for XHCI Timeouts 2023-09-25 02:56:05 +00:00
XhciDxe.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciDxeExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00
XhciReg.c MdeModulePkg/XhciDxe: Use Performance Timer for XHCI Timeouts 2023-09-25 02:56:05 +00:00
XhciReg.h MdeModulePkg/Bus/Pci/XhciDxe: Check port is compatible before getting PSIV 2022-12-21 00:46:58 +00:00
XhciSched.c MdeModulePkg/Xhci: Skip size round up for TRB during address translation 2023-09-28 02:02:11 +00:00
XhciSched.h MdeModulePkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00