blob: 13ec2d5990d15413ab4395f6f9a067c550457e9a [file] [log] [blame]
Patrick Williams70a47ba2021-09-02 09:53:31 -05001#pragma once
2
Andrew Jefferya330b2f2023-05-04 14:55:37 +09303#include "pldmd/instance_id.hpp"
Patrick Williams70a47ba2021-09-02 09:53:31 -05004#include "requester/handler.hpp"
5
6#include <vector>
7
8namespace pldm
9{
10namespace responder
11{
12namespace 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 Jefferya330b2f2023-05-04 14:55:37 +093023 * @param[in] instanceIdDb - pointer to InstanceIdDb object
Patrick Williams70a47ba2021-09-02 09:53:31 -050024 * @param[in] handles - List of BIOS attribute handles
25 * @param[in] handler - PLDM request handler
26 */
27int sendBiosAttributeUpdateEvent(
Andrew Jefferya330b2f2023-05-04 14:55:37 +093028 uint8_t eid, pldm::InstanceIdDb* instanceIdDb,
Patrick Williams70a47ba2021-09-02 09:53:31 -050029 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