OpenBIC
OpenSource Bridge-IC
oem_1s_handler.h File Reference
#include "ipmi.h"
Include dependency graph for oem_1s_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ACCURACY_SENSOR_READING_REQ
 
struct  _ACCURACY_SENSOR_READING_RES
 

Macros

#define IS_SECTOR_END_MASK   0x80
 
#define GLOBAL_GPIO_IDX_KEY   0xFF
 

Typedefs

typedef struct _ACCURACY_SENSOR_READING_REQ ACCURACY_SENSOR_READING_REQ
 
typedef struct _ACCURACY_SENSOR_READING_RES ACCURACY_SENSOR_READING_RES
 

Enumerations

enum  FIRMWARE_INFO { BIC_PLAT_NAME = 1 , BIC_PLAT_BOARD_ID , BIC_PROJ_NAME , BIC_PROJ_STAGE }
 
enum  FIRMWARE_COMPONENT {
  COMPNT_CPLD = 1 , COMPNT_BIC , COMPNT_ME , COMPNT_BIOS ,
  COMPNT_PVCCIN , COMPNT_PVCCFA_EHV_FIVRA , COMPNT_PVCCD_HV , COMPNT_PVCCINFAON ,
  COMPNT_PVCCFA_EHV , AG_COMPNT_BIC , AG_COMPNT_OSFP_P3V3 , AG_COMPNT_CPU_P0V85_PVDD ,
  AG_COMPNT_CPU_P0V75_PVDD_CH_N , AG_COMPNT_CPU_P0V75_PVDD_CH_S , AG_COMPNT_CPU_P0V75_TRVDD_ZONEA , AG_COMPNT_CPU_P0V75_TRVDD_ZONEB ,
  AG_COMPNT_CPU_P1V1_VDDC_HBM0_2_4 , AG_COMPNT_CPU_P0V9_TRVDD_ZONEA , AG_COMPNT_CPU_P0V9_TRVDD_ZONEB , AG_COMPNT_CPU_P1V1_VDDC_HBM1_3_5 ,
  AG_COMPNT_CPU_P0V8_VDDA_PCIE , FF_COMPNT_BIC , FF_COMPNT_VR_PVDDQ_AB_ASIC , FF_COMPNT_VR_PVDDQ_CD_ASIC ,
  SD_COMPNT_BIC , SD_COMPNT_VR_PVDDCR_CPU1 , SD_COMPNT_VR_PVDD11_S3 , SD_COMPNT_VR_PVDDCR_CPU0 ,
  SD_COMPNT_X16_RETIMER , SD_COMPNT_X8_RETIMER , SD_COMPNT_BIOS , SD_COMPNT_X16_RETIMER_RECOVERY ,
  SD_COMPNT_X8_RETIMER_RECOVERY , WF_COMPNT_BIC , WF_COMPNT_VR_PVDDQ_AB_ASIC1 , WF_COMPNT_VR_PVDDQ_CD_ASIC1 ,
  WF_COMPNT_VR_PVDDQ_AB_ASIC2 , WF_COMPNT_VR_PVDDQ_CD_ASIC2 , WF_COMPNT_CXL1 , WF_COMPNT_CXL2
}
 
enum  ERROR_CODE_SET_PMIC_ERROR_FLAG { SUCCESS = 0 , NOT_SUPPORT = -1 , INVALID_ERROR_TYPE = -2 , INVALID_DIMM_ID = -3 }
 
enum  FIRWARE_UPDATE_TARGET {
  BIOS_UPDATE = 0 , CPLD_UPDATE , BIC_UPDATE , CXL_UPDATE ,
  PRoT_FLASH_UPDATE
}
 
enum  GET_SET_GPIO_OPTIONS { GET_GPIO_STATUS = 0 , SET_GPIO_OUTPUT_STATUS , GET_GPIO_DIRECTION_STATUS , SET_GPIO_DIRECTION_STATUS }
 
enum  GET_SET_VGPIO_OPTIONS { GET_VGPIO_DIRECTION_AND_STATUS = 0 , SET_VGPIO_STATUS }
 

