Skip to content

Commit a77668e

Browse files
minerva-ag: Support get/set Eid (#2659)
Summary: - Support get/set Eid Pull Request resolved: #2659 Test Plan: - Build code: PASS Reviewed By: amithash Differential Revision: D91090120 fbshipit-source-id: 4439fc535ac9bf9d3fb1504834edcfe20a9c7c2f
1 parent 4f48cc1 commit a77668e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

meta-facebook/minerva-ag/src/platform/plat_mctp.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,22 @@ int load_mctp_support_types(uint8_t *type_len, uint8_t *types)
181181
return MCTP_SUCCESS;
182182
}
183183

184+
mctp_port *plat_get_mctp_port(uint8_t index)
185+
{
186+
return smbus_port + index;
187+
}
188+
189+
void plat_update_mctp_routing_table(uint8_t eid)
190+
{
191+
plat_eid = eid;
192+
}
193+
184194
uint8_t plat_get_eid()
185195
{
186196
return plat_eid;
187-
}
197+
}
198+
199+
uint8_t plat_get_mctp_port_count()
200+
{
201+
return ARRAY_SIZE(smbus_port);
202+
}

0 commit comments

Comments
 (0)