Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 1 | #include "bios.hpp" |
| 2 | |
Deepak Kodihalli | d130e1a | 2020-06-17 05:55:32 -0500 | [diff] [blame] | 3 | #include "common/utils.hpp" |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 4 | |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 5 | #include <time.h> |
| 6 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 7 | #include <array> |
| 8 | #include <chrono> |
| 9 | #include <ctime> |
Sampa Misra | aa8ae72 | 2019-12-12 03:20:40 -0600 | [diff] [blame] | 10 | #include <iostream> |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 11 | #include <stdexcept> |
| 12 | #include <string> |
| 13 | #include <variant> |
| 14 | #include <vector> |
| 15 | |
Brad Bishop | 5079ac4 | 2021-08-19 18:35:06 -0400 | [diff] [blame] | 16 | using namespace pldm::utils; |
| 17 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 18 | namespace pldm |
| 19 | { |
| 20 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 21 | namespace responder |
| 22 | { |
| 23 | |
| 24 | namespace utils |
| 25 | { |
| 26 | |
| 27 | void epochToBCDTime(uint64_t timeSec, uint8_t& seconds, uint8_t& minutes, |
| 28 | uint8_t& hours, uint8_t& day, uint8_t& month, |
| 29 | uint16_t& year) |
| 30 | { |
| 31 | auto t = time_t(timeSec); |
| 32 | auto time = localtime(&t); |
| 33 | |
George Liu | 8340957 | 2019-12-24 18:42:54 +0800 | [diff] [blame] | 34 | seconds = pldm::utils::decimalToBcd(time->tm_sec); |
| 35 | minutes = pldm::utils::decimalToBcd(time->tm_min); |
| 36 | hours = pldm::utils::decimalToBcd(time->tm_hour); |
| 37 | day = pldm::utils::decimalToBcd(time->tm_mday); |
| 38 | month = pldm::utils::decimalToBcd(time->tm_mon + |
| 39 | 1); // The number of months in the range |
| 40 | // 0 to 11.PLDM expects range 1 to 12 |
| 41 | year = pldm::utils::decimalToBcd(time->tm_year + |
| 42 | 1900); // The number of years since 1900 |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 43 | } |
| 44 | |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 45 | std::time_t timeToEpoch(uint8_t seconds, uint8_t minutes, uint8_t hours, |
| 46 | uint8_t day, uint8_t month, uint16_t year) |
| 47 | { |
| 48 | struct std::tm stm; |
| 49 | |
| 50 | stm.tm_year = year - 1900; |
| 51 | stm.tm_mon = month - 1; |
| 52 | stm.tm_mday = day; |
| 53 | stm.tm_hour = hours; |
| 54 | stm.tm_min = minutes; |
| 55 | stm.tm_sec = seconds; |
| 56 | stm.tm_isdst = -1; |
| 57 | |
| 58 | // It will get the time in seconds since |
| 59 | // Epoch, 1970.1.1 00:00:00 +0000,UTC. |
| 60 | return timegm(&stm); |
| 61 | } |
| 62 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 63 | } // namespace utils |
| 64 | |
Deepak Kodihalli | bc669f1 | 2019-11-28 08:52:07 -0600 | [diff] [blame] | 65 | namespace bios |
| 66 | { |
| 67 | |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 68 | using EpochTimeUS = uint64_t; |
| 69 | |
| 70 | DBusHandler dbusHandler; |
| 71 | |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 72 | Handler::Handler(int fd, uint8_t eid, dbus_api::Requester* requester, |
| 73 | pldm::requester::Handler<pldm::requester::Request>* handler) : |
Tom Joseph | 7f839f9 | 2020-09-21 10:20:44 +0530 | [diff] [blame] | 74 | biosConfig(BIOS_JSONS_DIR, BIOS_TABLES_DIR, &dbusHandler, fd, eid, |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 75 | requester, handler) |
Deepak Kodihalli | d9fb152 | 2019-11-28 10:06:34 -0600 | [diff] [blame] | 76 | { |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 77 | biosConfig.removeTables(); |
| 78 | biosConfig.buildTables(); |
| 79 | |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 80 | handlers.emplace(PLDM_SET_DATE_TIME, |
| 81 | [this](const pldm_msg* request, size_t payloadLength) { |
| 82 | return this->setDateTime(request, payloadLength); |
| 83 | }); |
Deepak Kodihalli | d9fb152 | 2019-11-28 10:06:34 -0600 | [diff] [blame] | 84 | handlers.emplace(PLDM_GET_DATE_TIME, |
| 85 | [this](const pldm_msg* request, size_t payloadLength) { |
| 86 | return this->getDateTime(request, payloadLength); |
| 87 | }); |
| 88 | handlers.emplace(PLDM_GET_BIOS_TABLE, |
| 89 | [this](const pldm_msg* request, size_t payloadLength) { |
| 90 | return this->getBIOSTable(request, payloadLength); |
| 91 | }); |
George Liu | 1b180d8 | 2020-07-23 14:01:58 +0800 | [diff] [blame] | 92 | handlers.emplace(PLDM_SET_BIOS_TABLE, |
| 93 | [this](const pldm_msg* request, size_t payloadLength) { |
| 94 | return this->setBIOSTable(request, payloadLength); |
| 95 | }); |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 96 | handlers.emplace(PLDM_GET_BIOS_ATTRIBUTE_CURRENT_VALUE_BY_HANDLE, |
| 97 | [this](const pldm_msg* request, size_t payloadLength) { |
| 98 | return this->getBIOSAttributeCurrentValueByHandle( |
| 99 | request, payloadLength); |
| 100 | }); |
John Wang | 4217488 | 2019-12-20 14:56:59 +0800 | [diff] [blame] | 101 | handlers.emplace(PLDM_SET_BIOS_ATTRIBUTE_CURRENT_VALUE, |
| 102 | [this](const pldm_msg* request, size_t payloadLength) { |
| 103 | return this->setBIOSAttributeCurrentValue( |
| 104 | request, payloadLength); |
| 105 | }); |
Deepak Kodihalli | d9fb152 | 2019-11-28 10:06:34 -0600 | [diff] [blame] | 106 | } |
| 107 | |
Deepak Kodihalli | bc669f1 | 2019-11-28 08:52:07 -0600 | [diff] [blame] | 108 | Response Handler::getDateTime(const pldm_msg* request, size_t /*payloadLength*/) |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 109 | { |
| 110 | uint8_t seconds = 0; |
| 111 | uint8_t minutes = 0; |
| 112 | uint8_t hours = 0; |
| 113 | uint8_t day = 0; |
| 114 | uint8_t month = 0; |
| 115 | uint16_t year = 0; |
| 116 | |
| 117 | constexpr auto timeInterface = "xyz.openbmc_project.Time.EpochTime"; |
George Liu | fd97264 | 2020-04-12 12:08:23 +0800 | [diff] [blame] | 118 | constexpr auto bmcTimePath = "/xyz/openbmc_project/time/bmc"; |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 119 | Response response(sizeof(pldm_msg_hdr) + PLDM_GET_DATE_TIME_RESP_BYTES, 0); |
| 120 | auto responsePtr = reinterpret_cast<pldm_msg*>(response.data()); |
George Liu | 782d37f | 2020-01-24 09:02:17 +0800 | [diff] [blame] | 121 | EpochTimeUS timeUsec; |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 122 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 123 | try |
| 124 | { |
George Liu | 782d37f | 2020-01-24 09:02:17 +0800 | [diff] [blame] | 125 | timeUsec = pldm::utils::DBusHandler().getDbusProperty<EpochTimeUS>( |
George Liu | fd97264 | 2020-04-12 12:08:23 +0800 | [diff] [blame] | 126 | bmcTimePath, "Elapsed", timeInterface); |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 127 | } |
Patrick Williams | 84b790c | 2022-07-22 19:26:56 -0500 | [diff] [blame] | 128 | catch (const sdbusplus::exception_t& e) |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 129 | { |
George Liu | fd97264 | 2020-04-12 12:08:23 +0800 | [diff] [blame] | 130 | std::cerr << "Error getting time, PATH=" << bmcTimePath |
Sampa Misra | aa8ae72 | 2019-12-12 03:20:40 -0600 | [diff] [blame] | 131 | << " TIME INTERACE=" << timeInterface << "\n"; |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 132 | |
George Liu | fb8611d | 2019-12-06 10:14:15 +0800 | [diff] [blame] | 133 | return CmdHandler::ccOnlyResponse(request, PLDM_ERROR); |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 134 | } |
| 135 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 136 | uint64_t timeSec = std::chrono::duration_cast<std::chrono::seconds>( |
| 137 | std::chrono::microseconds(timeUsec)) |
| 138 | .count(); |
| 139 | |
Deepak Kodihalli | bc669f1 | 2019-11-28 08:52:07 -0600 | [diff] [blame] | 140 | pldm::responder::utils::epochToBCDTime(timeSec, seconds, minutes, hours, |
| 141 | day, month, year); |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 142 | |
George Liu | fb8611d | 2019-12-06 10:14:15 +0800 | [diff] [blame] | 143 | auto rc = encode_get_date_time_resp(request->hdr.instance_id, PLDM_SUCCESS, |
| 144 | seconds, minutes, hours, day, month, |
| 145 | year, responsePtr); |
| 146 | if (rc != PLDM_SUCCESS) |
| 147 | { |
| 148 | return ccOnlyResponse(request, rc); |
| 149 | } |
| 150 | |
vkaverap | a6575b8 | 2019-04-03 05:33:52 -0500 | [diff] [blame] | 151 | return response; |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 152 | } |
| 153 | |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 154 | Response Handler::setDateTime(const pldm_msg* request, size_t payloadLength) |
| 155 | { |
| 156 | uint8_t seconds = 0; |
| 157 | uint8_t minutes = 0; |
| 158 | uint8_t hours = 0; |
| 159 | uint8_t day = 0; |
| 160 | uint8_t month = 0; |
| 161 | uint16_t year = 0; |
| 162 | std::time_t timeSec; |
| 163 | |
| 164 | constexpr auto setTimeInterface = "xyz.openbmc_project.Time.EpochTime"; |
George Liu | fd97264 | 2020-04-12 12:08:23 +0800 | [diff] [blame] | 165 | constexpr auto setTimePath = "/xyz/openbmc_project/time/bmc"; |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 166 | constexpr auto timeSetPro = "Elapsed"; |
| 167 | |
| 168 | auto rc = decode_set_date_time_req(request, payloadLength, &seconds, |
| 169 | &minutes, &hours, &day, &month, &year); |
| 170 | if (rc != PLDM_SUCCESS) |
| 171 | { |
| 172 | return ccOnlyResponse(request, rc); |
| 173 | } |
| 174 | timeSec = pldm::responder::utils::timeToEpoch(seconds, minutes, hours, day, |
| 175 | month, year); |
| 176 | uint64_t timeUsec = std::chrono::duration_cast<std::chrono::microseconds>( |
| 177 | std::chrono::seconds(timeSec)) |
| 178 | .count(); |
George Liu | 1e44c73 | 2020-02-28 20:20:06 +0800 | [diff] [blame] | 179 | PropertyValue value{timeUsec}; |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 180 | try |
| 181 | { |
George Liu | 1e44c73 | 2020-02-28 20:20:06 +0800 | [diff] [blame] | 182 | DBusMapping dbusMapping{setTimePath, setTimeInterface, timeSetPro, |
| 183 | "uint64_t"}; |
| 184 | pldm::utils::DBusHandler().setDbusProperty(dbusMapping, value); |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 185 | } |
Patrick Williams | 5133058 | 2021-10-06 12:48:56 -0500 | [diff] [blame] | 186 | catch (const std::exception& e) |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 187 | { |
Xiaochao Ma | 60227a0 | 2019-12-04 09:00:12 +0800 | [diff] [blame] | 188 | std::cerr << "Error Setting time,PATH=" << setTimePath |
| 189 | << "TIME INTERFACE=" << setTimeInterface |
| 190 | << "ERROR=" << e.what() << "\n"; |
| 191 | |
| 192 | return ccOnlyResponse(request, PLDM_ERROR); |
| 193 | } |
| 194 | |
| 195 | return ccOnlyResponse(request, PLDM_SUCCESS); |
| 196 | } |
| 197 | |
Deepak Kodihalli | bc669f1 | 2019-11-28 08:52:07 -0600 | [diff] [blame] | 198 | Response Handler::getBIOSTable(const pldm_msg* request, size_t payloadLength) |
Sampa Misra | b37be31 | 2019-07-03 02:26:41 -0500 | [diff] [blame] | 199 | { |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 200 | uint32_t transferHandle{}; |
| 201 | uint8_t transferOpFlag{}; |
| 202 | uint8_t tableType{}; |
| 203 | |
| 204 | auto rc = decode_get_bios_table_req(request, payloadLength, &transferHandle, |
| 205 | &transferOpFlag, &tableType); |
| 206 | if (rc != PLDM_SUCCESS) |
| 207 | { |
| 208 | return ccOnlyResponse(request, rc); |
| 209 | } |
| 210 | |
| 211 | auto table = |
| 212 | biosConfig.getBIOSTable(static_cast<pldm_bios_table_types>(tableType)); |
| 213 | if (!table) |
| 214 | { |
| 215 | return ccOnlyResponse(request, PLDM_BIOS_TABLE_UNAVAILABLE); |
| 216 | } |
| 217 | |
| 218 | Response response(sizeof(pldm_msg_hdr) + |
| 219 | PLDM_GET_BIOS_TABLE_MIN_RESP_BYTES + table->size()); |
| 220 | auto responsePtr = reinterpret_cast<pldm_msg*>(response.data()); |
| 221 | |
| 222 | rc = encode_get_bios_table_resp( |
| 223 | request->hdr.instance_id, PLDM_SUCCESS, 0 /* nxtTransferHandle */, |
| 224 | PLDM_START_AND_END, table->data(), response.size(), responsePtr); |
| 225 | if (rc != PLDM_SUCCESS) |
| 226 | { |
| 227 | return ccOnlyResponse(request, rc); |
| 228 | } |
Sampa Misra | b37be31 | 2019-07-03 02:26:41 -0500 | [diff] [blame] | 229 | |
| 230 | return response; |
| 231 | } |
| 232 | |
George Liu | 1b180d8 | 2020-07-23 14:01:58 +0800 | [diff] [blame] | 233 | Response Handler::setBIOSTable(const pldm_msg* request, size_t payloadLength) |
| 234 | { |
| 235 | uint32_t transferHandle{}; |
| 236 | uint8_t transferOpFlag{}; |
| 237 | uint8_t tableType{}; |
| 238 | struct variable_field field; |
| 239 | |
| 240 | auto rc = decode_set_bios_table_req(request, payloadLength, &transferHandle, |
| 241 | &transferOpFlag, &tableType, &field); |
| 242 | if (rc != PLDM_SUCCESS) |
| 243 | { |
| 244 | return ccOnlyResponse(request, rc); |
| 245 | } |
| 246 | |
| 247 | Table table(field.ptr, field.ptr + field.length); |
| 248 | rc = biosConfig.setBIOSTable(tableType, table); |
| 249 | if (rc != PLDM_SUCCESS) |
| 250 | { |
| 251 | return ccOnlyResponse(request, rc); |
| 252 | } |
| 253 | |
| 254 | Response response(sizeof(pldm_msg_hdr) + PLDM_SET_BIOS_TABLE_RESP_BYTES); |
| 255 | auto responsePtr = reinterpret_cast<pldm_msg*>(response.data()); |
| 256 | |
| 257 | rc = encode_set_bios_table_resp(request->hdr.instance_id, PLDM_SUCCESS, |
| 258 | 0 /* nxtTransferHandle */, responsePtr); |
| 259 | if (rc != PLDM_SUCCESS) |
| 260 | { |
| 261 | return ccOnlyResponse(request, rc); |
| 262 | } |
| 263 | |
| 264 | return response; |
| 265 | } |
| 266 | |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 267 | Response Handler::getBIOSAttributeCurrentValueByHandle(const pldm_msg* request, |
| 268 | size_t payloadLength) |
| 269 | { |
| 270 | uint32_t transferHandle; |
| 271 | uint8_t transferOpFlag; |
| 272 | uint16_t attributeHandle; |
| 273 | |
| 274 | auto rc = decode_get_bios_attribute_current_value_by_handle_req( |
| 275 | request, payloadLength, &transferHandle, &transferOpFlag, |
| 276 | &attributeHandle); |
| 277 | if (rc != PLDM_SUCCESS) |
| 278 | { |
| 279 | return ccOnlyResponse(request, rc); |
| 280 | } |
| 281 | |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 282 | auto table = biosConfig.getBIOSTable(PLDM_BIOS_ATTR_VAL_TABLE); |
| 283 | if (!table) |
Deepak Kodihalli | 4976a68 | 2020-01-07 05:48:29 -0600 | [diff] [blame] | 284 | { |
| 285 | return ccOnlyResponse(request, PLDM_BIOS_TABLE_UNAVAILABLE); |
| 286 | } |
| 287 | |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 288 | auto entry = pldm_bios_table_attr_value_find_by_handle( |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 289 | table->data(), table->size(), attributeHandle); |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 290 | if (entry == nullptr) |
| 291 | { |
| 292 | return ccOnlyResponse(request, PLDM_INVALID_BIOS_ATTR_HANDLE); |
| 293 | } |
| 294 | |
John Wang | 8e877e0 | 2020-02-03 16:06:55 +0800 | [diff] [blame] | 295 | auto entryLength = pldm_bios_table_attr_value_entry_length(entry); |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 296 | Response response(sizeof(pldm_msg_hdr) + |
| 297 | PLDM_GET_BIOS_ATTR_CURR_VAL_BY_HANDLE_MIN_RESP_BYTES + |
John Wang | 8e877e0 | 2020-02-03 16:06:55 +0800 | [diff] [blame] | 298 | entryLength, |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 299 | 0); |
| 300 | auto responsePtr = reinterpret_cast<pldm_msg*>(response.data()); |
George Liu | fb8611d | 2019-12-06 10:14:15 +0800 | [diff] [blame] | 301 | rc = encode_get_bios_current_value_by_handle_resp( |
John Wang | 8e877e0 | 2020-02-03 16:06:55 +0800 | [diff] [blame] | 302 | request->hdr.instance_id, PLDM_SUCCESS, 0, PLDM_START_AND_END, |
| 303 | reinterpret_cast<const uint8_t*>(entry), entryLength, responsePtr); |
George Liu | fb8611d | 2019-12-06 10:14:15 +0800 | [diff] [blame] | 304 | if (rc != PLDM_SUCCESS) |
| 305 | { |
| 306 | return ccOnlyResponse(request, rc); |
| 307 | } |
John Wang | 8721ed6 | 2019-12-05 14:44:43 +0800 | [diff] [blame] | 308 | |
| 309 | return response; |
| 310 | } |
| 311 | |
John Wang | 4217488 | 2019-12-20 14:56:59 +0800 | [diff] [blame] | 312 | Response Handler::setBIOSAttributeCurrentValue(const pldm_msg* request, |
| 313 | size_t payloadLength) |
| 314 | { |
| 315 | uint32_t transferHandle; |
| 316 | uint8_t transferOpFlag; |
| 317 | variable_field attributeField; |
| 318 | |
| 319 | auto rc = decode_set_bios_attribute_current_value_req( |
| 320 | request, payloadLength, &transferHandle, &transferOpFlag, |
| 321 | &attributeField); |
| 322 | if (rc != PLDM_SUCCESS) |
| 323 | { |
| 324 | return ccOnlyResponse(request, rc); |
| 325 | } |
| 326 | |
John Wang | 6080aae | 2020-02-14 09:34:25 +0800 | [diff] [blame] | 327 | rc = biosConfig.setAttrValue(attributeField.ptr, attributeField.length); |
John Wang | 4217488 | 2019-12-20 14:56:59 +0800 | [diff] [blame] | 328 | |
Xiaochao Ma | 7a0d072 | 2020-05-29 09:07:33 +0800 | [diff] [blame] | 329 | Response response( |
| 330 | sizeof(pldm_msg_hdr) + PLDM_SET_BIOS_ATTR_CURR_VAL_RESP_BYTES, 0); |
| 331 | auto responsePtr = reinterpret_cast<pldm_msg*>(response.data()); |
| 332 | |
| 333 | encode_set_bios_attribute_current_value_resp(request->hdr.instance_id, rc, |
| 334 | 0, responsePtr); |
| 335 | |
| 336 | return response; |
John Wang | 4217488 | 2019-12-20 14:56:59 +0800 | [diff] [blame] | 337 | } |
| 338 | |
John Wang | f719f3b | 2020-01-17 08:46:22 +0800 | [diff] [blame] | 339 | } // namespace bios |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 340 | } // namespace responder |
| 341 | } // namespace pldm |