File: digifan.h

package info (click to toggle)
digitools 1.03-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 196 kB
  • ctags: 318
  • sloc: ansic: 2,143; makefile: 119; sh: 44
file content (36 lines) | stat: -rw-r--r-- 1,448 bytes parent folder | download | duplicates (4)
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
/*  digifan.h - Fan control program for the ASUS Digimatrix.
 *
 *  (C) Copyright 2006 Andrew Calkin <calkina@geexbox.org>
 *  (C) Copyright 2004 Richard Taylor <richard@artaylor.co.uk>
 *
 *  based on code for accessing/initializing it8712/it8705 written by
 *
 *  (C) Copyright 2004 Wojtek Kaniewski <wojtekka@toxygen.net>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License Version 2 as
 *  published by the Free Software Foundation.
 *
 *  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., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#define FAN_OFF                   1
#define FAN_AUTO                  2
#define FAN_INTELLIGENT           3
#define AUTO                      0x80
#define FAN_MAX_PWM               0x7f
#define OFF                       0x5 /* Not completely off, but
                                          very low speed (safety) */

#define FAN_DEFAULT_MIN           30
#define FAN_DEFAULT_GRADIENT      4
#define FAN_DEFAULT_OFFSET        30
int digifan_main(int argc, char **argv);