OpenBIC
OpenSource Bridge-IC
plat_mctp.h File Reference
#include <kernel.h>
#include "storage_handler.h"
#include "pldm.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.

Classes

struct  mctp_to_ipmi_header_req
 
struct  mctp_to_ipmi_header_resp
 
struct  mctp_to_ipmi_sel_req
 
struct  mctp_to_ipmi_sel_resp
 

Macros

#define MCTP_EID_BMC   0x08
 
#define MCTP_EID_SATMC   0xF0
 

Enumerations

enum  { ADD_COMMON_SEL = 0x01 , ADD_OEM_SEL = 0x02 }
 

Functions

struct mctp_to_ipmi_header_req __attribute__ ((__packed__))
 
void plat_mctp_init (void)
 
void send_cmd_to_dev (struct k_timer *timer)
 
void send_cmd_to_dev_handler (struct k_work *work)
 
bool mctp_add_sel_to_ipmi (struct ipmi_storage_add_sel_req *sel_msg, uint8_t sel_type)
 
uint8_t plat_get_mctp_port_count ()
 
mctp_portplat_get_mctp_port (uint8_t index)
 
void satmc_status_update ()
 

Variables

uint8_t iana [IANA_LEN]
 
uint8_t netfn_lun
 
uint8_t ipmi_cmd
 
uint8_t completion_code
 
uint8_t ipmi_comp_code
 
enum { ... }  __attribute__
 
struct mctp_to_ipmi_header_req header
 
struct ipmi_storage_add_sel_req req_data
 
struct ipmi_storage_add_sel_resp resp_data
 

Macro Definition Documentation

◆ MCTP_EID_BMC

#define MCTP_EID_BMC   0x08

◆ MCTP_EID_SATMC

#define MCTP_EID_SATMC   0xF0

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ADD_COMMON_SEL 
ADD_OEM_SEL 

Function Documentation

◆ __attribute__()

struct mctp_to_ipmi_header_req __attribute__ ( (__packed__)  )

◆ mctp_add_sel_to_ipmi()

bool mctp_add_sel_to_ipmi ( struct ipmi_storage_add_sel_req sel_msg,
uint8_t  sel_type 
)
Here is the call graph for this function:

◆ plat_get_mctp_port()

mctp_port * plat_get_mctp_port ( uint8_t  index)

◆ plat_get_mctp_port_count()

uint8_t plat_get_mctp_port_count ( )

◆ 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

◆ satmc_status_update()

void satmc_status_update ( )
Here is the call graph for this function:

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

Variable Documentation

◆ 

enum { ... } __attribute__

◆ completion_code

uint8_t completion_code

◆ header

struct mctp_to_ipmi_header_resp header

◆ iana

uint8_t iana[IANA_LEN]

◆ ipmi_cmd

uint8_t ipmi_cmd

◆ ipmi_comp_code

uint8_t ipmi_comp_code

◆ netfn_lun

uint8_t netfn_lun

◆ req_data

struct ipmi_storage_add_sel_req req_data

◆ resp_data

struct ipmi_storage_add_sel_resp resp_data