OpenBIC
OpenSource Bridge-IC
plat_mctp.c File Reference
#include "plat_mctp.h"
#include <zephyr.h>
#include <logging/log.h>
#include "libutil.h"
#include "mctp.h"
#include "mctp_ctrl.h"
#include "pldm.h"
#include "ipmi.h"
Include dependency graph for plat_mctp.c:

Functions

 LOG_MODULE_REGISTER (plat_mctp)
 
mctpfind_mctp_by_smbus (uint8_t bus)
 
int pal_get_medium_type (uint8_t interface)
 
int pal_get_target (uint8_t interface)
 
mctppal_get_mctp (uint8_t mctp_medium_type, uint8_t bus)
 
uint8_t get_mctp_route_info (uint8_t dest_endpoint, void **mctp_inst, mctp_ext_params *ext_params)
 
int pal_pldm_send_ipmi_request (ipmi_msg *msg, uint8_t eid)
 
void plat_mctp_init (void)
 

Variables

mctp_route_entry mctp_route_tbl []
 

Function Documentation

◆ find_mctp_by_smbus()

mctp * find_mctp_by_smbus ( uint8_t  bus)

◆ get_mctp_route_info()

uint8_t get_mctp_route_info ( uint8_t  dest_endpoint,
void **  mctp_inst,
mctp_ext_params ext_params 
)
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_mctp  )

◆ pal_get_mctp()

mctp * pal_get_mctp ( uint8_t  mctp_medium_type,
uint8_t  bus 
)

◆ pal_get_medium_type()

int pal_get_medium_type ( uint8_t  interface)

◆ pal_get_target()

int pal_get_target ( uint8_t  interface)

◆ pal_pldm_send_ipmi_request()

int pal_pldm_send_ipmi_request ( ipmi_msg msg,
uint8_t  eid 
)
Here is the call graph for this function:

◆ plat_mctp_init()

void plat_mctp_init ( void  )

Variable Documentation

◆ mctp_route_tbl

mctp_route_entry mctp_route_tbl[]
Initial value:
= {
}
#define I3C_BUS_BMC
Definition: plat_mctp.h:31
#define I2C_ADDR_BMC
Definition: plat_mctp.c:44
#define MCTP_EID_BMC
Definition: plat_mctp.c:58