OpenBIC
OpenSource Bridge-IC
plat_ipmi.c File Reference
#include "plat_ipmi.h"
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include "hal_gpio.h"
#include "libutil.h"
#include "ipmi.h"
#include "oem_1s_handler.h"
#include "plat_class.h"
#include "plat_ipmb.h"
#include "plat_gpio.h"
#include "pmbus.h"
#include "plat_sensor_table.h"
#include "util_sys.h"
#include "isl69254iraz_t.h"
#include "xdpe12284c.h"
Include dependency graph for plat_ipmi.c:

Macros

#define I2C_MAX_RETRY   3
 
#define FEXP_BIC_I2C_WRITE_IF   0x20
 
#define FEXP_BIC_I2C_READ_IF   0x21
 
#define FEXP_BIC_I2C_UPDATE_IF   0x22
 
#define FEXP_BIC_IPMI_I2C_SW_IF   0x23
 
#define BIC_COMMAND_STATUS   0x23
 
#define SNOWFLAKE_BIC_CMD_STATUS_SIZE   3
 
#define SNOWFLAKE_BIC_BOOTLOADER_RESPONSE_SIZE   5
 
#define SNOWFLAKE_BIC_BOOTLOADER_ACK_SIZE   2
 
#define EXTEND_MSG_OUT_CC_OFFSET   4
 

Functions

 LOG_MODULE_DECLARE (ipmi)
 
int pal_extend_msg_out_interface_handler (ipmi_msg *msg)
 
void OEM_1S_GET_CARD_TYPE (ipmi_msg *msg)
 
void OEM_1S_GET_FW_VERSION (ipmi_msg *msg)
 
void OEM_1S_GET_GPIO (ipmi_msg *msg)
 
void OEM_1S_GET_GPIO_CONFIG (ipmi_msg *msg)
 
uint8_t gpio_idx_exchange (ipmi_msg *msg)
 
void OEM_1S_GET_SET_GPIO (ipmi_msg *msg)
 

Macro Definition Documentation

◆ BIC_COMMAND_STATUS

#define BIC_COMMAND_STATUS   0x23

◆ EXTEND_MSG_OUT_CC_OFFSET

#define EXTEND_MSG_OUT_CC_OFFSET   4

◆ FEXP_BIC_I2C_READ_IF

#define FEXP_BIC_I2C_READ_IF   0x21

◆ FEXP_BIC_I2C_UPDATE_IF

#define FEXP_BIC_I2C_UPDATE_IF   0x22

◆ FEXP_BIC_I2C_WRITE_IF

#define FEXP_BIC_I2C_WRITE_IF   0x20

◆ FEXP_BIC_IPMI_I2C_SW_IF

#define FEXP_BIC_IPMI_I2C_SW_IF   0x23

◆ I2C_MAX_RETRY

#define I2C_MAX_RETRY   3

◆ SNOWFLAKE_BIC_BOOTLOADER_ACK_SIZE

#define SNOWFLAKE_BIC_BOOTLOADER_ACK_SIZE   2

◆ SNOWFLAKE_BIC_BOOTLOADER_RESPONSE_SIZE

#define SNOWFLAKE_BIC_BOOTLOADER_RESPONSE_SIZE   5

◆ SNOWFLAKE_BIC_CMD_STATUS_SIZE

#define SNOWFLAKE_BIC_CMD_STATUS_SIZE   3

Function Documentation

◆ gpio_idx_exchange()

uint8_t gpio_idx_exchange ( ipmi_msg msg)

◆ LOG_MODULE_DECLARE()

LOG_MODULE_DECLARE ( ipmi  )

◆ OEM_1S_GET_CARD_TYPE()

void OEM_1S_GET_CARD_TYPE ( ipmi_msg msg)

◆ OEM_1S_GET_FW_VERSION()

void OEM_1S_GET_FW_VERSION ( ipmi_msg msg)

◆ OEM_1S_GET_GPIO()

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

◆ OEM_1S_GET_GPIO_CONFIG()

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

◆ OEM_1S_GET_SET_GPIO()

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

◆ pal_extend_msg_out_interface_handler()

int pal_extend_msg_out_interface_handler ( ipmi_msg msg)