Functions

uint8_t gpio_idx_exchange (ipmi_msg *msg)
 
void OEM_1S_MSG_OUT (ipmi_msg *msg)
 
void OEM_1S_GET_GPIO (ipmi_msg *msg)
 
void OEM_1S_GET_GPIO_CONFIG (ipmi_msg *msg)
 
void OEM_1S_SET_GPIO_CONFIG (ipmi_msg *msg)
 
void OEM_1S_FW_UPDATE (ipmi_msg *msg)
 
void OEM_1S_GET_BIC_FW_INFO (ipmi_msg *msg)
 
void OEM_1S_GET_FW_VERSION (ipmi_msg *msg)
 
void OEM_1S_SET_VR_MONITOR_STATUS (ipmi_msg *msg)
 
void OEM_1S_GET_VR_MONITOR_STATUS (ipmi_msg *msg)
 
void OEM_1S_RESET_BMC (ipmi_msg *msg)
 
void OEM_1S_READ_FW_IMAGE (ipmi_msg *msg)
 
void OEM_1S_SENSOR_POLL_EN (ipmi_msg *msg)
 
void OEM_1S_ACCURACY_SENSOR_READING (ipmi_msg *msg)
 
void OEM_1S_GET_SET_GPIO (ipmi_msg *msg)
 
void OEM_1S_GET_SET_BIC_VGPIO (ipmi_msg *msg)
 
void OEM_1S_GET_FW_SHA256 (ipmi_msg *msg)
 
void OEM_1S_I2C_DEV_SCAN (ipmi_msg *msg)
 
void OEM_1S_GET_BIC_STATUS (ipmi_msg *msg)
 
void OEM_1S_RESET_BIC (ipmi_msg *msg)
 
void OEM_1S_12V_CYCLE_SLOT (ipmi_msg *msg)
 
void OEM_1S_READ_BIC_REGISTER (ipmi_msg *msg)
 
void OEM_1S_WRITE_BIC_REGISTER (ipmi_msg *msg)
 
void OEM_1S_INFORM_PEER_SLED_CYCLE (ipmi_msg *msg)
 
void OEM_1S_PEX_FLASH_READ (ipmi_msg *msg)
 
void OEM_1S_GET_FPGA_USER_CODE (ipmi_msg *msg)
 
void OEM_1S_GET_CARD_TYPE (ipmi_msg *msg)
 
void OEM_1S_CLEAR_CMOS (ipmi_msg *msg)
 
void OEM_1S_NOTIFY_PMIC_ERROR (ipmi_msg *msg)
 
void OEM_1S_GET_SDR (ipmi_msg *msg)
 
void OEM_1S_BMC_IPMB_ACCESS (ipmi_msg *msg)
 
void OEM_1S_GET_HSC_STATUS (ipmi_msg *msg)
 
void OEM_1S_GET_BIOS_VERSION (ipmi_msg *msg)
 
void OEM_1S_GET_PCIE_CARD_STATUS (ipmi_msg *msg)
 
void OEM_1S_GET_PCIE_CARD_SENSOR_READING (ipmi_msg *msg)
 
void OEM_1S_GET_DIMM_I3C_MUX_SELECTION (ipmi_msg *msg)
 
void OEM_1S_SAFE_WRITE_READ_M2_DATA (ipmi_msg *msg)
 
void OEM_1S_PRE_POWER_OFF_CONTROL (ipmi_msg *msg)
 
void OEM_1S_SET_DEVICE_ACTIVE (ipmi_msg *msg)
 
void OEM_1S_SET_ADD_DEBUG_SEL_MODE (ipmi_msg *msg)
 
void OEM_1S_GET_4BYTE_POST_CODE (ipmi_msg *msg)
 
void OEM_1S_GET_PCIE_RETIMER_TYPE (ipmi_msg *msg)
 
void OEM_1S_DEBUG_GET_HW_SIGNAL (ipmi_msg *msg)
 
