1 /* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ 2 #ifndef MCTP_H 3 #define MCTP_H 4 5 #ifdef __cplusplus 6 extern "C" { 7 #endif 8 9 #include <stddef.h> 10 #include <stdint.h> 11 12 /* Delete when deleting old api */ 13 typedef uint8_t mctp_eid_t; 14 15 typedef enum pldm_requester_error_codes { 16 PLDM_REQUESTER_SUCCESS = 0, 17 PLDM_REQUESTER_OPEN_FAIL = -1, 18 PLDM_REQUESTER_NOT_PLDM_MSG = -2, 19 PLDM_REQUESTER_NOT_RESP_MSG = -3, 20 PLDM_REQUESTER_NOT_REQ_MSG = -4, 21 PLDM_REQUESTER_RESP_MSG_TOO_SMALL = -5, 22 PLDM_REQUESTER_INSTANCE_ID_MISMATCH = -6, 23 PLDM_REQUESTER_SEND_FAIL = -7, 24 PLDM_REQUESTER_RECV_FAIL = -8, 25 PLDM_REQUESTER_INVALID_RECV_LEN = -9, 26 PLDM_REQUESTER_SETUP_FAIL = -10, 27 PLDM_REQUESTER_INVALID_SETUP = -11, 28 PLDM_REQUESTER_POLL_FAIL = -12, 29 PLDM_REQUESTER_TRANSPORT_BUSY = -13, 30 } pldm_requester_rc_t; 31 32 #ifdef __cplusplus 33 } 34 #endif 35 36 #endif /* MCTP_H */ 37