OpenBIC
OpenSource Bridge-IC
plat_mctp.c File Reference
#include <zephyr.h>
#include <sys/printk.h>
#include <logging/log.h>
#include <logging/log_ctrl.h>
#include <stdlib.h>
#include "mctp.h"
#include "mctp_ctrl.h"
#include "pldm.h"
#include "ipmi.h"
#include "sensor.h"
#include "plat_i2c.h"
#include "plat_hook.h"
#include "plat_mctp.h"
#include "plat_gpio.h"
Include dependency graph for plat_mctp.c:

Macros

#define I2C_ADDR_BIC   0x40
 
#define I2C_ADDR_BMC   0x20
 
#define I2C_BUS_BMC   I2C_BUS4
 
#define MCTP_EID_BMC   0x08
 

Functions

 LOG_MODULE_REGISTER (plat_mctp)
 
uint8_t get_mctp_info (uint8_t dest_endpoint, mctp **mctp_inst, mctp_ext_params *ext_params)
 
void plat_mctp_init (void)
 
int load_mctp_support_types (uint8_t *type_len, uint8_t *types)
 
uint8_t plat_get_eid ()
 

Variables

uint8_t plat_eid = MCTP_DEFAULT_ENDPOINT
 
mctp_route_entry mctp_route_tbl []
 
uint8_t MCTP_SUPPORTED_MESSAGES_TYPES []
 

Macro Definition Documentation

◆ I2C_ADDR_BIC

#define I2C_ADDR_BIC   0x40

◆ I2C_ADDR_BMC

#define I2C_ADDR_BMC   0x20

◆ I2C_BUS_BMC

#define I2C_BUS_BMC   I2C_BUS4

◆ MCTP_EID_BMC

#define MCTP_EID_BMC   0x08

Function Documentation

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

◆ load_mctp_support_types()

int load_mctp_support_types ( uint8_t *  type_len,
uint8_t *  types 
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_mctp  )

◆ plat_get_eid()

uint8_t plat_get_eid ( )

◆ plat_mctp_init()

void plat_mctp_init ( void  )

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

Variable Documentation

◆ mctp_route_tbl

mctp_route_entry mctp_route_tbl[]
Initial value:
= {
}
#define I2C_BUS_BMC
Definition: plat_mctp.c:45
#define I2C_ADDR_BMC
Definition: plat_mctp.c:42
#define MCTP_EID_BMC
Definition: plat_mctp.c:48

◆ MCTP_SUPPORTED_MESSAGES_TYPES

uint8_t MCTP_SUPPORTED_MESSAGES_TYPES[]
Initial value:
= {
}
@ TYPE_PLDM
Definition: mctp_ctrl.h:89
@ TYPE_MCTP_CONTROL
Definition: mctp_ctrl.h:88

◆ plat_eid

uint8_t plat_eid = MCTP_DEFAULT_ENDPOINT