Skip to content

Commit b274f0d

Browse files
Add mctp ALLOCATE_ENDPOINT_ID message structure
Signed-off-by: Faizan Ali <[email protected]>
1 parent 01eb800 commit b274f0d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/mctp-control-spec.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,29 @@ struct mctp_ctrl_resp_resolve_endpoint_id {
175175
// ... uint8_t physical_address[N]
176176
} __attribute__((__packed__));
177177

178+
typedef enum {
179+
alloc_eid = 0,
180+
force_alloc = 1,
181+
get_alloc_info = 2,
182+
reserved = 3
183+
} mctp_ctrl_cmd_alloc_eid_op;
184+
185+
struct mctp_ctrl_cmd_alloc_eid {
186+
struct mctp_ctrl_msg_hdr ctrl_hdr;
187+
mctp_ctrl_cmd_alloc_eid_op alloc_eid_op : 2;
188+
uint8_t : 6;
189+
uint8_t pool_size;
190+
uint8_t start_eid;
191+
} __attribute__((__packed__));
192+
193+
struct mctp_ctrl_resp_alloc_eid {
194+
struct mctp_ctrl_msg_hdr ctrl_hdr;
195+
uint8_t completion_code;
196+
uint8_t status : 2;
197+
uint8_t : 6;
198+
uint8_t eid_pool_size;
199+
uint8_t eid_set;
200+
} __attribute__((__packed__));
178201

179202
#define MCTP_CTRL_HDR_MSG_TYPE 0
180203
#define MCTP_CTRL_HDR_FLAG_REQUEST (1 << 7)

0 commit comments

Comments
 (0)