OpenBIC
OpenSource Bridge-IC
plat_mctp.h File Reference
#include "ipmi.h"
#include "mctp.h"
#include "plat_i2c.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 I2C_BUS_BMC   I2C_BUS9
 
#define I3C_BUS_BMC   I3C_BUS1
 
#define I2C_ADDR_BIC   0x40
 
#define I2C_ADDR_BMC   0x20
 
#define MCTP_EID_BMC   0x08
 
#define MCTP_RESP_DATA_INDEX   4
 
#define MCTP_RESP_HEADER_COUNT   4
 

Functions

void plat_mctp_init (void)
 
int pal_pldm_send_ipmi_request (ipmi_msg *msg, uint8_t eid)
 
uint8_t get_mctp_route_info (uint8_t dest_endpoint, void **mctp_inst, mctp_ext_params *ext_params)
 

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_BUS9

◆ I3C_BUS_BMC

#define I3C_BUS_BMC   I3C_BUS1

◆ MCTP_EID_BMC

#define MCTP_EID_BMC   0x08

◆ MCTP_RESP_DATA_INDEX

#define MCTP_RESP_DATA_INDEX   4

◆ MCTP_RESP_HEADER_COUNT

#define MCTP_RESP_HEADER_COUNT   4

Function Documentation

◆ get_mctp_route_info()

uint8_t get_mctp_route_info ( uint8_t  dest_endpoint,
void **  mctp_inst,
mctp_ext_params ext_params 
)

◆ pal_pldm_send_ipmi_request()

int pal_pldm_send_ipmi_request ( ipmi_msg msg,
uint8_t  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