Reduced number of syscalls
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
#ifndef ICX3_H
|
||||
#define ICX3_H
|
||||
|
||||
#include "evga-card.h"
|
||||
|
||||
#define ICX3_I2C_ADDR 0x2D
|
||||
|
||||
#define ICX3_REG_FANCONTROL 80
|
||||
@@ -111,14 +116,15 @@ static char *icx3_temp_sensor_names[] = {
|
||||
"PWR5",
|
||||
};
|
||||
|
||||
enum icx3_product_id check_for_icx3(char *i2c_dev_path);
|
||||
void print_icx3_fans(char *i2c_dev_path);
|
||||
void print_icx3_fans_oneline(char *i2c_dev_path);
|
||||
void print_icx3_temps(char *i2c_dev_path);
|
||||
void print_icx3_temps_oneline(char *i2c_dev_path);
|
||||
void get_available_fans(char *i2c_dev_path, char *fans_avail);
|
||||
void get_fan_status(struct icx3_fan_control *fans, char *i2c_dev_path);
|
||||
void get_temp_sensors(float *temps, char *i2c_dev_path);
|
||||
int open_i2c_dev(char *i2c_dev_path);
|
||||
void enable_write(int enable, char *i2c_dev_path);
|
||||
void set_fan(int fan, char *setting, char *i2c_dev_path);
|
||||
int icx3_init(struct card_info *card);
|
||||
void print_icx3_fans(struct card_info *card);
|
||||
void print_icx3_fans_oneline(struct card_info *card);
|
||||
void print_icx3_temps(struct card_info *card);
|
||||
void print_icx3_temps_oneline(struct card_info *card);
|
||||
void get_available_fans(char *fans_avail, struct card_info *card);
|
||||
void get_fan_status(struct icx3_fan_control *fans, struct card_info *card);
|
||||
void get_temp_sensors(float *temps, struct card_info *card);
|
||||
void enable_write(int enable, struct card_info *card);
|
||||
void set_fan(int fan, char *setting, struct card_info *card);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user