Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -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" |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 4 | #include "requester/handler.hpp" |
| 5 | |
| 6 | #include <vector> |
| 7 | |
| 8 | namespace pldm |
| 9 | { |
| 10 | namespace responder |
| 11 | { |
| 12 | namespace platform |
| 13 | { |
| 14 | |
| 15 | /** @brief To send BIOS attribute update event |
| 16 | * |
| 17 | * When the attribute value changes for any BIOS attribute, then |
| 18 | * PlatformEventMessage command with OEM event type |
| 19 | * PLDM_EVENT_TYPE_OEM_EVENT_BIOS_ATTRIBUTE_UPDATE is send to host with the |
| 20 | * list of BIOS attribute handles. |
| 21 | * |
| 22 | * @param[in] eid - MCTP EID of host firmware |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 23 | * @param[in] instanceIdDb - pointer to InstanceIdDb object |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 24 | * @param[in] handles - List of BIOS attribute handles |
| 25 | * @param[in] handler - PLDM request handler |
| 26 | */ |
| 27 | int sendBiosAttributeUpdateEvent( |
Andrew Jeffery | a330b2f | 2023-05-04 14:55:37 +0930 | [diff] [blame] | 28 | uint8_t eid, pldm::InstanceIdDb* instanceIdDb, |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 29 | const std::vector<uint16_t>& handles, |
| 30 | pldm::requester::Handler<pldm::requester::Request>* handler); |
| 31 | |
| 32 | } // namespace platform |
| 33 | |
| 34 | } // namespace responder |
| 35 | |
| 36 | } // namespace pldm |