OpenBIC
OpenSource Bridge-IC
plat_isr.c File Reference
#include "plat_isr.h"
#include <logging/log.h>
#include "libipmi.h"
#include "kcs.h"
#include "power_status.h"
#include "sensor.h"
#include "snoop.h"
#include "plat_gpio.h"
#include "plat_class.h"
#include "plat_ipmi.h"
#include "plat_sensor_table.h"
#include "plat_i2c.h"
#include "plat_pmic.h"
#include "plat_dimm.h"
#include "oem_1s_handler.h"
#include "hal_gpio.h"
#include "hal_i2c.h"
#include "util_sys.h"
#include "util_worker.h"
#include "plat_mctp.h"
#include "plat_power.h"
Include dependency graph for plat_isr.c:

Macros

#define DETECT_VR_WDT_DELAY_S   10
 
#define DC_ON_5_SECOND   5
 
#define READ_PMIC_CRITICAL_ERROR_MS   100
 
#define PROC_FAIL_START_DELAY_SECOND   10
 
#define CATERR_START_DELAY_SECOND   2
 
#define MB_THROTTLE_DELAY_US   4
 

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
void send_gpio_interrupt (uint8_t gpio_num)
 
 K_WORK_DELAYABLE_DEFINE (SLP3_work, SLP3_handler)
 
void ISR_SLP3 ()
 
void ISR_POST_COMPLETE ()
 
 K_WORK_DELAYABLE_DEFINE (set_DC_on_5s_work, set_DC_on_delayed_status)
 
 K_WORK_DELAYABLE_DEFINE (read_pmic_critical_work, read_pmic_error_when_dc_off)
 
void ISR_DC_ON ()
 
void ISR_BMC_PRDY ()
 
 K_WORK_DELAYABLE_DEFINE (PROC_FAIL_work, PROC_FAIL_handler)
 
void ISR_PWRGD_CPU ()
 
 K_WORK_DELAYABLE_DEFINE (CAT_ERR_work, CAT_ERR_handler)
 
void ISR_CATERR ()
 
void ISR_PLTRST ()
 
void ISR_DBP_PRSNT ()
 
void ISR_FM_THROTTLE ()
 
void ISR_HSC_THROTTLE ()
 
 K_WORK_DELAYABLE_DEFINE (mb_throttle_work, mb_throttle_handler)
 
void ISR_MB_THROTTLE ()
 
void ISR_SOC_THMALTRIP ()
 
void ISR_SYS_THROTTLE ()
 
void ISR_PCH_THMALTRIP ()
 
void ISR_HSC_OC ()
 
void ISR_CPU_MEMHOT ()
 
void ISR_CPUVR_HOT ()
 
void ISR_PCH_PWRGD ()
 
void ISR_RMCA ()
 
void ISR_CPU_VPP_INT ()
 
void ISR_NMI ()
 
void ISR_RST_PLTRST_PLD ()
 
void smi_handler ()
 
 K_WORK_DELAYABLE_DEFINE (smi_work, smi_handler)
 
void ISR_SMI ()
 

Variables

uint8_t _1ou_m2_name_mapping_table [4]
 

Macro Definition Documentation

◆ CATERR_START_DELAY_SECOND

#define CATERR_START_DELAY_SECOND   2

◆ DC_ON_5_SECOND

#define DC_ON_5_SECOND   5

◆ DETECT_VR_WDT_DELAY_S

#define DETECT_VR_WDT_DELAY_S   10

◆ MB_THROTTLE_DELAY_US

#define MB_THROTTLE_DELAY_US   4

◆ PROC_FAIL_START_DELAY_SECOND

#define PROC_FAIL_START_DELAY_SECOND   10

◆ READ_PMIC_CRITICAL_ERROR_MS

#define READ_PMIC_CRITICAL_ERROR_MS   100

Function Documentation

◆ ISR_BMC_PRDY()

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

◆ ISR_CATERR()

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

◆ ISR_CPU_MEMHOT()

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

◆ ISR_CPU_VPP_INT()

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

◆ ISR_CPUVR_HOT()

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

◆ ISR_DBP_PRSNT()

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

◆ ISR_DC_ON()

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

◆ ISR_FM_THROTTLE()

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

◆ ISR_HSC_OC()

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

◆ ISR_HSC_THROTTLE()

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

◆ ISR_MB_THROTTLE()

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

◆ ISR_NMI()

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

◆ ISR_PCH_PWRGD()

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

◆ ISR_PCH_THMALTRIP()

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

◆ ISR_PLTRST()

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

◆ ISR_POST_COMPLETE()

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

◆ ISR_PWRGD_CPU()

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

◆ ISR_RMCA()

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

◆ ISR_RST_PLTRST_PLD()

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

◆ ISR_SLP3()

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

◆ ISR_SMI()

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

◆ ISR_SOC_THMALTRIP()

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

◆ ISR_SYS_THROTTLE()

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

◆ K_WORK_DELAYABLE_DEFINE() [1/7]

K_WORK_DELAYABLE_DEFINE ( CAT_ERR_work  ,
CAT_ERR_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [2/7]

K_WORK_DELAYABLE_DEFINE ( mb_throttle_work  ,
mb_throttle_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [3/7]

K_WORK_DELAYABLE_DEFINE ( PROC_FAIL_work  ,
PROC_FAIL_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [4/7]

K_WORK_DELAYABLE_DEFINE ( read_pmic_critical_work  ,
read_pmic_error_when_dc_off   
)

◆ K_WORK_DELAYABLE_DEFINE() [5/7]

K_WORK_DELAYABLE_DEFINE ( set_DC_on_5s_work  ,
set_DC_on_delayed_status   
)

◆ K_WORK_DELAYABLE_DEFINE() [6/7]

K_WORK_DELAYABLE_DEFINE ( SLP3_work  ,
SLP3_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [7/7]

K_WORK_DELAYABLE_DEFINE ( smi_work  ,
smi_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  )

◆ send_gpio_interrupt()

void send_gpio_interrupt ( uint8_t  gpio_num)
Here is the call graph for this function:

◆ smi_handler()

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

Variable Documentation

◆ _1ou_m2_name_mapping_table

uint8_t _1ou_m2_name_mapping_table[4]
Initial value:
= {
0x3A,
0x3C,
0x3E,
0x37,
}