Add support for PCIe devices with UID > 0xF.
This is done by using the next value in the name so
PCI5, PC26, etc
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
\r
// Write the name of the PCI device.\r
CopyMem (AslName, "PCIx", AML_NAME_SEG_SIZE + 1);\r
\r
// Write the name of the PCI device.\r
CopyMem (AslName, "PCIx", AML_NAME_SEG_SIZE + 1);\r
- AslName[AML_NAME_SEG_SIZE - 1] = AsciiFromHex (Uid);\r
+ AslName[AML_NAME_SEG_SIZE - 1] = AsciiFromHex (Uid & 0xF);\r
+ if (Uid > 0xF) {\r
+ AslName[AML_NAME_SEG_SIZE - 2] = AsciiFromHex ((Uid >> 4) & 0xF);\r
+ }\r
\r
// ASL: Device (PCIx) {}\r
Status = AmlCodeGenDevice (AslName, ScopeNode, &PciNode);\r
\r
// ASL: Device (PCIx) {}\r
Status = AmlCodeGenDevice (AslName, ScopeNode, &PciNode);\r
Corresponding changes would be needed to support the Name and\r
UID fields describing the Pci root complexes.\r
*/\r
Corresponding changes would be needed to support the Name and\r
UID fields describing the Pci root complexes.\r
*/\r
-#define MAX_PCI_ROOT_COMPLEXES_SUPPORTED 16\r
+#define MAX_PCI_ROOT_COMPLEXES_SUPPORTED 256\r
\r
// _SB scope of the AML namespace.\r
#define SB_SCOPE "\\_SB_"\r
\r
// _SB scope of the AML namespace.\r
#define SB_SCOPE "\\_SB_"\r