summaryrefslogtreecommitdiff
path: root/src/pmdas/lmsensors/lmsensors.h
blob: 14cbb9b70f06f893c9920b8f3f00c9951ccc70c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 * Original implementation by Troy Dawson (dawson@fnal.gov)
 *  
 * Copyright (c) 2001,2004 Silicon Graphics, Inc.  All Rights Reserved.
 * 
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */ 

typedef struct {
	int total;
	int n_lm75;
	int n_lm79;
	int n_lm87;
	int n_w83781d;
	int n_mtp008;
	char s_lm75[2][1024] ;
	char s_lm79[2][1024] ;
	char s_lm87[2][1024] ;
	char s_w83781d[2][1024] ;
	char s_mtp008[2][1024] ;
} chips;

typedef struct {
        float temp;
} lm75;
 
typedef struct {
	int fan1;
	int fan2;
	int fan3;
	int fan_div;
	float temp;
	int alarms;
	float VCore1;
	float VCore2;
	float p33V;
	float p5V;
	float p12V;
	float n12V;
	float n5V;
	float vid;
} lm79;
 
typedef struct {
	int fan1;
	int fan2;
	float temp1;
	float CPUtemp;
	float Vccp1;
	float Vccp2;
	float p25V;
	float p33V;
	float p5V;
	float p12V;
	float vid;
} lm87;

typedef struct {
	int fan1;
	int fan2;
	int fan3;
	int fan_div;
	float temp1;
	float temp2;
	float temp3;
	int alarms;
	int beep;
	float VCore1;
	float VCore2;
	float p33V;
	float p5V;
	float p12V;
	float n12V;
	float n5V;
	float vid;
} w83781d;

typedef struct {
	int fan1;
	int fan2;
	int fan3;
	float temp1;
	float temp2;
	float VCore1;
	float VCore2;
	float p33V;
	float p12V;
	float n12V;
	float vid;
	float vtt;
} mtp008;

extern void get_chips();
extern lm75 get_lm75();
extern lm79 get_lm79();
extern lm87 get_lm87();
extern w83781d get_w83781d();
extern mtp008 get_mtp008();
extern int get_file(char *, char *);
extern int get_int(char * , int);
extern float get_float(char * , int);