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 "cci.h"
#include "plat_class.h"
Include dependency graph for plat_mctp.c:

Classes

struct  _cxl_mctp_info
 

Typedefs

typedef struct _cxl_mctp_info cxl_mctp_info
 

Functions

 LOG_MODULE_REGISTER (plat_mctp)
 
bool get_cxl_eid_flag (uint8_t cxl_card_id)
 
void set_cxl_eid_flag (uint8_t cxl_card_id, bool value)
 
mctpfind_mctp_by_smbus (uint8_t bus)
 
uint8_t get_mctp_info (uint8_t dest_endpoint, mctp **mctp_inst, mctp_ext_params *ext_params)
 
bool get_set_cxl_endpoint (uint8_t cxl_card_id, uint8_t eid)
 
int pal_pldm_send_ipmi_request (ipmi_msg *msg, uint8_t eid)
 
void plat_mctp_init (void)
 

Typedef Documentation

◆ cxl_mctp_info

typedef struct _cxl_mctp_info cxl_mctp_info

Function Documentation

◆ find_mctp_by_smbus()

mctp * find_mctp_by_smbus ( uint8_t  bus)

◆ get_cxl_eid_flag()

bool get_cxl_eid_flag ( uint8_t  cxl_card_id)

◆ get_mctp_info()

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

◆ get_set_cxl_endpoint()

bool get_set_cxl_endpoint ( uint8_t  cxl_card_id,
uint8_t  eid 
)

Get eid from CXL

Set eid if the getting eid is not match with stored eid

Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_mctp  )

◆ 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  )

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

◆ set_cxl_eid_flag()

void set_cxl_eid_flag ( uint8_t  cxl_card_id,
bool  value 
)