OpenBIC
OpenSource Bridge-IC
plat_mctp.h File Reference
#include "ipmi.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_BUS5
 
#define I2C_BUS_CXL   I2C_BUS2
 
#define I2C_ADDR_BIC   0x40
 
#define I2C_ADDR_BMC   0x20
 
#define I2C_ADDR_CXL   0xDE
 
#define MCTP_EID_DEFAULT   0x00
 
#define MCTP_EID_BMC   0x08
 
#define MCTP_EID_CXL   MCTP_EID_DEFAULT
 
#define MCTP_RESP_DATA_INDEX   4
 
#define MCTP_RESP_HEADER_COUNT   4
 
#define SET_EID_FLAG   true
 
#define CLEAR_EID_FLAG   false
 

Functions

void plat_mctp_init (void)
 
bool get_set_cxl_endpoint (uint8_t cxl_card_id, uint8_t eid)
 
bool get_cxl_eid_flag (uint8_t cxl_card_id)
 
void set_cxl_eid_flag (uint8_t cxl_card_id, bool value)
 
int pal_pldm_send_ipmi_request (ipmi_msg *msg, uint8_t eid)
 

Macro Definition Documentation

◆ CLEAR_EID_FLAG

#define CLEAR_EID_FLAG   false

◆ I2C_ADDR_BIC

#define I2C_ADDR_BIC   0x40

◆ I2C_ADDR_BMC

#define I2C_ADDR_BMC   0x20

◆ I2C_ADDR_CXL

#define I2C_ADDR_CXL   0xDE

◆ I2C_BUS_BMC

#define I2C_BUS_BMC   I2C_BUS5

◆ I2C_BUS_CXL

#define I2C_BUS_CXL   I2C_BUS2

◆ MCTP_EID_BMC

#define MCTP_EID_BMC   0x08

◆ MCTP_EID_CXL

#define MCTP_EID_CXL   MCTP_EID_DEFAULT

◆ MCTP_EID_DEFAULT

#define MCTP_EID_DEFAULT   0x00

◆ MCTP_RESP_DATA_INDEX

#define MCTP_RESP_DATA_INDEX   4

◆ MCTP_RESP_HEADER_COUNT

#define MCTP_RESP_HEADER_COUNT   4

◆ SET_EID_FLAG

#define SET_EID_FLAG   true

Function Documentation

◆ get_cxl_eid_flag()

bool get_cxl_eid_flag ( uint8_t  cxl_card_id)

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

◆ 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

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

◆ set_cxl_eid_flag()

void set_cxl_eid_flag ( uint8_t  cxl_card_id,
bool  value 
)