|
OpenBIC
OpenSource Bridge-IC
|
#include <kernel.h>#include <stdlib.h>#include "plat_log.h"#include "modbus_server.h"#include <logging/log.h>#include <libutil.h>#include "plat_modbus.h"#include "plat_util.h"#include "plat_pwm.h"#include "plat_sensor_table.h"#include "fru.h"#include "plat_fru.h"
Macros | |
| #define | LOG_MAX_INDEX 0x0FFF |
| #define | LOG_MAX_NUM 30 |
| #define | AALC_FRU_LOG_START 0x4000 |
| #define | AALC_FRU_LOG_SIZE (LOG_MAX_NUM * sizeof(modbus_err_log_mapping)) |
Functions | |
| LOG_MODULE_REGISTER (plat_log) | |
| uint16_t | error_log_count (void) |
| void | log_transfer_to_modbus_data (uint16_t *modbus_data, uint8_t cmd_size, uint16_t order) |
| void | modbus_clear_log () |
| uint32_t | get_uptime_secs (void) |
| void | error_log_event (uint8_t sensor_num, bool val_normal) |
| void | init_load_eeprom_log (void) |
Variables | |
| const err_sensor_mapping | sensor_err_codes [] |
| const err_sensor_mapping | sensor_normal_codes [] |
| #define AALC_FRU_LOG_SIZE (LOG_MAX_NUM * sizeof(modbus_err_log_mapping)) |
| #define AALC_FRU_LOG_START 0x4000 |
| #define LOG_MAX_INDEX 0x0FFF |
| #define LOG_MAX_NUM 30 |
| uint16_t error_log_count | ( | void | ) |
| void error_log_event | ( | uint8_t | sensor_num, |
| bool | val_normal | ||
| ) |
| uint32_t get_uptime_secs | ( | void | ) |
| void init_load_eeprom_log | ( | void | ) |
| LOG_MODULE_REGISTER | ( | plat_log | ) |
| void log_transfer_to_modbus_data | ( | uint16_t * | modbus_data, |
| uint8_t | cmd_size, | ||
| uint16_t | order | ||
| ) |
| void modbus_clear_log | ( | ) |
| const err_sensor_mapping sensor_err_codes[] |
| const err_sensor_mapping sensor_normal_codes[] |