OpenBIC
OpenSource Bridge-IC
|
#include "mctp.h"
#include <logging/log.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/printk.h>
#include <zephyr.h>
#include "libutil.h"
#include "plat_def.h"
Functions | |
LOG_MODULE_REGISTER (mctp) | |
struct | __attribute__ ((packed)) |
__weak bool | pal_is_need_mctp_interval (mctp *mctp_inst) |
__weak int | pal_get_mctp_interval_ms (mctp *mctp_inst) |
__weak uint8_t | plat_get_eid () |
mctp * | mctp_init (void) |
uint8_t | mctp_deinit (mctp *mctp_inst) |
uint8_t | mctp_set_medium_configure (mctp *mctp_inst, MCTP_MEDIUM_TYPE medium_type, mctp_medium_conf medium_conf) |
uint8_t | mctp_get_medium_configure (mctp *mctp_inst, MCTP_MEDIUM_TYPE *medium_type, mctp_medium_conf *medium_conf) |
uint8_t | mctp_stop (mctp *mctp_inst) |
uint8_t | mctp_start (mctp *mctp_inst) |
uint8_t | mctp_bridge_msg (mctp *mctp_inst, uint8_t *buf, uint16_t len, mctp_ext_params ext_params) |
uint8_t | mctp_send_msg (mctp *mctp_inst, uint8_t *buf, uint16_t len, mctp_ext_params ext_params) |
uint8_t | mctp_reg_endpoint_resolve_func (mctp *mctp_inst, endpoint_resolve resolve_fn) |
uint8_t | mctp_reg_msg_rx_func (mctp *mctp_inst, mctp_fn_cb rx_cb) |
__weak uint8_t | get_mctp_info (uint8_t dest_endpoint, mctp **mctp_inst, mctp_ext_params *ext_params) |
bool | get_mctp_info_by_eid (uint8_t port, mctp **mctp_inst, mctp_ext_params *ext_params) |
__weak int | pal_find_bus_in_mctp_port (mctp_port *p) |
__weak uint8_t | plat_get_mctp_port_count () |
__weak mctp_port * | plat_get_mctp_port (uint8_t index) |
__weak mctp * | pal_find_mctp_by_bus (uint8_t bus) |
__weak mctp_port * | pal_find_mctp_port_by_channel_target (uint8_t target) |
Variables | |
mctp_hdr | |
struct __attribute__ | ( | (packed) | ) |
__weak uint8_t get_mctp_info | ( | uint8_t | dest_endpoint, |
mctp ** | mctp_inst, | ||
mctp_ext_params * | ext_params | ||
) |
bool get_mctp_info_by_eid | ( | uint8_t | port, |
mctp ** | mctp_inst, | ||
mctp_ext_params * | ext_params | ||
) |
LOG_MODULE_REGISTER | ( | mctp | ) |
uint8_t mctp_bridge_msg | ( | mctp * | mctp_inst, |
uint8_t * | buf, | ||
uint16_t | len, | ||
mctp_ext_params | ext_params | ||
) |
uint8_t mctp_deinit | ( | mctp * | mctp_inst | ) |
uint8_t mctp_get_medium_configure | ( | mctp * | mctp_inst, |
MCTP_MEDIUM_TYPE * | medium_type, | ||
mctp_medium_conf * | medium_conf | ||
) |
mctp * mctp_init | ( | void | ) |
uint8_t mctp_reg_endpoint_resolve_func | ( | mctp * | mctp_inst, |
endpoint_resolve | resolve_fn | ||
) |
uint8_t mctp_reg_msg_rx_func | ( | mctp * | mctp_inst, |
mctp_fn_cb | rx_cb | ||
) |
uint8_t mctp_send_msg | ( | mctp * | mctp_inst, |
uint8_t * | buf, | ||
uint16_t | len, | ||
mctp_ext_params | ext_params | ||
) |
uint8_t mctp_set_medium_configure | ( | mctp * | mctp_inst, |
MCTP_MEDIUM_TYPE | medium_type, | ||
mctp_medium_conf | medium_conf | ||
) |
uint8_t mctp_start | ( | mctp * | mctp_inst | ) |
uint8_t mctp_stop | ( | mctp * | mctp_inst | ) |
__weak int pal_find_bus_in_mctp_port | ( | mctp_port * | p | ) |
__weak mctp * pal_find_mctp_by_bus | ( | uint8_t | bus | ) |
__weak mctp_port * pal_find_mctp_port_by_channel_target | ( | uint8_t | target | ) |
__weak int pal_get_mctp_interval_ms | ( | mctp * | mctp_inst | ) |
__weak bool pal_is_need_mctp_interval | ( | mctp * | mctp_inst | ) |
__weak uint8_t plat_get_eid | ( | ) |
__weak mctp_port * plat_get_mctp_port | ( | uint8_t | index | ) |
__weak uint8_t plat_get_mctp_port_count | ( | ) |
mctp_hdr |