OpenBIC
OpenSource Bridge-IC
vr_fault.h File Reference
#include <stdlib.h>
#include <zephyr.h>
Include dependency graph for vr_fault.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cpld_vr_reg_t
 
struct  vr_pwr_fault_t
 
struct  _add_vr_sel_info
 

Macros

#define VR_CPLD_NO_PWR_FAULT   0x00
 
#define VR_TYPE_IS_UNKNOWN   0x00
 
#define VR_MONITOR_STOP_TIME   10
 

Typedefs

typedef struct _add_vr_sel_info add_vr_sel_info
 

Functions

uint8_t pal_get_vr_vender_type ()
 
void pal_record_vr_power_fault (uint8_t event_type, uint8_t error_type, uint8_t vr_data1, uint8_t vr_data2)
 
bool pal_skip_pmbus_cmd_code (uint8_t vendor_type, uint8_t cmd, uint8_t page)
 
void vr_pwr_fault_handler (struct k_work *work_item)
 

Variables

const vr_pwr_fault_t vr_pwr_fault_table []
 
const size_t vr_pwr_fault_table_size
 
const cpld_vr_reg_t cpld_vr_reg_table
 

Macro Definition Documentation

◆ VR_CPLD_NO_PWR_FAULT

#define VR_CPLD_NO_PWR_FAULT   0x00

◆ VR_MONITOR_STOP_TIME

#define VR_MONITOR_STOP_TIME   10

◆ VR_TYPE_IS_UNKNOWN

#define VR_TYPE_IS_UNKNOWN   0x00

Typedef Documentation

◆ add_vr_sel_info

Function Documentation

◆ pal_get_vr_vender_type()

uint8_t pal_get_vr_vender_type ( )

◆ pal_record_vr_power_fault()

void pal_record_vr_power_fault ( uint8_t  event_type,
uint8_t  error_type,
uint8_t  vr_data1,
uint8_t  vr_data2 
)
Here is the call graph for this function:

◆ pal_skip_pmbus_cmd_code()

bool pal_skip_pmbus_cmd_code ( uint8_t  vendor_type,
uint8_t  cmd,
uint8_t  page 
)

◆ vr_pwr_fault_handler()

void vr_pwr_fault_handler ( struct k_work *  work_item)
Here is the call graph for this function:

Variable Documentation

◆ cpld_vr_reg_table

const cpld_vr_reg_t cpld_vr_reg_table
extern

◆ vr_pwr_fault_table

const vr_pwr_fault_t vr_pwr_fault_table[]
extern

◆ vr_pwr_fault_table_size

const size_t vr_pwr_fault_table_size
extern