1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
8 #include <sys/sysctl.h>
9 #include <sys/sensors.h>
10 #include <machine/apmvar.h>
12 void update_obsd_sensors(void);
13 void get_obsd_vendor(char *buf, size_t client_buffer_size);
14 void get_obsd_product(char *buf, size_t client_buffer_size);
16 #define OBSD_MAX_SENSORS 256
17 struct obsd_sensors_struct {
19 float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
20 unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
21 float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
23 struct obsd_sensors_struct obsd_sensors;
25 #if defined(i386) || defined(__i386__)
26 typedef struct apm_power_info *apm_info_t;
34 #include <sys/sysctl.h>
35 #include <sys/sensors.h>
36 #include <machine/apmvar.h>
38 void update_obsd_sensors(void);
39 void get_obsd_vendor(char *buf, size_t client_buffer_size);
40 void get_obsd_product(char *buf, size_t client_buffer_size);
42 #define OBSD_MAX_SENSORS 256
43 struct obsd_sensors_struct {
45 float temp[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
46 unsigned int fan[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
47 float volt[MAXSENSORDEVICES][OBSD_MAX_SENSORS];
49 struct obsd_sensors_struct obsd_sensors;
51 #if defined(i386) || defined(__i386__)
52 typedef struct apm_power_info *apm_info_t;