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 "cci.h"
#include "plat_ipmb.h"
#include "plat_power_seq.h"
#include "plat_pldm_sensor.h"
#include "hal_i2c.h"
Functions | |
LOG_MODULE_REGISTER (plat_mctp) | |
K_THREAD_STACK_DEFINE (set_dev_endpoint_stack, SET_DEV_ENDPOINT_STACK_SIZE) | |
mctp * | find_mctp_by_bus (uint8_t bus) |
uint8_t | get_mctp_info (uint8_t dest_endpoint, mctp **mctp_inst, mctp_ext_params *ext_params) |
void | set_dev_endpoint_thread (void *arg1, void *arg2, void *arg3) |
void | create_set_dev_endpoint_thread () |
int | pal_get_medium_type (uint8_t interface) |
mctp * | pal_get_mctp (uint8_t mctp_medium_type, uint8_t bus) |
void | plat_mctp_init (void) |
uint8_t | plat_get_mctp_port_count () |
mctp_port * | plat_get_mctp_port (uint8_t index) |
void | plat_update_mctp_routing_table (uint8_t eid) |
int | load_mctp_support_types (uint8_t *type_len, uint8_t *types) |
uint8_t | plat_get_eid () |
uint8_t | plat_get_cxl_eid (uint8_t cxl_id) |
int | pal_get_cci_timeout_ms () |
bool | pal_is_need_mctp_interval (mctp *mctp_inst) |
int | pal_get_mctp_interval_ms (mctp *mctp_inst) |
Variables | |
uint8_t | plat_eid = MCTP_DEFAULT_ENDPOINT |
struct k_thread | set_dev_endpoint_thread_data |
mctp_route_entry | plat_mctp_route_tbl [] |
uint8_t | MCTP_SUPPORTED_MESSAGES_TYPES [] |
void create_set_dev_endpoint_thread | ( | ) |
mctp * find_mctp_by_bus | ( | uint8_t | bus | ) |
uint8_t get_mctp_info | ( | uint8_t | dest_endpoint, |
mctp ** | mctp_inst, | ||
mctp_ext_params * | ext_params | ||
) |
K_THREAD_STACK_DEFINE | ( | set_dev_endpoint_stack | , |
SET_DEV_ENDPOINT_STACK_SIZE | |||
) |
int load_mctp_support_types | ( | uint8_t * | type_len, |
uint8_t * | types | ||
) |
LOG_MODULE_REGISTER | ( | plat_mctp | ) |
int pal_get_cci_timeout_ms | ( | ) |
mctp * pal_get_mctp | ( | uint8_t | mctp_medium_type, |
uint8_t | bus | ||
) |
int pal_get_mctp_interval_ms | ( | mctp * | mctp_inst | ) |
int pal_get_medium_type | ( | uint8_t | interface | ) |
bool pal_is_need_mctp_interval | ( | mctp * | mctp_inst | ) |
uint8_t plat_get_cxl_eid | ( | uint8_t | cxl_id | ) |
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_update_mctp_routing_table | ( | uint8_t | eid | ) |
void set_dev_endpoint_thread | ( | void * | arg1, |
void * | arg2, | ||
void * | arg3 | ||
) |
uint8_t MCTP_SUPPORTED_MESSAGES_TYPES[] |
uint8_t plat_eid = MCTP_DEFAULT_ENDPOINT |
mctp_route_entry plat_mctp_route_tbl[] |
struct k_thread set_dev_endpoint_thread_data |