root/lm-sensors/trunk/kernel/include/sensors.h.template @ 2699

Revision 2699, 1.6 KB (checked in by khali, 9 years ago)

Warn that the sensors.h file is generated from a template.

Patch by Rudolf Marek.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/*
2    sensors.h - Part of lm_sensors, Linux kernel modules for hardware
3                monitoring
4    Copyright (c) 1998, 1999  Frodo Looijaard <frodol@dds.nl>
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
20    --- THIS FILE IS AUTOGENERATED DO NOT EDIT --
21*/
22
23#ifndef LIB_SENSORS_H
24#define LIB_SENSORS_H
25
26/* This file is intended to be included from userland utilities only.
27 *
28 * Individual drivers define their own SYSCTL and ALARM values in
29 * the driver itself surrounded by the following 'trigger' lines:
30 *
31 *   -- SENSORS SYSCTL START --
32 *   -- SENSORS SYSCTL END --
33 */
34
35
36/* From linux/i2c-proc.h */
37
38/* Sysctl IDs */
39#ifdef DEV_HWMON
40#define DEV_SENSORS DEV_HWMON
41#else                           /* ndef DEV_HWMOM */
42#define DEV_SENSORS 2           /* The id of the lm_sensors directory within the
43                                   dev table */
44#endif                          /* def DEV_HWMON */
45
46/* The maximum length of the prefix */
47#define SENSORS_PREFIX_MAX 20
48
49#define SENSORS_CHIPS 1
50struct i2c_chips_data {
51        int sysctl_id;
52        char name[SENSORS_PREFIX_MAX + 13];
53};
54
55
Note: See TracBrowser for help on using the browser.