OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <string.h>
#include "sdr.h"
#include "sensor.h"
#include "plat_sdr_table.h"
#include "plat_sensor_table.h"
#include "plat_ipmb.h"
#include <logging/log.h>
Functions | |
LOG_MODULE_REGISTER (sdr) | |
void | SDR_clear_ID (void) |
uint16_t | SDR_get_record_ID (uint16_t current_ID) |
bool | SDR_check_record_ID (uint16_t current_ID) |
uint16_t | SDR_get_RSV_ID (uint8_t rsv_table_index) |
bool | SDR_RSV_ID_check (uint16_t ID, uint8_t rsv_table_index) |
__weak void | pal_extend_full_sdr_table (void) |
int | get_sdr_index (uint8_t sensor_num) |
void | add_full_sdr_table (SDR_Full_sensor add_item) |
void | change_sensor_threshold (uint8_t sensor_num, uint8_t threshold_type, uint8_t change_value) |
void | change_sensor_mbr (uint8_t sensor_num, uint8_t mbr_type, uint16_t change_value) |
uint8_t | sdr_init (void) |
uint8_t | plat_get_sdr_size () |
__weak void | load_sdr_table (void) |
Variables | |
SDR_INFO | sdr_info |
bool | is_sdr_not_init = true |
SDR_Full_sensor | plat_sdr_table [] |
const int | SDR_TABLE_SIZE |
SDR_Full_sensor * | full_sdr_table |
uint8_t | sensor_config_size = 0 |
uint8_t | sdr_count = 0 |
void add_full_sdr_table | ( | SDR_Full_sensor | add_item | ) |
void change_sensor_mbr | ( | uint8_t | sensor_num, |
uint8_t | mbr_type, | ||
uint16_t | change_value | ||
) |
void change_sensor_threshold | ( | uint8_t | sensor_num, |
uint8_t | threshold_type, | ||
uint8_t | change_value | ||
) |
int get_sdr_index | ( | uint8_t | sensor_num | ) |
__weak void load_sdr_table | ( | void | ) |
LOG_MODULE_REGISTER | ( | sdr | ) |
__weak void pal_extend_full_sdr_table | ( | void | ) |
uint8_t plat_get_sdr_size | ( | ) |
bool SDR_check_record_ID | ( | uint16_t | current_ID | ) |
void SDR_clear_ID | ( | void | ) |
uint16_t SDR_get_record_ID | ( | uint16_t | current_ID | ) |
uint16_t SDR_get_RSV_ID | ( | uint8_t | rsv_table_index | ) |
uint8_t sdr_init | ( | void | ) |
bool SDR_RSV_ID_check | ( | uint16_t | ID, |
uint8_t | rsv_table_index | ||
) |
SDR_Full_sensor* full_sdr_table |
bool is_sdr_not_init = true |
|
extern |
uint8_t sdr_count = 0 |
SDR_INFO sdr_info |
|
extern |
uint8_t sensor_config_size = 0 |