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;