OpenBIC
OpenSource Bridge-IC
plat_ipmi.c File Reference
#include "plat_ipmi.h"
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include "libutil.h"
#include "fru.h"
#include "ipmi.h"
#include "util_spi.h"
#include "hal_gpio.h"
#include "plat_fru.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "plat_sensor_table.h"
#include "pex89000.h"
#include "xdpe15284.h"
#include "plat_hook.h"
#include "plat_dev.h"
#include "app_handler.h"
#include "plat_ipmb.h"
#include "mp2985.h"
Include dependency graph for plat_ipmi.c:

Functions

 LOG_MODULE_REGISTER (plat_ipmi)
 
void pal_construct_ipmi_add_sel_msg (ipmi_msg *msg, common_addsel_msg_t *sel_msg)
 
void OEM_1S_GET_FW_VERSION (ipmi_msg *msg)
 
void OEM_1S_GET_PCIE_CARD_STATUS (ipmi_msg *msg)
 
void OEM_1S_FW_UPDATE (ipmi_msg *msg)
 
int pal_get_pcie_card_sensor_reading (uint8_t card_id, uint8_t sensor_num, uint8_t *card_status, int *reading)
 
void OEM_1S_GET_PCIE_CARD_SENSOR_READING (ipmi_msg *msg)
 
int pal_write_read_accl_fru (uint8_t fru_id, uint8_t option, EEPROM_ENTRY *fru_entry, uint8_t *status)
 
void STORAGE_READ_FRUID_DATA (ipmi_msg *msg)
 
void STORAGE_WRITE_FRUID_DATA (ipmi_msg *msg)
 
void OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT (ipmi_msg *msg)
 

Variables

struct SWITCH_MUX_INFO pcie_switch_mux_info [PEX_MAX_NUMBER]
 

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_ipmi  )

◆ OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT()

void OEM_1S_BRIDGE_I2C_MSG_BY_COMPNT ( ipmi_msg msg)

◆ OEM_1S_FW_UPDATE()

void OEM_1S_FW_UPDATE ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_FW_VERSION()

void OEM_1S_GET_FW_VERSION ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_PCIE_CARD_SENSOR_READING()

void OEM_1S_GET_PCIE_CARD_SENSOR_READING ( ipmi_msg msg)
Here is the call graph for this function:

◆ OEM_1S_GET_PCIE_CARD_STATUS()

void OEM_1S_GET_PCIE_CARD_STATUS ( ipmi_msg msg)
Here is the call graph for this function:

◆ pal_construct_ipmi_add_sel_msg()

void pal_construct_ipmi_add_sel_msg ( ipmi_msg msg,
common_addsel_msg_t sel_msg 
)

◆ pal_get_pcie_card_sensor_reading()

int pal_get_pcie_card_sensor_reading ( uint8_t  card_id,
uint8_t  sensor_num,
uint8_t *  card_status,
int *  reading 
)
Here is the call graph for this function:

◆ pal_write_read_accl_fru()

int pal_write_read_accl_fru ( uint8_t  fru_id,
uint8_t  option,
EEPROM_ENTRY fru_entry,
uint8_t *  status 
)
Here is the call graph for this function:

◆ STORAGE_READ_FRUID_DATA()

void STORAGE_READ_FRUID_DATA ( ipmi_msg msg)
Here is the call graph for this function:

◆ STORAGE_WRITE_FRUID_DATA()

void STORAGE_WRITE_FRUID_DATA ( ipmi_msg msg)
Here is the call graph for this function:

Variable Documentation

◆ pcie_switch_mux_info

struct SWITCH_MUX_INFO pcie_switch_mux_info[PEX_MAX_NUMBER]
Initial value:
= {
[0] = { .device = DEVSPI_SPI1_CS0,
.control_gpio = SPI_ROM0_SEL,
.sw_to_flash_value = GPIO_HIGH,
.bic_to_flash_value = GPIO_LOW },
[1] = { .device = DEVSPI_SPI2_CS0,
.control_gpio = SPI_ROM1_SEL,
.sw_to_flash_value = GPIO_HIGH,
.bic_to_flash_value = GPIO_LOW },
}
#define GPIO_LOW
Definition: hal_gpio.h:72
#define GPIO_HIGH
Definition: hal_gpio.h:73
@ DEVSPI_SPI1_CS0
Definition: util_spi.h:41
@ DEVSPI_SPI2_CS0
Definition: util_spi.h:43