Skip to content

Commit 3cd6653

Browse files
Add ALLOCATE_ENDPOINT_ID control message structures
Add MCTP control message structures for the ALLOCATE_ENDPOINT_ID command to support bridge endpoint EID pool allocation. - Add mctp_ctrl_cmd_alloc_eid request/response structure Signed-off-by: Faizan Ali <[email protected]>
1 parent 0d13310 commit 3cd6653

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
@@ -181,6 +181,28 @@ struct mctp_ctrl_resp_resolve_endpoint_id {
181181
// ... uint8_t physical_address[N]
182182
} __attribute__((__packed__));
183183

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

0 commit comments

Comments
 (0)