\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
\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
&Data32\r
);\r
if ((Data32 & EFI_PCIE_CAPABILITY_DEVICE_CAPABILITIES_2_ARI_FORWARDING) != 0) {\r
+ PciIoDevice->IsAriEnabled = TRUE;\r
//\r
// ARI forward support in bridge, so enable it.\r
//\r
//\r
// Calculate ReservedBusNum for this PF\r
//\r
- PciIoDevice->ReservedBusNum = (UINT16)(EFI_PCI_BUS_OF_RID (LastVF) - Bus + 1);\r
+ PciIoDevice->ReservedBusNum = (UINT16)(EFI_PCI_BUS_OF_RID (LastVF) - Bus);\r
}\r
\r
DEBUG ((\r