void OEM_1S_RECORD_DAM_PIN_STATUS (uint8_t gpio_num, uint8_t status)
 
void OEM_1S_INFORM_BMC_TO_CONTROL_POWER (ipmi_msg *msg)
 
void IPMI_OEM_1S_handler (ipmi_msg *msg)
 

Macro Definition Documentation

◆ GLOBAL_GPIO_IDX_KEY

#define GLOBAL_GPIO_IDX_KEY   0xFF

◆ IS_SECTOR_END_MASK

#define IS_SECTOR_END_MASK   0x80

Typedef Documentation

◆ ACCURACY_SENSOR_READING_REQ

◆ ACCURACY_SENSOR_READING_RES

Enumeration Type Documentation

◆ ERROR_CODE_SET_PMIC_ERROR_FLAG

Enumerator
SUCCESS 
NOT_SUPPORT 
INVALID_ERROR_TYPE 
INVALID_DIMM_ID 

◆ FIRMWARE_COMPONENT

Enumerator
COMPNT_CPLD 
COMPNT_BIC 
COMPNT_ME 
COMPNT_BIOS 
COMPNT_PVCCIN 
COMPNT_PVCCFA_EHV_FIVRA 
COMPNT_PVCCD_HV 
COMPNT_PVCCINFAON 
COMPNT_PVCCFA_EHV 
AG_COMPNT_BIC 
AG_COMPNT_OSFP_P3V3 
AG_COMPNT_CPU_P0V85_PVDD 
AG_COMPNT_CPU_P0V75_PVDD_CH_N 
AG_COMPNT_CPU_P0V75_PVDD_CH_S 
AG_COMPNT_CPU_P0V75_TRVDD_ZONEA 
AG_COMPNT_CPU_P0V75_TRVDD_ZONEB 
AG_COMPNT_CPU_P1V1_VDDC_HBM0_2_4 
AG_COMPNT_CPU_P0V9_TRVDD_ZONEA 
AG_COMPNT_CPU_P0V9_TRVDD_ZONEB 
AG_COMPNT_CPU_P1V1_VDDC_HBM1_3_5 
AG_COMPNT_CPU_P0V8_VDDA_PCIE 
FF_COMPNT_BIC 
FF_COMPNT_VR_PVDDQ_AB_ASIC 
FF_COMPNT_VR_PVDDQ_CD_ASIC 
SD_COMPNT_BIC 
SD_COMPNT_VR_PVDDCR_CPU1 
SD_COMPNT_VR_PVDD11_S3 
SD_COMPNT_VR_PVDDCR_CPU0 
SD_COMPNT_X16_RETIMER 
SD_COMPNT_X8_RETIMER 
SD_COMPNT_BIOS 
SD_COMPNT_X16_RETIMER_RECOVERY 
SD_COMPNT_X8_RETIMER_RECOVERY 
WF_COMPNT_BIC 
WF_COMPNT_VR_PVDDQ_AB_ASIC1 
WF_COMPNT_VR_PVDDQ_CD_ASIC1 
WF_COMPNT_VR_PVDDQ_AB_ASIC2 
WF_COMPNT_VR_PVDDQ_CD_ASIC2 
WF_COMPNT_CXL1 
WF_COMPNT_CXL2 

◆ FIRMWARE_INFO

Enumerator
BIC_PLAT_NAME 
BIC_PLAT_BOARD_ID 
BIC_PROJ_NAME 
BIC_PROJ_STAGE 

◆ FIRWARE_UPDATE_TARGET

Enumerator
BIOS_UPDATE 
CPLD_UPDATE 
BIC_UPDATE 
CXL_UPDATE 
PRoT_FLASH_UPDATE 

◆ GET_SET_GPIO_OPTIONS

Enumerator
GET_GPIO_STATUS 
SET_GPIO_OUTPUT_STATUS 
GET_GPIO_DIRECTION_STATUS 
SET_GPIO_DIRECTION_STATUS 

◆ GET_SET_VGPIO_OPTIONS

Enumerator
GET_VGPIO_DIRECTION_AND_STATUS 
SET_VGPIO_STATUS 

