5 #include <sys/sysctl.h>
6 #include <sys/sensors.h>
7 #include <machine/apmvar.h>
9 void update_obsd_sensors(void);
10 void get_obsd_vendor(char *buf, size_t client_buffer_size);
11 void get_obsd_product(char *buf, size_t client_buffer_size);
13 #define OBSD_MAX_SENSORS 256
14 struct obsd_sensors_struct {
16 float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
17 unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
18 float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
20 struct obsd_sensors_struct obsd_sensors;
22 #if defined(i386) || defined(__i386__)
23 typedef struct apm_power_info *apm_info_t;
31 #include <sys/sysctl.h>
32 #include <sys/sensors.h>
33 #include <machine/apmvar.h>
35 void update_obsd_sensors(void);
36 void get_obsd_vendor(char *buf, size_t client_buffer_size);
37 void get_obsd_product(char *buf, size_t client_buffer_size);
39 #define OBSD_MAX_SENSORS 256
40 struct obsd_sensors_struct {
42 float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
43 unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
44 float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
46 struct obsd_sensors_struct obsd_sensors;
48 #if defined(i386) || defined(__i386__)
49 typedef struct apm_power_info *apm_info_t;