Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Andrew Jeffery | 2abbce7 | 2023-10-18 10:17:35 +1030 | [diff] [blame^] | 3 | #include "common/instance_id.hpp" |
Deepak Kodihalli | d130e1a | 2020-06-17 05:55:32 -0500 | [diff] [blame] | 4 | #include "common/types.hpp" |
| 5 | #include "common/utils.hpp" |
Pavithra Barithaya | 3aec997 | 2020-12-14 01:55:44 -0600 | [diff] [blame] | 6 | #include "libpldmresponder/event_parser.hpp" |
Tom Joseph | b426860 | 2020-04-17 17:20:45 +0530 | [diff] [blame] | 7 | #include "libpldmresponder/pdr_utils.hpp" |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 8 | #include "requester/handler.hpp" |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 9 | |
George Liu | c453e16 | 2022-12-21 17:16:23 +0800 | [diff] [blame] | 10 | #include <libpldm/base.h> |
| 11 | #include <libpldm/platform.h> |
| 12 | |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 13 | #include <sdeventplus/event.hpp> |
Deepak Kodihalli | 8cb6f66 | 2020-04-10 02:55:43 -0500 | [diff] [blame] | 14 | #include <sdeventplus/source/event.hpp> |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 15 | |
Deepak Kodihalli | 7246e0c | 2020-07-08 06:40:18 -0500 | [diff] [blame] | 16 | #include <deque> |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 17 | #include <filesystem> |
George Liu | 6492f52 | 2020-06-16 10:34:05 +0800 | [diff] [blame] | 18 | #include <map> |
| 19 | #include <memory> |
| 20 | #include <vector> |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 21 | |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 22 | namespace pldm |
| 23 | { |
Deepak Kodihalli | 87514cc | 2020-04-16 09:08:38 -0500 | [diff] [blame] | 24 | using EntityType = uint16_t; |
Deepak Kodihalli | 8cb6f66 | 2020-04-10 02:55:43 -0500 | [diff] [blame] | 25 | // vector which would hold the PDR record handle data returned by |
| 26 | // pldmPDRRepositoryChgEvent event data |
| 27 | using ChangeEntry = uint32_t; |
Deepak Kodihalli | 7246e0c | 2020-07-08 06:40:18 -0500 | [diff] [blame] | 28 | using PDRRecordHandles = std::deque<ChangeEntry>; |
Deepak Kodihalli | 8cb6f66 | 2020-04-10 02:55:43 -0500 | [diff] [blame] | 29 | |
Tom Joseph | b426860 | 2020-04-17 17:20:45 +0530 | [diff] [blame] | 30 | /** @struct SensorEntry |
| 31 | * |
| 32 | * SensorEntry is a unique key which maps a sensorEventType request in the |
| 33 | * PlatformEventMessage command to a host sensor PDR. This struct is a key |
| 34 | * in a std::map, so implemented operator==and operator<. |
| 35 | */ |
| 36 | struct SensorEntry |
| 37 | { |
| 38 | pdr::TerminusID terminusID; |
| 39 | pdr::SensorID sensorID; |
| 40 | |
| 41 | bool operator==(const SensorEntry& e) const |
| 42 | { |
| 43 | return ((terminusID == e.terminusID) && (sensorID == e.sensorID)); |
| 44 | } |
| 45 | |
| 46 | bool operator<(const SensorEntry& e) const |
| 47 | { |
| 48 | return ((terminusID < e.terminusID) || |
| 49 | ((terminusID == e.terminusID) && (sensorID < e.sensorID))); |
| 50 | } |
| 51 | }; |
| 52 | |
| 53 | using HostStateSensorMap = std::map<SensorEntry, pdr::SensorInfo>; |
Sampa Misra | 868c879 | 2020-05-26 03:12:13 -0500 | [diff] [blame] | 54 | using PDRList = std::vector<std::vector<uint8_t>>; |
Tom Joseph | b426860 | 2020-04-17 17:20:45 +0530 | [diff] [blame] | 55 | |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 56 | /** @class HostPDRHandler |
| 57 | * @brief This class can fetch and process PDRs from host firmware |
| 58 | * @details Provides an API to fetch PDRs from the host firmware. Upon |
| 59 | * receiving the PDRs, they are stored into the BMC's primary PDR repo. |
| 60 | * Adjustments are made to entity association PDRs received from the host, |
| 61 | * because they need to be assimilated into the BMC's entity association |
| 62 | * tree. A PLDM event containing the record handles of the updated entity |
| 63 | * association PDRs is sent to the host. |
| 64 | */ |
| 65 | class HostPDRHandler |
| 66 | { |
| 67 | public: |
| 68 | HostPDRHandler() = delete; |
| 69 | HostPDRHandler(const HostPDRHandler&) = delete; |
| 70 | HostPDRHandler(HostPDRHandler&&) = delete; |
| 71 | HostPDRHandler& operator=(const HostPDRHandler&) = delete; |
| 72 | HostPDRHandler& operator=(HostPDRHandler&&) = delete; |
| 73 | ~HostPDRHandler() = default; |
| 74 | |
Manojkiran Eda | 60e1fe9 | 2021-10-08 15:58:16 +0530 | [diff] [blame] | 75 | using TerminusInfo = |
| 76 | std::tuple<pdr::TerminusID, pdr::EID, pdr::TerminusValidity>; |
| 77 | using TLPDRMap = std::map<pdr::TerminusHandle, TerminusInfo>; |
Sampa Misra | 868c879 | 2020-05-26 03:12:13 -0500 | [diff] [blame] | 78 | |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 79 | /** @brief Constructor |
| 80 | * @param[in] mctp_fd - fd of MCTP communications socket |
| 81 | * @param[in] mctp_eid - MCTP EID of host firmware |
| 82 | * @param[in] event - reference of main event loop of pldmd |
| 83 | * @param[in] repo - pointer to BMC's primary PDR repo |
Pavithra Barithaya | 3aec997 | 2020-12-14 01:55:44 -0600 | [diff] [blame] | 84 | * @param[in] eventsJsonDir - directory path which has the config JSONs |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 85 | * @param[in] entityTree - Pointer to BMC and Host entity association tree |
| 86 | * @param[in] bmcEntityTree - pointer to BMC's entity association tree |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 87 | * @param[in] instanceIdDb - reference to an InstanceIdDb object |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 88 | * @param[in] handler - PLDM request handler |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 89 | */ |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 90 | explicit HostPDRHandler( |
| 91 | int mctp_fd, uint8_t mctp_eid, sdeventplus::Event& event, |
| 92 | pldm_pdr* repo, const std::string& eventsJsonsDir, |
| 93 | pldm_entity_association_tree* entityTree, |
Brad Bishop | 5079ac4 | 2021-08-19 18:35:06 -0400 | [diff] [blame] | 94 | pldm_entity_association_tree* bmcEntityTree, |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 95 | pldm::InstanceIdDb& instanceIdDb, |
Tom Joseph | e5268cd | 2021-09-07 13:04:03 +0530 | [diff] [blame] | 96 | pldm::requester::Handler<pldm::requester::Request>* handler); |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 97 | |
| 98 | /** @brief fetch PDRs from host firmware. See @class. |
| 99 | * @param[in] recordHandles - list of record handles pointing to host's |
| 100 | * PDRs that need to be fetched. |
| 101 | */ |
Pavithra Barithaya | e8beb89 | 2020-04-14 23:24:25 -0500 | [diff] [blame] | 102 | |
Deepak Kodihalli | 7246e0c | 2020-07-08 06:40:18 -0500 | [diff] [blame] | 103 | void fetchPDR(PDRRecordHandles&& recordHandles); |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 104 | |
Pavithra Barithaya | e8beb89 | 2020-04-14 23:24:25 -0500 | [diff] [blame] | 105 | /** @brief Send a PLDM event to host firmware containing a list of record |
| 106 | * handles of PDRs that the host firmware has to fetch. |
| 107 | * @param[in] pdrTypes - list of PDR types that need to be looked up in the |
| 108 | * BMC repo |
| 109 | * @param[in] eventDataFormat - format for PDRRepositoryChgEvent in DSP0248 |
| 110 | */ |
| 111 | void sendPDRRepositoryChgEvent(std::vector<uint8_t>&& pdrTypes, |
| 112 | uint8_t eventDataFormat); |
| 113 | |
Tom Joseph | b426860 | 2020-04-17 17:20:45 +0530 | [diff] [blame] | 114 | /** @brief Lookup host sensor info corresponding to requested SensorEntry |
| 115 | * |
| 116 | * @param[in] entry - TerminusID and SensorID |
| 117 | * |
| 118 | * @return SensorInfo corresponding to the input paramter SensorEntry |
| 119 | * throw std::out_of_range exception if not found |
| 120 | */ |
| 121 | const pdr::SensorInfo& lookupSensorInfo(const SensorEntry& entry) const |
| 122 | { |
| 123 | return sensorMap.at(entry); |
| 124 | } |
| 125 | |
Pavithra Barithaya | 3aec997 | 2020-12-14 01:55:44 -0600 | [diff] [blame] | 126 | /** @brief Handles state sensor event |
| 127 | * |
| 128 | * @param[in] entry - state sensor entry |
| 129 | * @param[in] state - event state |
| 130 | * |
| 131 | * @return PLDM completion code |
| 132 | */ |
Brad Bishop | 5079ac4 | 2021-08-19 18:35:06 -0400 | [diff] [blame] | 133 | int handleStateSensorEvent( |
| 134 | const pldm::responder::events::StateSensorEntry& entry, |
| 135 | pdr::EventState state); |
Pavithra Barithaya | 3aec997 | 2020-12-14 01:55:44 -0600 | [diff] [blame] | 136 | |
Sampa Misra | 868c879 | 2020-05-26 03:12:13 -0500 | [diff] [blame] | 137 | /** @brief Parse state sensor PDRs and populate the sensorMap lookup data |
| 138 | * structure |
| 139 | * |
| 140 | * @param[in] stateSensorPDRs - host state sensor PDRs |
Sampa Misra | 868c879 | 2020-05-26 03:12:13 -0500 | [diff] [blame] | 141 | * |
| 142 | */ |
Manojkiran Eda | 60e1fe9 | 2021-10-08 15:58:16 +0530 | [diff] [blame] | 143 | void parseStateSensorPDRs(const PDRList& stateSensorPDRs); |
Sampa Misra | 868c879 | 2020-05-26 03:12:13 -0500 | [diff] [blame] | 144 | |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 145 | /** @brief this function sends a GetPDR request to Host firmware. |
| 146 | * And processes the PDRs based on type |
| 147 | * |
| 148 | * @param[in] - nextRecordHandle - the next record handle to ask for |
| 149 | */ |
| 150 | void getHostPDR(uint32_t nextRecordHandle = 0); |
| 151 | |
Sampa Misra | f9ba8c1 | 2021-08-06 00:33:47 -0500 | [diff] [blame] | 152 | /** @brief set the Host firmware condition when pldmd starts |
sampmisr | 6decfc1 | 2021-03-02 11:07:36 +0530 | [diff] [blame] | 153 | */ |
Sampa Misra | f9ba8c1 | 2021-08-06 00:33:47 -0500 | [diff] [blame] | 154 | void setHostFirmwareCondition(); |
sampmisr | 6decfc1 | 2021-03-02 11:07:36 +0530 | [diff] [blame] | 155 | |
Pavithra Barithaya | 4f2538a | 2021-03-05 07:32:15 -0600 | [diff] [blame] | 156 | /** @brief set HostSensorStates when pldmd starts or restarts |
| 157 | * and updates the D-Bus property |
| 158 | * @param[in] stateSensorPDRs - host state sensor PDRs |
Pavithra Barithaya | 4f2538a | 2021-03-05 07:32:15 -0600 | [diff] [blame] | 159 | */ |
Manojkiran Eda | 60e1fe9 | 2021-10-08 15:58:16 +0530 | [diff] [blame] | 160 | void setHostSensorState(const PDRList& stateSensorPDRs); |
Pavithra Barithaya | 4f2538a | 2021-03-05 07:32:15 -0600 | [diff] [blame] | 161 | |
Pavithra Barithaya | ae5c97e | 2022-08-29 02:57:59 -0500 | [diff] [blame] | 162 | /** @brief whether we received PLDM_RECORDS_MODIFIED event data operation |
| 163 | * from host |
| 164 | */ |
| 165 | bool isHostPdrModified = false; |
| 166 | |
sampmisr | 6decfc1 | 2021-03-02 11:07:36 +0530 | [diff] [blame] | 167 | /** @brief check whether Host is running when pldmd starts |
| 168 | */ |
| 169 | bool isHostUp(); |
| 170 | |
Manojkiran Eda | 60e1fe9 | 2021-10-08 15:58:16 +0530 | [diff] [blame] | 171 | /** @brief map that captures various terminus information **/ |
| 172 | TLPDRMap tlPDRInfo; |
| 173 | |
sampmisr | 6decfc1 | 2021-03-02 11:07:36 +0530 | [diff] [blame] | 174 | private: |
| 175 | /** @brief deferred function to fetch PDR from Host, scheduled to work on |
| 176 | * the event loop. The PDR exchg with the host is async. |
| 177 | * @param[in] source - sdeventplus event source |
| 178 | */ |
| 179 | void _fetchPDR(sdeventplus::source::EventBase& source); |
| 180 | |
Deepak Kodihalli | 87514cc | 2020-04-16 09:08:38 -0500 | [diff] [blame] | 181 | /** @brief Merge host firmware's entity association PDRs into BMC's |
| 182 | * @details A merge operation involves adding a pldm_entity under the |
| 183 | * appropriate parent, and updating container ids. |
| 184 | * @param[in] pdr - entity association pdr |
| 185 | */ |
| 186 | void mergeEntityAssociations(const std::vector<uint8_t>& pdr); |
| 187 | |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 188 | /** @brief process the Host's PDR and add to BMC's PDR repo |
| 189 | * @param[in] eid - MCTP id of Host |
| 190 | * @param[in] response - response from Host for GetPDR |
| 191 | * @param[in] respMsgLen - response message length |
| 192 | */ |
| 193 | void processHostPDRs(mctp_eid_t eid, const pldm_msg* response, |
| 194 | size_t respMsgLen); |
| 195 | |
| 196 | /** @brief send PDR Repo change after merging Host's PDR to BMC PDR repo |
| 197 | * @param[in] source - sdeventplus event source |
| 198 | */ |
| 199 | void _processPDRRepoChgEvent(sdeventplus::source::EventBase& source); |
| 200 | |
| 201 | /** @brief fetch the next PDR based on the record handle sent by Host |
| 202 | * @param[in] nextRecordHandle - next record handle |
| 203 | * @param[in] source - sdeventplus event source |
| 204 | */ |
| 205 | void _processFetchPDREvent(uint32_t nextRecordHandle, |
| 206 | sdeventplus::source::EventBase& source); |
| 207 | |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 208 | /** @brief Get FRU record table metadata by remote PLDM terminus |
| 209 | * |
| 210 | * @param[out] uint16_t - total table records |
| 211 | */ |
| 212 | void getFRURecordTableMetadataByRemote(const PDRList& fruRecordSetPDRs); |
| 213 | |
| 214 | /** @brief Set Location Code in the dbus objects |
| 215 | * |
| 216 | * @param[in] fruRecordSetPDRs - the Fru Record set PDR's |
| 217 | * @param[in] fruRecordData - the Fru Record Data |
| 218 | */ |
| 219 | |
| 220 | void setFRUDataOnDBus( |
| 221 | const PDRList& fruRecordSetPDRs, |
| 222 | const std::vector<responder::pdr_utils::FruRecordDataFormat>& |
| 223 | fruRecordData); |
| 224 | |
| 225 | /** @brief Get FRU record table by remote PLDM terminus |
| 226 | * |
| 227 | * @param[in] fruRecordSetPDRs - the Fru Record set PDR's |
| 228 | * @param[in] totalTableRecords - the Number of total table records |
| 229 | * @return |
| 230 | */ |
| 231 | void getFRURecordTableByRemote(const PDRList& fruRecordSetPDRs, |
| 232 | uint16_t totalTableRecords); |
| 233 | |
| 234 | /** @brief Create Dbus objects by remote PLDM entity Fru PDRs |
| 235 | * |
| 236 | * @param[in] fruRecordSetPDRs - fru record set pdr |
| 237 | * |
| 238 | * @ return |
| 239 | */ |
| 240 | void createDbusObjects(const PDRList& fruRecordSetPDRs); |
| 241 | |
| 242 | /** @brief Get FRU Record Set Identifier from FRU Record data Format |
| 243 | * @param[in] fruRecordSetPDRs - fru record set pdr |
| 244 | * @param[in] entity - PLDM entity information |
| 245 | * @return |
| 246 | */ |
| 247 | std::optional<uint16_t> getRSI(const PDRList& fruRecordSetPDRs, |
| 248 | const pldm_entity& entity); |
| 249 | |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 250 | /** @brief fd of MCTP communications socket */ |
| 251 | int mctp_fd; |
| 252 | /** @brief MCTP EID of host firmware */ |
| 253 | uint8_t mctp_eid; |
| 254 | /** @brief reference of main event loop of pldmd, primarily used to schedule |
| 255 | * work. |
| 256 | */ |
| 257 | sdeventplus::Event& event; |
| 258 | /** @brief pointer to BMC's primary PDR repo, host PDRs are added here */ |
| 259 | pldm_pdr* repo; |
Pavithra Barithaya | 3aec997 | 2020-12-14 01:55:44 -0600 | [diff] [blame] | 260 | |
Brad Bishop | 5079ac4 | 2021-08-19 18:35:06 -0400 | [diff] [blame] | 261 | pldm::responder::events::StateSensorHandler stateSensorHandler; |
Sampa Misra | c073a20 | 2021-05-08 10:56:05 -0500 | [diff] [blame] | 262 | /** @brief Pointer to BMC's and Host's entity association tree */ |
Deepak Kodihalli | 87514cc | 2020-04-16 09:08:38 -0500 | [diff] [blame] | 263 | pldm_entity_association_tree* entityTree; |
Sampa Misra | c073a20 | 2021-05-08 10:56:05 -0500 | [diff] [blame] | 264 | |
| 265 | /** @brief Pointer to BMC's entity association tree */ |
| 266 | pldm_entity_association_tree* bmcEntityTree; |
| 267 | |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 268 | /** @brief reference to Instance ID database object, used to obtain PLDM |
| 269 | * instance IDs |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 270 | */ |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 271 | pldm::InstanceIdDb& instanceIdDb; |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 272 | |
| 273 | /** @brief PLDM request handler */ |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 274 | pldm::requester::Handler<pldm::requester::Request>* handler; |
Tom Joseph | 74f27c7 | 2021-05-16 07:58:53 -0700 | [diff] [blame] | 275 | |
Deepak Kodihalli | 8cb6f66 | 2020-04-10 02:55:43 -0500 | [diff] [blame] | 276 | /** @brief sdeventplus event source */ |
| 277 | std::unique_ptr<sdeventplus::source::Defer> pdrFetchEvent; |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 278 | std::unique_ptr<sdeventplus::source::Defer> deferredFetchPDREvent; |
| 279 | std::unique_ptr<sdeventplus::source::Defer> deferredPDRRepoChgEvent; |
| 280 | |
Deepak Kodihalli | 8cb6f66 | 2020-04-10 02:55:43 -0500 | [diff] [blame] | 281 | /** @brief list of PDR record handles pointing to host's PDRs */ |
| 282 | PDRRecordHandles pdrRecordHandles; |
Deepak Kodihalli | 87514cc | 2020-04-16 09:08:38 -0500 | [diff] [blame] | 283 | /** @brief maps an entity type to parent pldm_entity from the BMC's entity |
| 284 | * association tree |
| 285 | */ |
Pavithra Barithaya | ae5c97e | 2022-08-29 02:57:59 -0500 | [diff] [blame] | 286 | |
| 287 | /** @brief list of PDR record handles modified pointing to host PDRs */ |
| 288 | PDRRecordHandles modifiedPDRRecordHandles; |
| 289 | |
Deepak Kodihalli | 87514cc | 2020-04-16 09:08:38 -0500 | [diff] [blame] | 290 | std::map<EntityType, pldm_entity> parents; |
Deepak Kodihalli | 6b1d1ca | 2020-04-27 07:24:51 -0500 | [diff] [blame] | 291 | /** @brief D-Bus property changed signal match */ |
Patrick Williams | 84b790c | 2022-07-22 19:26:56 -0500 | [diff] [blame] | 292 | std::unique_ptr<sdbusplus::bus::match_t> hostOffMatch; |
Tom Joseph | b426860 | 2020-04-17 17:20:45 +0530 | [diff] [blame] | 293 | |
| 294 | /** @brief sensorMap is a lookup data structure that is build from the |
| 295 | * hostPDR that speeds up the lookup of <TerminusID, SensorID> in |
| 296 | * PlatformEventMessage command request. |
| 297 | */ |
| 298 | HostStateSensorMap sensorMap; |
sampmisr | 6decfc1 | 2021-03-02 11:07:36 +0530 | [diff] [blame] | 299 | |
| 300 | /** @brief whether response received from Host */ |
| 301 | bool responseReceived; |
George Liu | acf2c8c | 2021-05-10 14:08:52 +0800 | [diff] [blame] | 302 | |
| 303 | /** @brief variable that captures if the first entity association PDR |
| 304 | * from host is merged into the BMC tree |
| 305 | */ |
| 306 | bool mergedHostParents; |
| 307 | |
| 308 | /** @brief whether timed out waiting for a response from Host */ |
| 309 | bool timeOut; |
| 310 | |
| 311 | /** @brief request message instance id */ |
| 312 | uint8_t insId; |
George Liu | df9a6d3 | 2020-12-22 16:27:16 +0800 | [diff] [blame] | 313 | |
| 314 | /** @brief maps an object path to pldm_entity from the BMC's entity |
| 315 | * association tree |
| 316 | */ |
| 317 | utils::ObjectPathMaps objPathMap; |
| 318 | |
| 319 | /** @brief maps an entity name to map, maps to entity name to pldm_entity |
| 320 | */ |
| 321 | utils::EntityAssociations entityAssociations; |
George Liu | 682ee18 | 2020-12-25 15:24:33 +0800 | [diff] [blame] | 322 | |
| 323 | /** @brief the vector of FRU Record Data Format |
| 324 | */ |
| 325 | std::vector<responder::pdr_utils::FruRecordDataFormat> fruRecordData; |
| 326 | |
| 327 | /** @brief Object path and entity association and is only loaded once |
| 328 | */ |
| 329 | bool objPathEntityAssociation; |
Pavithra Barithaya | 51efaf8 | 2020-04-02 02:42:27 -0500 | [diff] [blame] | 330 | }; |
| 331 | |
| 332 | } // namespace pldm |