OpenBIC
OpenSource Bridge-IC
plat_event.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include "plat_cpld.h"
Include dependency graph for plat_event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _vr_fault_info
 

Macros

#define HAMSA_SMB_ERR_EVENT_HEADER   0x60
 
#define BOOTSTRAP_SET_AFTER_PWR_EN   0x54
 
#define HAMSA_MFIO22_ERR_EVENT   0x55
 
#define MEDHA0_MFIO24_ERR_EVENT   0x56
 
#define MEDHA1_MFIO24_ERR_EVENT   0x57
 
#define HAMSA_MFIO23_ERR_EVENT   0x58
 
#define MEDHA0_MFIO31_ERR_EVENT   0x59
 
#define MEDHA1_MFIO31_ERR_EVENT   0x5A
 
#define ASIC_MONITOR_TEMP_REG   0x70
 
#define ASIC_MONITOR_TEMP_REG_LEN   10
 

Typedefs

typedef struct _vr_fault_info vr_fault_info
 

Enumerations

enum  event_type { VR_POWER_FAULT = 0x01 , ASIC_MODULE_ERROR = 0x29 , VR_POWER_FAULT = 0x01 , ASIC_MODULE_ERROR = 0x29 }
 

Functions

struct __attribute__ ((packed)) _plat_asic_error_event
 
void process_mtia_vr_power_fault_sel (cpld_info *cpld_info, uint8_t *current_cpld_value)
 
void plat_set_ac_on_log ()
 
void plat_set_dc_on_log (bool is_assert)
 
void plat_set_iris_temp_error_log (bool is_assert, uint8_t sensor_id)
 
void asic_thermtrip_error_log (bool is_assert)
 
void plat_asic_error_error_log (bool is_assert, plat_asic_error_event event)
 
plat_asic_error_eventplat_get_asic_error_event ()
 
int read_asic_reg (uint8_t reg, uint8_t *data, uint8_t len)
 

Variables

 plat_asic_error_event
 

Macro Definition Documentation

◆ ASIC_MONITOR_TEMP_REG

#define ASIC_MONITOR_TEMP_REG   0x70

◆ ASIC_MONITOR_TEMP_REG_LEN

#define ASIC_MONITOR_TEMP_REG_LEN   10

◆ BOOTSTRAP_SET_AFTER_PWR_EN

#define BOOTSTRAP_SET_AFTER_PWR_EN   0x54

◆ HAMSA_MFIO22_ERR_EVENT

#define HAMSA_MFIO22_ERR_EVENT   0x55

◆ HAMSA_MFIO23_ERR_EVENT

#define HAMSA_MFIO23_ERR_EVENT   0x58

◆ HAMSA_SMB_ERR_EVENT_HEADER

#define HAMSA_SMB_ERR_EVENT_HEADER   0x60

◆ MEDHA0_MFIO24_ERR_EVENT

#define MEDHA0_MFIO24_ERR_EVENT   0x56

◆ MEDHA0_MFIO31_ERR_EVENT

#define MEDHA0_MFIO31_ERR_EVENT   0x59

◆ MEDHA1_MFIO24_ERR_EVENT

#define MEDHA1_MFIO24_ERR_EVENT   0x57

◆ MEDHA1_MFIO31_ERR_EVENT

#define MEDHA1_MFIO31_ERR_EVENT   0x5A

Typedef Documentation

◆ vr_fault_info

typedef struct _vr_fault_info vr_fault_info

Enumeration Type Documentation

◆ event_type

enum event_type
Enumerator
VR_POWER_FAULT 
ASIC_MODULE_ERROR 
VR_POWER_FAULT 
ASIC_MODULE_ERROR 

Function Documentation

◆ __attribute__()

struct __attribute__ ( (packed)  )

◆ asic_thermtrip_error_log()

void asic_thermtrip_error_log ( bool  is_assert)
Here is the call graph for this function:

◆ plat_asic_error_error_log()

void plat_asic_error_error_log ( bool  is_assert,
plat_asic_error_event  event 
)

◆ plat_get_asic_error_event()

plat_asic_error_event * plat_get_asic_error_event ( )

◆ plat_set_ac_on_log()

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

◆ plat_set_dc_on_log()

void plat_set_dc_on_log ( bool  is_assert)
Here is the call graph for this function:

◆ plat_set_iris_temp_error_log()

void plat_set_iris_temp_error_log ( bool  is_assert,
uint8_t  sensor_id 
)
Here is the call graph for this function:

◆ process_mtia_vr_power_fault_sel()

void process_mtia_vr_power_fault_sel ( cpld_info cpld_info,
uint8_t *  current_cpld_value 
)
Here is the call graph for this function:

◆ read_asic_reg()

int read_asic_reg ( uint8_t  reg,
uint8_t *  data,
uint8_t  len 
)
Here is the call graph for this function:

Variable Documentation

◆ plat_asic_error_event

plat_asic_error_event