Skip to content

Commit f5bb279

Browse files
Add mctp ALLOCATE_ENDPOINT_ID message structure
* add new control message request response stucture Signed-off-by: Faizan Ali <[email protected]>
1 parent 380608e commit f5bb279

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/mctp-control-spec.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,27 @@ struct mctp_ctrl_resp_resolve_endpoint_id {
177177
// ... uint8_t physical_address[N]
178178
} __attribute__((__packed__));
179179

180+
typedef enum {
181+
mctp_ctrl_cmd_alloc_eid_alloc_eid = 0,
182+
mctp_ctrl_cmd_alloc_eid_force_alloc = 1,
183+
mctp_ctrl_cmd_alloc_eid_get_alloc_info = 2,
184+
mctp_ctrl_cmd_alloc_eid_reserved = 3
185+
} mctp_ctrl_cmd_alloc_eid_op;
186+
187+
struct mctp_ctrl_cmd_alloc_eid {
188+
struct mctp_ctrl_msg_hdr ctrl_hdr;
189+
uint8_t alloc_eid_op;
190+
uint8_t pool_size;
191+
uint8_t start_eid;
192+
} __attribute__((__packed__));
193+
194+
struct mctp_ctrl_resp_alloc_eid {
195+
struct mctp_ctrl_msg_hdr ctrl_hdr;
196+
uint8_t completion_code;
197+
uint8_t status;
198+
uint8_t eid_pool_size;
199+
uint8_t eid_set;
200+
} __attribute__((__packed__));
180201

181202
#define MCTP_CTRL_HDR_MSG_TYPE 0
182203
#define MCTP_CTRL_HDR_FLAG_REQUEST (1 << 7)

0 commit comments

Comments
 (0)