Support "GenerationInUse" PCIe device property
This commit adds support for PCIe device property "GenerationInUse",
and let management APIs like redfish can expose the information.
New property:
GenerationInUse : The PCIe interface generation in use by the device.
Tested:
Ensure DBus is created and the value is correct of new property.
Dbus Sample output:
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
[...]
xyz.openbmc_project.PCIe.Device interface - - -
.DeviceType property s "SingleFunction" emits-change
.Function0ClassCode property s "0x060400" emits-change
[...]
.GenerationInUse property s "xyz.openbmc_project.Inventory.Item.PCIeSlot.Generations.Gen2" emits-change
Signed-off-by: Spencer Ku <Spencer.Ku@quantatw.com>
Change-Id: I2273b9529a16ca0229c5d0ad17befcd3f764a188
2 files changed