gokulsanker | 138ceba | 2021-04-05 13:25:25 +0530 | [diff] [blame^] | 1 | #include "firmware_update.h" |
2 | |||||
3 | int 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 | } |