]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Pci: Display more information of PCIe devices
authorAbner Chang <abner.chang@amd.com>
Thu, 12 Jan 2023 05:14:17 +0000 (21:14 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Feb 2023 01:07:18 +0000 (01:07 +0000)
In V4: Update the copyright to 2023.
In V3: Add AMD copyright.
In V2: Remove the signed-off-by: Abner Chang

Display PCIe Vendor ID and Device ID in DEBUG message.

Signed-off-by: Jiangang He <jiangang.he@amd.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Garrett Kirkendall <garrett.kirkendall@amd.com>
Cc: Abner Chang <abner.chang@amd.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Acked-by: Michael D Kinney <michael.d.kinney@intel.com>
MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c

index 8eca85969580ca25e31c30d223a2dfc566139b69..6594b8eae83f71f0a2583154e58b7d215db6e9ac 100644 (file)
@@ -3,6 +3,7 @@
 \r
 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>\r
 (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
+Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -227,13 +228,15 @@ PciSearchDevice (
 \r
   DEBUG ((\r
     DEBUG_INFO,\r
-    "PciBus: Discovered %s @ [%02x|%02x|%02x]\n",\r
+    "PciBus: Discovered %s @ [%02x|%02x|%02x]  [VID = 0x%x, DID = 0x%0x]\n",\r
     IS_PCI_BRIDGE (Pci) ?     L"PPB" :\r
     IS_CARDBUS_BRIDGE (Pci) ? L"P2C" :\r
     L"PCI",\r
     Bus,\r
     Device,\r
-    Func\r
+    Func,\r
+    Pci->Hdr.VendorId,\r
+    Pci->Hdr.DeviceId\r
     ));\r
 \r
   if (!IS_PCI_BRIDGE (Pci)) {\r