OpenBIC
OpenSource Bridge-IC
plat_util.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SENSOR_NUM_SYSTEM_STATUS   0x10
 
#define SENSOR_NUM_SYS_STA   0x46
 
#define IPMI_EVENT_OFFSET_SYS_M2PRESENT   0x80
 
#define IPMI_EVENT_OFFSET_SYS_INA231_PWR_ALERT   0x81
 
#define IPMI_EVENT_OFFSET_SYS_HSC_PWR_ALERT   0x82
 
#define IPMI_EVENT_OFFSET_SYS_IRQ_P12V_E1S_FLT   0x83
 
#define IPMI_EVENT_OFFSET_SYS_IRQ_P3V3_E1S_FLT   0x84
 
#define IPMI_EVENT_OFFSET_SYS_IRQ_P12V_EDGE_FLT   0x85
 
#define E1S_BOARD_TYPE   0x07
 

Enumerations

enum  NOSIE_E {
  NOSIE_E_M2PRSNT_A = 0 , NOSIE_E_M2PRSNT_B , NOSIE_E_M2PRSNT_C , NOSIE_E_M2PRSNT_D ,
  NOSIE_E_M2PRSNT_MAX
}
 
enum  DEASSERT_CHK_TYPE_E {
  DEASSERT_CHK_TYPE_E_INA231_ALERT_0 , DEASSERT_CHK_TYPE_E_INA231_ALERT_1 , DEASSERT_CHK_TYPE_E_INA231_ALERT_2 , DEASSERT_CHK_TYPE_E_INA231_ALERT_3 ,
  DEASSERT_CHK_TYPE_E_MAX
}
 

Functions

void delay_function (uint32_t delay_time, void *func, uint32_t arg1, uint32_t arg2)
 
uint8_t ignore_noise (uint8_t idx, uint32_t m_sec)
 
void add_sel (uint8_t sensor_type, uint8_t event_type, uint8_t sensor_number, uint8_t event_data1, uint8_t event_data2, uint8_t event_data3)
 
void add_sel_work (uint32_t sel_msg_addr)
 
uint8_t assert_func (DEASSERT_CHK_TYPE_E assert_type)
 
void deassert_func_handler (DEASSERT_CHK_TYPE_E idx)
 
void init_sel_sensor_num (void)
 
uint8_t get_sel_sensor_num (void)
 

Macro Definition Documentation

◆ E1S_BOARD_TYPE

#define E1S_BOARD_TYPE   0x07

◆ IPMI_EVENT_OFFSET_SYS_HSC_PWR_ALERT

#define IPMI_EVENT_OFFSET_SYS_HSC_PWR_ALERT   0x82

◆ IPMI_EVENT_OFFSET_SYS_INA231_PWR_ALERT

#define IPMI_EVENT_OFFSET_SYS_INA231_PWR_ALERT   0x81

◆ IPMI_EVENT_OFFSET_SYS_IRQ_P12V_E1S_FLT

#define IPMI_EVENT_OFFSET_SYS_IRQ_P12V_E1S_FLT   0x83

◆ IPMI_EVENT_OFFSET_SYS_IRQ_P12V_EDGE_FLT

#define IPMI_EVENT_OFFSET_SYS_IRQ_P12V_EDGE_FLT   0x85

◆ IPMI_EVENT_OFFSET_SYS_IRQ_P3V3_E1S_FLT

#define IPMI_EVENT_OFFSET_SYS_IRQ_P3V3_E1S_FLT   0x84

◆ IPMI_EVENT_OFFSET_SYS_M2PRESENT

#define IPMI_EVENT_OFFSET_SYS_M2PRESENT   0x80

◆ SENSOR_NUM_SYS_STA

#define SENSOR_NUM_SYS_STA   0x46

◆ SENSOR_NUM_SYSTEM_STATUS

#define SENSOR_NUM_SYSTEM_STATUS   0x10

Enumeration Type Documentation

◆ DEASSERT_CHK_TYPE_E

Enumerator
DEASSERT_CHK_TYPE_E_INA231_ALERT_0 
DEASSERT_CHK_TYPE_E_INA231_ALERT_1 
DEASSERT_CHK_TYPE_E_INA231_ALERT_2 
DEASSERT_CHK_TYPE_E_INA231_ALERT_3 
DEASSERT_CHK_TYPE_E_MAX 

◆ NOSIE_E

enum NOSIE_E
Enumerator
NOSIE_E_M2PRSNT_A 
NOSIE_E_M2PRSNT_B 
NOSIE_E_M2PRSNT_C 
NOSIE_E_M2PRSNT_D 
NOSIE_E_M2PRSNT_MAX 

Function Documentation

◆ add_sel()

void add_sel ( uint8_t  sensor_type,
uint8_t  event_type,
uint8_t  sensor_number,
uint8_t  event_data1,
uint8_t  event_data2,
uint8_t  event_data3 
)

◆ add_sel_work()

void add_sel_work ( uint32_t  sel_msg_addr)
Here is the call graph for this function:

◆ assert_func()

uint8_t assert_func ( DEASSERT_CHK_TYPE_E  assert_type)
Here is the call graph for this function:

◆ deassert_func_handler()

void deassert_func_handler ( DEASSERT_CHK_TYPE_E  idx)

◆ delay_function()

void delay_function ( uint32_t  delay_time,
void *  func,
uint32_t  arg1,
uint32_t  arg2 
)
Here is the call graph for this function:

◆ get_sel_sensor_num()

uint8_t get_sel_sensor_num ( void  )

◆ ignore_noise()

uint8_t ignore_noise ( uint8_t  idx,
uint32_t  m_sec 
)
Here is the call graph for this function:

◆ init_sel_sensor_num()

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