Skip to content

Commit ece29f8

Browse files
Add ALLOCATE_ENDPOINT_ID control message support
Add MCTP control message structures for the ALLOCATE_ENDPOINT_ID command to support bridge endpoint EID pool allocation. Signed-off-by: Faizan Ali <[email protected]>
1 parent 46070f6 commit ece29f8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/mctp-control-spec.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,28 @@ struct mctp_ctrl_resp_resolve_endpoint_id {
182182
// ... uint8_t physical_address[N]
183183
} __attribute__((__packed__));
184184

185+
typedef enum {
186+
mctp_ctrl_cmd_alloc_eid_alloc_eid = 0,
187+
mctp_ctrl_cmd_alloc_eid_force_alloc = 1,
188+
mctp_ctrl_cmd_alloc_eid_get_alloc_info = 2,
189+
mctp_ctrl_cmd_alloc_eid_reserved = 3
190+
} mctp_ctrl_cmd_alloc_eid_op;
191+
192+
struct mctp_ctrl_cmd_alloc_eid {
193+
struct mctp_ctrl_msg_hdr ctrl_hdr;
194+
uint8_t alloc_eid_op;
195+
uint8_t pool_size;
196+
uint8_t start_eid;
197+
} __attribute__((__packed__));
198+
199+
struct mctp_ctrl_resp_alloc_eid {
200+
struct mctp_ctrl_msg_hdr ctrl_hdr;
201+
uint8_t completion_code;
202+
uint8_t status;
203+
uint8_t eid_pool_size;
204+
uint8_t eid_set;
205+
} __attribute__((__packed__));
206+
185207
#define MCTP_CTRL_HDR_MSG_TYPE 0
186208
#define MCTP_CTRL_HDR_FLAG_REQUEST (1 << 7)
187209
#define MCTP_CTRL_HDR_FLAG_DGRAM (1 << 6)

0 commit comments

Comments
 (0)