OpenBIC
OpenSource Bridge-IC
|
#include <kernel.h>
#include <stdlib.h>
#include <logging/log.h>
#include <libutil.h>
#include "plat_sensor_table.h"
#include "fru.h"
#include "plat_fru.h"
#include "plat_i2c.h"
#include "plat_log.h"
#include "plat_event.h"
#include "plat_hook.h"
#include "plat_class.h"
Classes | |
struct | _vr_ubc_device_table_ |
struct | _vr_error_callback_info_ |
Macros | |
#define | LOG_MAX_INDEX 0x0FFF |
#define | LOG_MAX_NUM 100 |
#define | AEGIS_FRU_LOG_START 0x0000 |
#define | EEPROM_MAX_WRITE_TIME 5 |
#define | AEGIS_CPLD_ADDR (0x4C >> 1) |
#define | I2C_BUS_CPLD I2C_BUS5 |
#define | AEGIS_CPLD_VR_VENDOR_TYPE_REG 0x1C |
#define | ERROR_CODE_TYPE_SHIFT 13 |
Typedefs | |
typedef struct _vr_ubc_device_table_ | vr_ubc_device_table |
typedef struct _vr_error_callback_info_ | vr_error_callback_info |
Enumerations | |
enum | VR_UBC_INDEX_E { UBC_1 = 1 , UBC_2 , VR_1 , VR_2 , VR_3 , VR_4 , VR_5 , VR_6 , VR_7 , VR_8 , VR_9 , VR_10 , VR_11 , VR_MAX } |
Functions | |
LOG_MODULE_REGISTER (plat_log) | |
void | plat_log_read (uint8_t *log_data, uint8_t cmd_size, uint16_t order) |
void | plat_clear_log () |
bool | plat_dump_cpld (uint8_t offset, uint8_t length, uint8_t *data) |
bool | get_vr_status_word (uint8_t bus, uint8_t addr, uint8_t *vr_status_word) |
bool | vr_fault_get_error_data (uint8_t sensor_id, uint8_t device_id, uint8_t *data) |
bool | get_error_data (uint16_t error_code, uint8_t *data) |
void | error_log_event (uint16_t error_code, bool log_status) |
void | reset_error_log_event (uint8_t err_type) |
uint8_t | plat_log_get_num (void) |
void | find_last_log_position () |
void | init_load_eeprom_log (void) |
Variables | |
vr_ubc_device_table | vr_device_table [] |
vr_error_callback_info | vr_error_callback_info_table [] |
#define AEGIS_CPLD_ADDR (0x4C >> 1) |
#define AEGIS_CPLD_VR_VENDOR_TYPE_REG 0x1C |
#define AEGIS_FRU_LOG_START 0x0000 |
#define EEPROM_MAX_WRITE_TIME 5 |
#define ERROR_CODE_TYPE_SHIFT 13 |
#define I2C_BUS_CPLD I2C_BUS5 |
#define LOG_MAX_INDEX 0x0FFF |
#define LOG_MAX_NUM 100 |
typedef struct _vr_error_callback_info_ vr_error_callback_info |
typedef struct _vr_ubc_device_table_ vr_ubc_device_table |
enum VR_UBC_INDEX_E |
void error_log_event | ( | uint16_t | error_code, |
bool | log_status | ||
) |
void find_last_log_position | ( | ) |
bool get_error_data | ( | uint16_t | error_code, |
uint8_t * | data | ||
) |
bool get_vr_status_word | ( | uint8_t | bus, |
uint8_t | addr, | ||
uint8_t * | vr_status_word | ||
) |
void init_load_eeprom_log | ( | void | ) |
LOG_MODULE_REGISTER | ( | plat_log | ) |
void plat_clear_log | ( | ) |
bool plat_dump_cpld | ( | uint8_t | offset, |
uint8_t | length, | ||
uint8_t * | data | ||
) |
uint8_t plat_log_get_num | ( | void | ) |
void plat_log_read | ( | uint8_t * | log_data, |
uint8_t | cmd_size, | ||
uint16_t | order | ||
) |
void reset_error_log_event | ( | uint8_t | err_type | ) |
bool vr_fault_get_error_data | ( | uint8_t | sensor_id, |
uint8_t | device_id, | ||
uint8_t * | data | ||
) |
vr_ubc_device_table vr_device_table[] |
vr_error_callback_info vr_error_callback_info_table[] |