Limit function read to 1 for single function device

Currently the service tries to access functions 0 to 7 for all devices
irrespective of if they are single function or multi function device.
This is not mandatory and and may cause corruption in some single
function devices. Limit the number of functions to check to 1 if the
device is single function device.

Change-Id: I41f088274f3ad8272b2b36e3cb527c61a6c374df
Signed-off-by: Nidhin MS <nidhin.ms@intel.com>
1 file changed
tree: e4db15211794a1cd1352a95d86ab55875a8fdac0
  1. include/
  2. service_files/
  3. src/
  4. utils/
  5. .clang-format
  6. CMakeLists.txt
  7. LICENSE
  8. OWNERS
  9. README.md
README.md

peci-pcie

The peci-pcie application uses the CPU PECI interface to get PCIe Device information for the system and shares it on D-Bus. The information from D-Bus is used by bmcweb to populate the PCIe Device resources in Redfish.