OpenBIC
OpenSource Bridge-IC
plat_ipmi.h File Reference
#include <stdint.h>
#include "ipmi.h"
#include "plat_sensor_table.h"
Include dependency graph for plat_ipmi.h:

Go to the source code of this file.

Classes

struct  SWITCH_MUX_INFO
 

Macros

#define BIC_FW_DATA_LENGTH   7
 
#define VR_FW_VERSION_LEN   4
 
#define IS_SECTOR_END_MASK   0x80
 
#define WITHOUT_SECTOR_END_MASK   0x7F
 
#define BIC_UPDATE_MAX_OFFSET   0x50000
 
#define CC_PEX_NOT_POWER_ON   0xB0
 
#define CC_PEX_PRE_READING_FAIL   0xB1
 
#define CC_PEX_ACCESS_FAIL   0xB2
 
#define PCIE_CARD_ID_OFFSET   18
 
#define RESERVE_DEFAULT_VALUE   0
 
#define PCIE_CARD_NOT_PRESENT_BIT   BIT(0)
 
#define PCIE_CARD_NOT_ACCESSIBLE_BIT   BIT(1)
 
#define PCIE_CARD_DEVICE_NOT_READY_BIT   BIT(2)
 
#define FREYA_FW_VERSION_LENGTH   sizeof(freya_fw_info)
 
#define FREYA_READY   0
 
#define FREYA_NOT_READY   1
 
#define FREYA_SUPPORT_MODULE_IDENTIFIER   0
 
#define FREYA_NOT_SUPPORT_MODULE_IDENTIFIER   1
 

Enumerations

enum  CB_FIRMWARE_COMPONENT {
  CB_COMPNT_VR_XDPE15284 = 0 , CB_COMPNT_BIC = 2 , CB_COMPNT_PCIE_SWITCH0 = 3 , CB_COMPNT_PCIE_SWITCH1 = 4 ,
  CB_COMPNT_CPLD = 7 , CB_COMPNT_ACCL1_CH1_FREYA , CB_COMPNT_ACCL1_CH2_FREYA , CB_COMPNT_ACCL2_CH1_FREYA ,
  CB_COMPNT_ACCL2_CH2_FREYA , CB_COMPNT_ACCL3_CH1_FREYA , CB_COMPNT_ACCL3_CH2_FREYA , CB_COMPNT_ACCL4_CH1_FREYA ,
  CB_COMPNT_ACCL4_CH2_FREYA , CB_COMPNT_ACCL5_CH1_FREYA , CB_COMPNT_ACCL5_CH2_FREYA , CB_COMPNT_ACCL6_CH1_FREYA ,
  CB_COMPNT_ACCL6_CH2_FREYA , CB_COMPNT_ACCL7_CH1_FREYA , CB_COMPNT_ACCL7_CH2_FREYA , CB_COMPNT_ACCL8_CH1_FREYA ,
  CB_COMPNT_ACCL8_CH2_FREYA , CB_COMPNT_ACCL9_CH1_FREYA , CB_COMPNT_ACCL9_CH2_FREYA , CB_COMPNT_ACCL10_CH1_FREYA ,
  CB_COMPNT_ACCL10_CH2_FREYA , CB_COMPNT_ACCL11_CH1_FREYA , CB_COMPNT_ACCL11_CH2_FREYA , CB_COMPNT_ACCL12_CH1_FREYA ,
  CB_COMPNT_ACCL12_CH2_FREYA , CB_COMPNT_MAX
}
 

Functions

void pal_construct_ipmi_add_sel_msg (ipmi_msg *msg, common_addsel_msg_t *sel_msg)
 

Variables

struct SWITCH_MUX_INFO pcie_switch_mux_info [PEX_MAX_NUMBER]
 

Macro Definition Documentation

◆ BIC_FW_DATA_LENGTH

#define BIC_FW_DATA_LENGTH   7

◆ BIC_UPDATE_MAX_OFFSET

#define BIC_UPDATE_MAX_OFFSET   0x50000

◆ CC_PEX_ACCESS_FAIL

#define CC_PEX_ACCESS_FAIL   0xB2

