OpenBIC
OpenSource Bridge-IC
plat_pldm.c File Reference
#include <zephyr.h>
#include <sys/printk.h>
#include <logging/log.h>
#include <logging/log_ctrl.h>
#include <stdlib.h>
#include "mctp.h"
#include "mctp_ctrl.h"
#include "pldm.h"
#include "ipmi.h"
#include "sensor.h"
#include "mpro.h"
#include "plat_hook.h"
#include "plat_mctp.h"
#include "plat_gpio.h"
#include "plat_pldm.h"
Include dependency graph for plat_pldm.c:

Classes

struct  _pldm_cmd_sup_lst
 
struct  _pldm_sensor_event_sup_lst
 

Macros

#define PLDM_MAX_INSTID_COUNT   32
 

Functions

 LOG_MODULE_REGISTER (plat_pldm)
 
bool pldm_request_msg_need_bypass (uint8_t *buf, uint32_t len)
 
uint8_t pldm_platform_event_message (void *mctp_inst, uint8_t *buf, uint16_t len, uint8_t instance_id, uint8_t *resp, uint16_t *resp_len, void *ext_params)
 
bool pldm_save_mctp_inst_from_ipmb_req (void *mctp_inst, uint8_t inst_num, mctp_ext_params ext_params)
 
bridge_storepldm_find_mctp_inst_by_inst_id (uint8_t inst_num)
 
bool pldm_send_ipmb_rsp (ipmi_msg *msg)
 

Variables

struct _pldm_cmd_sup_lst pldm_cmd_sup_tbl []
 

Macro Definition Documentation

◆ PLDM_MAX_INSTID_COUNT

#define PLDM_MAX_INSTID_COUNT   32

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_pldm  )

◆ pldm_find_mctp_inst_by_inst_id()

bridge_store * pldm_find_mctp_inst_by_inst_id ( uint8_t  inst_num)

◆ pldm_platform_event_message()

uint8_t pldm_platform_event_message ( void *  mctp_inst,
uint8_t *  buf,
uint16_t  len,
uint8_t  instance_id,
uint8_t *  resp,
uint16_t *  resp_len,
void *  ext_params 
)
Here is the call graph for this function:

◆ pldm_request_msg_need_bypass()

bool pldm_request_msg_need_bypass ( uint8_t *  buf,
uint32_t  len 
)

◆ pldm_save_mctp_inst_from_ipmb_req()

bool pldm_save_mctp_inst_from_ipmb_req ( void *  mctp_inst,
uint8_t  inst_num,
mctp_ext_params  ext_params 
)

◆ pldm_send_ipmb_rsp()

bool pldm_send_ipmb_rsp ( ipmi_msg msg)
Here is the call graph for this function:

Variable Documentation

◆ pldm_cmd_sup_tbl

struct _pldm_cmd_sup_lst pldm_cmd_sup_tbl[]
Initial value:
= {
}
@ PLDM_TYPE_BASE
Definition: pldm.h:44
@ PLDM_TYPE_PLAT_MON_CTRL
Definition: pldm.h:46
#define PLDM_BASE_CMD_CODE_GET_PLDM_TYPE
Definition: pldm_base.h:31
#define PLDM_BASE_CMD_CODE_GET_PLDM_CMDS
Definition: pldm_base.h:32
#define PLDM_BASE_CMD_CODE_GETTID
Definition: pldm_base.h:29
@ PLDM_MONITOR_CMD_CODE_PLATFORM_EVENT_MESSAGE
Definition: pldm_monitor.h:32
@ PLDM_MONITOR_CMD_CODE_GET_STATE_EFFECTER_STATES
Definition: pldm_monitor.h:35