OpenBIC
OpenSource Bridge-IC
|
#include "plat_mctp.h"
#include <zephyr.h>
#include <sys/printk.h>
#include <logging/log.h>
#include <logging/log_ctrl.h>
#include <stdlib.h>
#include <stdio.h>
#include "mctp.h"
#include "mctp_ctrl.h"
#include "pldm.h"
#include "ipmi.h"
#include "sensor.h"
#include "plat_ipmb.h"
#include "plat_class.h"
#include "util_sys.h"
#include "hal_i2c.h"
#include "hal_i3c.h"
Macros | |
#define | MCTP_MSG_TYPE_SHIFT 0 |
#define | MCTP_MSG_TYPE_MASK 0x7F |
#define | MCTP_IC_SHIFT 7 |
#define | MCTP_IC_MASK 0x80 |
#define | MCTP_EID_FF_BIC 0 |
#define | MCTP_EID_WF_BIC 0 |
#define | MCTP_EID_FF_CXL 0 |
#define | MCTP_EID_WF_CXL1 0 |
#define | MCTP_EID_WF_CXL2 0 |
Functions | |
LOG_MODULE_REGISTER (plat_mctp) | |
K_TIMER_DEFINE (send_cmd_timer, send_cmd_to_dev, NULL) | |
K_WORK_DEFINE (send_cmd_work, send_cmd_to_dev_handler) | |
mctp * | find_mctp_by_bus (uint8_t bus) |
mctp * | find_mctp_by_addr (uint8_t addr) |
void | send_cmd_to_dev_handler (struct k_work *work) |
void | send_cmd_to_dev (struct k_timer *timer) |
bool | mctp_add_sel_to_ipmi (common_addsel_msg_t *sel_msg) |
int | pal_get_medium_type (uint8_t interface) |
int | pal_get_target (uint8_t interface) |
mctp * | pal_get_mctp (uint8_t medium_type, uint8_t bus) |
void | plat_set_eid_by_slot () |
void | set_routing_table_eid () |
uint8_t | plat_get_eid () |
void | plat_mctp_init (void) |
uint8_t | plat_get_mctp_port_count () |
mctp_port * | plat_get_mctp_port (uint8_t index) |
Variables | |
mctp_route_entry | plat_mctp_route_tbl [] |
uint8_t | plat_eid = MCTP_DEFAULT_ENDPOINT |
#define MCTP_EID_FF_BIC 0 |
#define MCTP_EID_FF_CXL 0 |
#define MCTP_EID_WF_BIC 0 |
#define MCTP_EID_WF_CXL1 0 |
#define MCTP_EID_WF_CXL2 0 |
#define MCTP_IC_MASK 0x80 |
#define MCTP_IC_SHIFT 7 |
#define MCTP_MSG_TYPE_MASK 0x7F |
#define MCTP_MSG_TYPE_SHIFT 0 |
mctp * find_mctp_by_addr | ( | uint8_t | addr | ) |
mctp * find_mctp_by_bus | ( | uint8_t | bus | ) |
K_TIMER_DEFINE | ( | send_cmd_timer | , |
send_cmd_to_dev | , | ||
NULL | |||
) |
K_WORK_DEFINE | ( | send_cmd_work | , |
send_cmd_to_dev_handler | |||
) |
LOG_MODULE_REGISTER | ( | plat_mctp | ) |
bool mctp_add_sel_to_ipmi | ( | common_addsel_msg_t * | sel_msg | ) |
mctp * pal_get_mctp | ( | uint8_t | medium_type, |
uint8_t | bus | ||
) |
int pal_get_medium_type | ( | uint8_t | interface | ) |
int pal_get_target | ( | uint8_t | interface | ) |
uint8_t plat_get_eid | ( | ) |
mctp_port * plat_get_mctp_port | ( | uint8_t | index | ) |
uint8_t plat_get_mctp_port_count | ( | ) |
void plat_mctp_init | ( | void | ) |
BIC will not initialize mctp instance if CXL is not present
init mctp for bmc bus
void plat_set_eid_by_slot | ( | ) |
void send_cmd_to_dev | ( | struct k_timer * | timer | ) |
void send_cmd_to_dev_handler | ( | struct k_work * | work | ) |
void set_routing_table_eid | ( | ) |
uint8_t plat_eid = MCTP_DEFAULT_ENDPOINT |
mctp_route_entry plat_mctp_route_tbl[] |