◆ CC_PEX_NOT_POWER_ON

#define CC_PEX_NOT_POWER_ON   0xB0

◆ CC_PEX_PRE_READING_FAIL

#define CC_PEX_PRE_READING_FAIL   0xB1

◆ FREYA_FW_VERSION_LENGTH

#define FREYA_FW_VERSION_LENGTH   sizeof(freya_fw_info)

◆ FREYA_NOT_READY

#define FREYA_NOT_READY   1

◆ FREYA_NOT_SUPPORT_MODULE_IDENTIFIER

#define FREYA_NOT_SUPPORT_MODULE_IDENTIFIER   1

◆ FREYA_READY

#define FREYA_READY   0

◆ FREYA_SUPPORT_MODULE_IDENTIFIER

#define FREYA_SUPPORT_MODULE_IDENTIFIER   0

◆ IS_SECTOR_END_MASK

#define IS_SECTOR_END_MASK   0x80

◆ PCIE_CARD_DEVICE_NOT_READY_BIT

#define PCIE_CARD_DEVICE_NOT_READY_BIT   BIT(2)

◆ PCIE_CARD_ID_OFFSET

#define PCIE_CARD_ID_OFFSET   18

◆ PCIE_CARD_NOT_ACCESSIBLE_BIT

#define PCIE_CARD_NOT_ACCESSIBLE_BIT   BIT(1)

◆ PCIE_CARD_NOT_PRESENT_BIT

#define PCIE_CARD_NOT_PRESENT_BIT   BIT(0)

◆ RESERVE_DEFAULT_VALUE

#define RESERVE_DEFAULT_VALUE   0

◆ VR_FW_VERSION_LEN

#define VR_FW_VERSION_LEN   4

◆ WITHOUT_SECTOR_END_MASK

#define WITHOUT_SECTOR_END_MASK   0x7F

Enumeration Type Documentation

◆ CB_FIRMWARE_COMPONENT

enum number follow GT for now since bmc hasn't ready

Enumerator
CB_COMPNT_VR_XDPE15284 
CB_COMPNT_BIC 
CB_COMPNT_PCIE_SWITCH0 
CB_COMPNT_PCIE_SWITCH1 
CB_COMPNT_CPLD 
CB_COMPNT_ACCL1_CH1_FREYA 
CB_COMPNT_ACCL1_CH2_FREYA 
CB_COMPNT_ACCL2_CH1_FREYA 
CB_COMPNT_ACCL2_CH2_FREYA 
CB_COMPNT_ACCL3_CH1_FREYA 
CB_COMPNT_ACCL3_CH2_FREYA 
CB_COMPNT_ACCL4_CH1_FREYA 
CB_COMPNT_ACCL4_CH2_FREYA 
CB_COMPNT_ACCL5_CH1_FREYA 
CB_COMPNT_ACCL5_CH2_FREYA 
CB_COMPNT_ACCL6_CH1_FREYA 
CB_COMPNT_ACCL6_CH2_FREYA 
CB_COMPNT_ACCL7_CH1_FREYA 
CB_COMPNT_ACCL7_CH2_FREYA 
CB_COMPNT_ACCL8_CH1_FREYA 
CB_COMPNT_ACCL8_CH2_FREYA 
CB_COMPNT_ACCL9_CH1_FREYA 
CB_COMPNT_ACCL9_CH2_FREYA 
CB_COMPNT_ACCL10_CH1_FREYA 
CB_COMPNT_ACCL10_CH2_FREYA 
CB_COMPNT_ACCL11_CH1_FREYA 
CB_COMPNT_ACCL11_CH2_FREYA 
CB_COMPNT_ACCL12_CH1_FREYA 
CB_COMPNT_ACCL12_CH2_FREYA 
CB_COMPNT_MAX 

Function Documentation

◆ pal_construct_ipmi_add_sel_msg()

void pal_construct_ipmi_add_sel_msg ( ipmi_msg msg,
common_addsel_msg_t sel_msg 
)

Variable Documentation

◆ pcie_switch_mux_info

struct SWITCH_MUX_INFO pcie_switch_mux_info[PEX_MAX_NUMBER]
extern