OpenBIC
OpenSource Bridge-IC
|
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "plat_i2c.h"
#include "sensor.h"
#include <logging/log.h>
#include <sys/util.h>
#include "plat_sensor_table.h"
#include "plat_modbus.h"
#include "modbus_server.h"
#include "plat_hwmon.h"
#include "adm1272.h"
#include "plat_log.h"
#include "plat_hook.h"
#include "plat_pwm.h"
#include "plat_status.h"
#include "plat_isr.h"
#include "plat_fru.h"
#include "plat_fsc.h"
Macros | |
#define | PUMP_RESET_FUNCTIONS(num) |
#define | TURN_OFF_HSC_OUTPUT 0 |
#define | TURN_ON_HSC_OUTPUT 1 |
#define | FAN_BORAD_COUNT_NUM 14 |
#define | PUMP_BORAD_COUNT_NUM 17 |
#define | BACKPLANE_BORAD_COUNT_NUM 18 |
#define | BRIDGE_BORAD_COUNT_NUM 19 |
Variables | |
uint8_t | hsc_pwe_cycle_tbl [] |
pump_running_time | pump_running_time_info [] |
#define BACKPLANE_BORAD_COUNT_NUM 18 |
#define BRIDGE_BORAD_COUNT_NUM 19 |
#define FAN_BORAD_COUNT_NUM 14 |
#define PUMP_BORAD_COUNT_NUM 17 |
#define PUMP_RESET_FUNCTIONS | ( | num | ) |
#define TURN_OFF_HSC_OUTPUT 0 |
#define TURN_ON_HSC_OUTPUT 1 |
bool clear_log_for_modbus_pump_setting | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool close_pump | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool get_pump_current_boot_unrunning_time | ( | uint8_t | pump_num, |
uint32_t * | return_uptime | ||
) |
bool get_pump_last_switch_time | ( | uint8_t | pump_num, |
uint32_t * | return_uptime | ||
) |
uint8_t get_pump_redundant_switch_time | ( | ) |
bool get_pump_uptime_secs | ( | uint8_t | pump_num, |
uint32_t * | return_uptime | ||
) |
void hsc_adm1272_pwr_ctrl | ( | sensor_cfg * | cfg, |
uint8_t | adm1272_reg, | ||
uint8_t | state | ||
) |
void hsc_xdp710_pwr_ctrl | ( | sensor_cfg * | cfg, |
uint8_t | xdp710_reg, | ||
uint8_t | state | ||
) |
K_TIMER_DEFINE | ( | pump_redundant_timer | , |
pump_redundant_handler | , | ||
pump_redundant_handler_disable | |||
) |
K_WORK_DEFINE | ( | clear_log_work | , |
modbus_clear_log | |||
) |
K_WORK_DEFINE | ( | rpu_pwr_cycle_work | , |
rpu_remote_power_cycle | |||
) |
LOG_MODULE_REGISTER | ( | plat_hwmon | ) |
bool modbus_clear_pump_running_time_function | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool modbus_pump_setting_unsupport_function | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
void pump_redundant_enable | ( | uint8_t | onoff | ) |
void pump_redundant_handler | ( | struct k_timer * | timer | ) |
void pump_redundant_handler_disable | ( | struct k_timer * | timer | ) |
bool pump_setting_set_auto_tune_flag | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool pump_setting_set_manual_flag | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool pump_setting_set_pump_redundant | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
uint8_t pwm_control | ( | uint8_t | group, |
uint8_t | duty | ||
) |
bool read_pump_running_time_data_from_eeprom | ( | uint8_t | pump_num, |
uint32_t * | return_data | ||
) |
void rpu_remote_power_cycle | ( | ) |
bool rpu_remote_power_cycle_function | ( | pump_reset_struct * | data, |
uint8_t | bit_val | ||
) |
bool set_all_pump_power | ( | bool | switch_val | ) |
void set_pump_redundant_switch_time | ( | uint8_t | time | ) |
void set_pump_redundant_switch_time_type | ( | uint8_t | type | ) |
bool set_pump_uptime_secs | ( | uint8_t | pump_1_set, |
uint8_t | pump_2_set, | ||
uint8_t | pump_3_set | ||
) |
uint8_t hsc_pwe_cycle_tbl[] |
pump_running_time pump_running_time_info[] |