blob: dbff92de389977131f0773c4f662f7bbd97828bf [file] [log] [blame]
gokulsanker138ceba2021-04-05 13:25:25 +05301#ifndef FW_UPDATE_H
2#define FW_UPDATE_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7#include "base.h"
8
9#define PLDM_QUERY_DEVICE_IDENTIFIERS_REQ_BYTES 0
10
11/** @brief PLDM Firmware update commands
12 */
13enum pldm_firmware_update_commands { PLDM_QUERY_DEVICE_IDENTIFIERS = 0x01 };
14
15/** @brief Create a PLDM request message for QueryDeviceIdentifiers
16 *
17 * @param[in] instance_id - Message's instance id
18 * @param[in] payload_length - Length of the request message payload
19 * @param[in,out] msg - Message will be written to this
20 *
21 * @return pldm_completion_codes
22 *
23 * @note Caller is responsible for memory alloc and dealloc of param
24 * 'msg.payload'
25 */
26int encode_query_device_identifiers_req(uint8_t instance_id,
27 size_t payload_length,
28 struct pldm_msg *msg);
29#ifdef __cplusplus
30}
31#endif
32
33#endif // End of FW_UPDATE_H