OpenBIC
OpenSource Bridge-IC
plat_mctp.h File Reference
#include "storage_handler.h"
Include dependency graph for plat_mctp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MCTP_MSG_TYPE_SHIFT   0
 
#define MCTP_MSG_TYPE_MASK   0x7F
 
#define MCTP_IC_SHIFT   7
 
#define MCTP_IC_MASK   0x80
 
#define I2C_ADDR_BIC   0x20
 
#define I2C_ADDR_CXL0   0x74
 
#define I2C_ADDR_CXL1   0xC2
 
#define I2C_BUS_CXL   0x01
 
#define CXL_EID   0x2E
 

Functions

void send_cmd_to_dev (struct k_timer *timer)
 
void send_cmd_to_dev_handler (struct k_work *work)
 
void plat_mctp_init (void)
 
uint8_t get_mctp_route_info (uint8_t dest_endpoint, void **mctp_inst, mctp_ext_params *ext_params)
 
mctpfind_mctp_by_smbus (uint8_t bus)
 
mctpget_mctp_init ()
 
uint8_t get_mctp_info (uint8_t dest_endpoint, mctp **mctp_inst, mctp_ext_params *ext_params)
 

Macro Definition Documentation

◆ CXL_EID

#define CXL_EID   0x2E

◆ I2C_ADDR_BIC

#define I2C_ADDR_BIC   0x20

◆ I2C_ADDR_CXL0

#define I2C_ADDR_CXL0   0x74

◆ I2C_ADDR_CXL1

#define I2C_ADDR_CXL1   0xC2

◆ I2C_BUS_CXL

#define I2C_BUS_CXL   0x01

◆ MCTP_IC_MASK

#define MCTP_IC_MASK   0x80

◆ MCTP_IC_SHIFT

#define MCTP_IC_SHIFT   7

◆ MCTP_MSG_TYPE_MASK

#define MCTP_MSG_TYPE_MASK   0x7F

◆ MCTP_MSG_TYPE_SHIFT

#define MCTP_MSG_TYPE_SHIFT   0

Function Documentation

◆ find_mctp_by_smbus()

mctp * find_mctp_by_smbus ( uint8_t  bus)

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

mctp * get_mctp_init ( )

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

◆ plat_mctp_init()

void plat_mctp_init ( void  )

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

BIC will not initialize mctp instance if CXL is not present

init mctp for bmc bus

◆ send_cmd_to_dev()

void send_cmd_to_dev ( struct k_timer *  timer)

◆ send_cmd_to_dev_handler()

void send_cmd_to_dev_handler ( struct k_work *  work)