blob: 25b29977215c202e75d560bc0ae4506ea9ce83be [file] [log] [blame]
gokulsanker138ceba2021-04-05 13:25:25 +05301#include "firmware_update.h"
2
3int encode_query_device_identifiers_req(uint8_t instance_id,
4 size_t payload_length,
5 struct pldm_msg *msg)
6{
7 if (msg == NULL) {
8 return PLDM_ERROR_INVALID_DATA;
9 }
10
11 if (payload_length != PLDM_QUERY_DEVICE_IDENTIFIERS_REQ_BYTES) {
12 return PLDM_ERROR_INVALID_LENGTH;
13 }
14
15 return encode_pldm_header_only(PLDM_REQUEST, instance_id, PLDM_FWUP,
16 PLDM_QUERY_DEVICE_IDENTIFIERS, msg);
17}