OpenBIC
OpenSource Bridge-IC
ipmi.c File Reference
#include <zephyr.h>
#include <kernel.h>
#include <stdio.h>
#include <logging/log.h>
#include "cmsis_os2.h"
#include "ipmi.h"
#include "plat_def.h"
#include "usb.h"
#include <string.h>
#include <stdlib.h>
#include "libutil.h"
#include "app_handler.h"
#include "chassis_handler.h"
#include "oem_handler.h"
#include "oem_1s_handler.h"
#include "sensor_handler.h"
#include "storage_handler.h"
#include "mctp.h"
#include "pldm.h"
#include "plat_ipmb.h"
Include dependency graph for ipmi.c:

Macros

#define IPMI_QUEUE_SIZE   5
 

Functions

 LOG_MODULE_REGISTER (ipmi)
 
 K_KERNEL_STACK_MEMBER (IPMI_thread_stack, IPMI_THREAD_STACK_SIZE)
 
 K_KERNEL_STACK_MEMBER (IPMI_handle_thread_stack, IPMI_HANDLE_THREAD_STACK_SIZE)
 
char __aligned (4)
 
__weak uint32_t get_iana (uint8_t *iana_buf)
 
__weak bool pal_set_dimm_presence_status (uint8_t *buf)
 
__weak bool pal_request_msg_to_BIC_from_HOST (uint8_t netfn, uint8_t cmd)
 
__weak bool pal_immediate_respond_from_HOST (uint8_t netfn, uint8_t cmd)
 
__weak int pal_record_bios_fw_version (uint8_t *buf, uint8_t size)
 
__weak bool pal_request_msg_to_BIC_from_ME (uint8_t netfn, uint8_t cmd)
 
__weak bool pal_is_not_return_cmd (uint8_t netfn, uint8_t cmd)
 
bool common_add_sel_evt_record (common_addsel_msg_t *sel_msg)
 
void ipmi_cmd_handle (void *parameters, void *arvg0, void *arvg1)
 
void IPMI_handler (void *arug0, void *arug1, void *arug2)
 
void ipmi_init (void)
 

Variables

struct k_thread IPMI_thread
 
struct k_thread IPMI_handle_thread
 

Macro Definition Documentation

◆ IPMI_QUEUE_SIZE

#define IPMI_QUEUE_SIZE   5

Function Documentation

◆ __aligned()

char __aligned ( )

◆ common_add_sel_evt_record()

bool common_add_sel_evt_record ( common_addsel_msg_t sel_msg)
Here is the call graph for this function:

◆ get_iana()

__weak uint32_t get_iana ( uint8_t *  iana_buf)

◆ ipmi_cmd_handle()

void ipmi_cmd_handle ( void *  parameters,
void *  arvg0,
void *  arvg1 
)
Here is the call graph for this function:

◆ IPMI_handler()

void IPMI_handler ( void *  arug0,
void *  arug1,
void *  arug2 
)
Here is the call graph for this function:

◆ ipmi_init()

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

◆ K_KERNEL_STACK_MEMBER() [1/2]

K_KERNEL_STACK_MEMBER ( IPMI_handle_thread_stack  ,
IPMI_HANDLE_THREAD_STACK_SIZE   
)

◆ K_KERNEL_STACK_MEMBER() [2/2]

K_KERNEL_STACK_MEMBER ( IPMI_thread_stack  ,
IPMI_THREAD_STACK_SIZE   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( ipmi  )

◆ pal_immediate_respond_from_HOST()

__weak bool pal_immediate_respond_from_HOST ( uint8_t  netfn,
uint8_t  cmd 
)

◆ pal_is_not_return_cmd()

__weak bool pal_is_not_return_cmd ( uint8_t  netfn,
uint8_t  cmd 
)

◆ pal_record_bios_fw_version()

__weak int pal_record_bios_fw_version ( uint8_t *  buf,
uint8_t  size 
)

◆ pal_request_msg_to_BIC_from_HOST()

__weak bool pal_request_msg_to_BIC_from_HOST ( uint8_t  netfn,
uint8_t  cmd 
)

◆ pal_request_msg_to_BIC_from_ME()

__weak bool pal_request_msg_to_BIC_from_ME ( uint8_t  netfn,
uint8_t  cmd 
)

◆ pal_set_dimm_presence_status()

__weak bool pal_set_dimm_presence_status ( uint8_t *  buf)

Variable Documentation

◆ IPMI_handle_thread

struct k_thread IPMI_handle_thread

◆ IPMI_thread

struct k_thread IPMI_thread