OpenBIC
OpenSource Bridge-IC
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
plat_isr.c File Reference
#include <stdlib.h>
#include "plat_isr.h"
#include "plat_gpio.h"
#include "plat_sensor_table.h"
#include "libipmi.h"
#include "power_status.h"
#include "ipmi.h"
#include "plat_class.h"
#include "plat_i2c.h"
#include "pmbus.h"
#include "kcs.h"
#include "pcc.h"
#include "libutil.h"
#include "logging/log.h"
#include "plat_def.h"
#include "plat_pmic.h"
#include "plat_apml.h"
#include "util_worker.h"
Include dependency graph for plat_isr.c:

Classes

struct  fatal_error_work_info
 

Macros

#define DC_ON_5_SECOND   5
 
#define PROC_FAIL_START_DELAY_SECOND   10
 
#define READ_PMIC_CRITICAL_ERROR_MS   100
 
#define DETECT_VR_WDT_DELAY_S   10
 
#define FATAL_ERROR_DELAY_MSECOND   500
 

Functions

 LOG_MODULE_REGISTER (plat_isr)
 
void ISR_POST_COMPLETE ()
 
 K_WORK_DELAYABLE_DEFINE (set_DC_on_5s_work, set_DC_on_delayed_status)
 
 K_WORK_DELAYABLE_DEFINE (PROC_FAIL_work, PROC_FAIL_handler)
 
 K_WORK_DELAYABLE_DEFINE (read_pmic_critical_work, read_pmic_error_when_dc_off)
 
void ISR_DC_ON ()
 
 K_WORK_DELAYABLE_DEFINE (SLP3_work, SLP3_handler)
 
void ISR_SLP3 ()
 
void ISR_DBP_PRSNT ()
 
void ISR_HSC_THROTTLE ()
 
void ISR_MB_THROTTLE ()
 
void ISR_SOC_THMALTRIP ()
 
void ISR_SYS_THROTTLE ()
 
void ISR_HSC_OC ()
 
void ISR_PVDDCR_CPU0_OCP ()
 
void ISR_PVDDCR_CPU1_OCP ()
 
void ISR_PVDD11_S3_OCP ()
 
void ISR_UV_DETECT ()
 
void IST_PLTRST ()
 
void ISR_APML_ALERT ()
 

Macro Definition Documentation

◆ DC_ON_5_SECOND

#define DC_ON_5_SECOND   5

◆ DETECT_VR_WDT_DELAY_S

#define DETECT_VR_WDT_DELAY_S   10

◆ FATAL_ERROR_DELAY_MSECOND

#define FATAL_ERROR_DELAY_MSECOND   500

◆ 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_APML_ALERT()

void ISR_APML_ALERT ( )
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_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_POST_COMPLETE()

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

◆ ISR_PVDD11_S3_OCP()

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

◆ ISR_PVDDCR_CPU0_OCP()

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

◆ ISR_PVDDCR_CPU1_OCP()

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

◆ ISR_SLP3()

void ISR_SLP3 ( )
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:

◆ ISR_UV_DETECT()

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

◆ IST_PLTRST()

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

◆ K_WORK_DELAYABLE_DEFINE() [1/4]

K_WORK_DELAYABLE_DEFINE ( PROC_FAIL_work  ,
PROC_FAIL_handler   
)

◆ K_WORK_DELAYABLE_DEFINE() [2/4]

K_WORK_DELAYABLE_DEFINE ( read_pmic_critical_work  ,
read_pmic_error_when_dc_off   
)

◆ K_WORK_DELAYABLE_DEFINE() [3/4]

K_WORK_DELAYABLE_DEFINE ( set_DC_on_5s_work  ,
set_DC_on_delayed_status   
)

◆ K_WORK_DELAYABLE_DEFINE() [4/4]

K_WORK_DELAYABLE_DEFINE ( SLP3_work  ,
SLP3_handler   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_isr  )