]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieGenerator.c
DynamicTablesPkg: AcpiSsdtPcieLibArm : Add UID to slot creation
[mirror_edk2.git] / DynamicTablesPkg / Library / Acpi / Arm / AcpiSsdtPcieLibArm / SsdtPcieGenerator.c
index dd75fc27e60e92919804dc195143aed99d9336bf..d82f071e853e4bcaea69165ee58fa01346e0a081 100644 (file)
@@ -298,6 +298,7 @@ GeneratePciDeviceInfo (
   @param [in]       CfgMgrProtocol  Pointer to the Configuration Manager\r
                                     Protocol interface.\r
   @param [in]       PciInfo         Pci device information.\r
+  @param [in]       Uid             Unique Id of the Pci device.\r
   @param [in, out]  PciNode         Pci node to amend.\r
 \r
   @retval EFI_SUCCESS             The function completed successfully.\r
@@ -311,6 +312,7 @@ GeneratePrt (
   IN            ACPI_PCI_GENERATOR                            *Generator,\r
   IN      CONST EDKII_CONFIGURATION_MANAGER_PROTOCOL  *CONST  CfgMgrProtocol,\r
   IN      CONST CM_ARM_PCI_CONFIG_SPACE_INFO                  *PciInfo,\r
+  IN            UINT32                                        Uid,\r
   IN  OUT       AML_OBJECT_NODE_HANDLE                        PciNode\r
   )\r
 {\r
@@ -419,7 +421,7 @@ GeneratePrt (
   PrtNode = NULL;\r
 \r
   // Generate the Pci slots once all the device have been added.\r
-  Status = GeneratePciSlots (PciInfo, &Generator->DeviceTable, PciNode);\r
+  Status = GeneratePciSlots (PciInfo, &Generator->DeviceTable, Uid, PciNode);\r
   if (EFI_ERROR (Status)) {\r
     ASSERT (0);\r
     goto exit_handler;\r
@@ -814,6 +816,7 @@ GeneratePciDevice (
                Generator,\r
                CfgMgrProtocol,\r
                PciInfo,\r
+               Uid,\r
                PciNode\r
                );\r
     if (EFI_ERROR (Status)) {\r