Function Documentation

◆ gpio_idx_exchange()

uint8_t gpio_idx_exchange ( ipmi_msg msg)

◆ IPMI_OEM_1S_handler()

void IPMI_OEM_1S_handler ( ipmi_msg msg)

◆ OEM_1S_12V_CYCLE_SLOT()

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

◆ OEM_1S_ACCURACY_SENSOR_READING()

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

◆ OEM_1S_BMC_IPMB_ACCESS()

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

◆ OEM_1S_CLEAR_CMOS()

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

◆ OEM_1S_DEBUG_GET_HW_SIGNAL()

void OEM_1S_DEBUG_GET_HW_SIGNAL ( 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_4BYTE_POST_CODE()

void OEM_1S_GET_4BYTE_POST_CODE ( ipmi_msg msg)

◆ OEM_1S_GET_BIC_FW_INFO()

void OEM_1S_GET_BIC_FW_INFO ( ipmi_msg msg)

◆ OEM_1S_GET_BIC_STATUS()

void OEM_1S_GET_BIC_STATUS ( ipmi_msg msg)

◆ OEM_1S_GET_BIOS_VERSION()

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

◆ OEM_1S_GET_CARD_TYPE()

void OEM_1S_GET_CARD_TYPE ( ipmi_msg msg)

◆ OEM_1S_GET_DIMM_I3C_MUX_SELECTION()

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

◆ OEM_1S_GET_FPGA_USER_CODE()

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

◆ OEM_1S_GET_FW_SHA256()

void OEM_1S_GET_FW_SHA256 ( ipmi_msg msg)

◆ 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_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_HSC_STATUS()

void OEM_1S_GET_HSC_STATUS ( ipmi_msg msg)

◆ 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:

◆ OEM_1S_GET_PCIE_RETIMER_TYPE()

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

◆ OEM_1S_GET_SDR()

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

◆ OEM_1S_GET_SET_BIC_VGPIO()

void OEM_1S_GET_SET_BIC_VGPIO ( 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:

◆ OEM_1S_GET_VR_MONITOR_STATUS()

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

◆ OEM_1S_I2C_DEV_SCAN()

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

◆ OEM_1S_INFORM_BMC_TO_CONTROL_POWER()

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

◆ OEM_1S_INFORM_PEER_SLED_CYCLE()

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

◆ OEM_1S_MSG_OUT()

void OEM_1S_MSG_OUT ( ipmi_msg msg)

◆ OEM_1S_NOTIFY_PMIC_ERROR()

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

◆ OEM_1S_PEX_FLASH_READ()

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

◆ OEM_1S_PRE_POWER_OFF_CONTROL()

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

◆ OEM_1S_READ_BIC_REGISTER()

void OEM_1S_READ_BIC_REGISTER ( ipmi_msg msg)

◆ OEM_1S_READ_FW_IMAGE()

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

◆ OEM_1S_RECORD_DAM_PIN_STATUS()

void OEM_1S_RECORD_DAM_PIN_STATUS ( uint8_t  gpio_num,
uint8_t  status 
)
Here is the call graph for this function:

◆ OEM_1S_RESET_BIC()

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

◆ OEM_1S_RESET_BMC()

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

◆ OEM_1S_SAFE_WRITE_READ_M2_DATA()

void OEM_1S_SAFE_WRITE_READ_M2_DATA ( ipmi_msg msg)

◆ OEM_1S_SENSOR_POLL_EN()

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

◆ OEM_1S_SET_ADD_DEBUG_SEL_MODE()

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

◆ OEM_1S_SET_DEVICE_ACTIVE()

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

◆ OEM_1S_SET_GPIO_CONFIG()

void OEM_1S_SET_GPIO_CONFIG ( ipmi_msg msg)

◆ OEM_1S_SET_VR_MONITOR_STATUS()

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

◆ OEM_1S_WRITE_BIC_REGISTER()

void OEM_1S_WRITE_BIC_REGISTER ( ipmi_msg msg)