diff --git a/acs-drv/files/platform/pal_linux/files/common/include/pal_pcie_enum.h b/acs-drv/files/platform/pal_linux/files/common/include/pal_pcie_enum.h index da7d0a5d2151fdff8e1acd6a9b8b88dff01dc8d7..06db3a1c8117f8c8611af711d63ea40d7b52df7d 100644 --- a/acs-drv/files/platform/pal_linux/files/common/include/pal_pcie_enum.h +++ b/acs-drv/files/platform/pal_linux/files/common/include/pal_pcie_enum.h @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * Copyright (C) 2016-2018, 2021-2022, 2024, Arm Limited + * Copyright (C) 2016-2018, 2021-2022, 2024-2025, Arm Limited * * Author: Prasanth Pulla * @@ -58,6 +58,9 @@ pal_pci_write_config_byte(uint32_t bdf, uint8_t offset, uint8_t val); unsigned int pal_pcie_check_device_valid(unsigned int bdf); +unsigned int +pal_pcie_check_bus_valid(unsigned int bus_index); + void *pal_mem_calloc(unsigned int num, unsigned int size); diff --git a/acs-drv/files/platform/pal_linux/files/common/src/pal_pcie_enumeration.c b/acs-drv/files/platform/pal_linux/files/common/src/pal_pcie_enumeration.c index 582a07098ee704871adfbf297c59459518eb8919..57ff6172dcc1957289bab9967adc0555f43465d6 100644 --- a/acs-drv/files/platform/pal_linux/files/common/src/pal_pcie_enumeration.c +++ b/acs-drv/files/platform/pal_linux/files/common/src/pal_pcie_enumeration.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * Copyright (C) 2016-2018, 2021-2022, 2024, Arm Limited + * Copyright (C) 2016-2018, 2021-2022, 2024-2025, Arm Limited * * Author: Prasanth Pulla * @@ -185,3 +185,20 @@ pal_pcie_check_device_valid(unsigned int bdf) return 1; } + +/** + @brief This API is used as placeholder to check if the bus + is to be skipped for PCIe table creation + + @param bus_index + @return 1 if bus to be skipped else 0 +**/ +unsigned int +pal_pcie_check_bus_valid(unsigned int bus_index) +{ + /* Add Bus index to this function if PCIe table + creation need to be ignored for a bus + */ + + return 0; +}