fw_update: InventoryManager: Add Downstream Devices Support
In DSP0267_1.1.0, a Firmware Device can supports one or more
Downstream Devices to perform get firmware version or firmware
update. Add discovery of Downstream Devices, query the Downstream
Devices Descriptor if the Firmware Device support it.
The code is developed based on DSP0267_1.1.0 Section 10.3
QueryDownstreamDevices command format, Section 10.4
QueryDownstreamIdentifiers command format.
Tested: Add unit tests for the new command handlers.
Change-Id: Iad28b898b5a0799b2b145d38958bba78e9719f4e
Signed-off-by: Unive Tien <unive.tien.wiwynn@gmail.com>
diff --git a/fw-update/manager.hpp b/fw-update/manager.hpp
index be45eb7..4d2a976 100644
--- a/fw-update/manager.hpp
+++ b/fw-update/manager.hpp
@@ -40,7 +40,8 @@
explicit Manager(Event& event,
requester::Handler<requester::Request>& handler,
pldm::InstanceIdDb& instanceIdDb) :
- inventoryMgr(handler, instanceIdDb, descriptorMap, componentInfoMap),
+ inventoryMgr(handler, instanceIdDb, descriptorMap,
+ downstreamDescriptorMap, componentInfoMap),
updateManager(event, handler, instanceIdDb, descriptorMap,
componentInfoMap)
{}
@@ -90,6 +91,10 @@
/** Descriptor information of all the discovered MCTP endpoints */
DescriptorMap descriptorMap;
+ /** Downstream descriptor information of all the discovered MCTP endpoints
+ */
+ DownstreamDescriptorMap downstreamDescriptorMap;
+
/** Component information of all the discovered MCTP endpoints */
ComponentInfoMap componentInfoMap;