Delete all kernel chip drivers, documentation and references. We are

moving to a user-space-only package, all the drivers are maintained in
the Linux kernel tree itself.

I tried to update the documentation a bit, but there's still a lot to
go. In fact, a complete rewrite seems to be needed.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4397 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-05-09 13:00:30 +00:00
1 parent 448c4a70e9
commit 9232f4eb43
136 files changed
+1633 -55767

No files matched your search

-18
View File
@@ -20,22 +20,9 @@
# verbatim in the rules, until it is redefined.
MODULE_DIR := kernel/include
KERNELINCLUDEDIR := $(MODULE_DIR)
KERNELCHIPSDIR := kernel/chips
KERNELINCLUDEFILES := $(MODULE_DIR)/i2c-dev.h $(MODULE_DIR)/sensors.h
$(KERNELINCLUDEDIR)/sensors.h: $(KERNELINCLUDEDIR)/sensors.h.template
cat $@.template > $@
$(AWK) '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' $(KERNELCHIPSDIR)/*.c >> $@
echo '#endif' >> $@
$(KERNELINCLUDEDIR)/sensors.hd:
( $(GREP) 'SENSORS SYSCTL START' /dev/null $(KERNELCHIPSDIR)/*.c | \
$(SED) -e 's/:.*//' -e 's#^#$(KERNELINCLUDEDIR)/sensors.h: #' ) > $@
# Get dependencies of sensors.h
INCLUDEFILES += $(MODULE_DIR)/sensors.hd
REMOVEKERNELINC := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(SYSINCLUDEDIR)/%,$(KERNELINCLUDEFILES))
install-all-kernel-include:
@@ -50,8 +37,3 @@ user_uninstall::
$(RM) $(REMOVEKERNELINC)
# Remove directory if empty, ignore failure
$(RMDIR) $(DESTDIR)$(SYSINCLUDEDIR) 2> /dev/null || true
clean-all-kernel-include:
$(RM) $(KERNELINCLUDEDIR)/*.h.install $(KERNELINCLUDEDIR)/sensors.h $(KERNELINCLUDEDIR)/sensors.hd
clean :: clean-all-kernel-include
-59
View File
@@ -1,59 +0,0 @@
#ifndef DS1307_H
#define DS1307_H
/*
* linux/include/linux/ds1307.h
*
* Author: Abraham van der Merwe <abraham@2d3d.co.za>
*
* Linux support for the Dallas Semiconductor DS1307 Serial Real-Time
* Clock.
*
* Based on code from the lm-sensors project which is available
* at http://www.lm-sensors.org/ and Russell King's PCF8583 Real-Time
* Clock driver (linux/drivers/acorn/char/pcf8583.c).
*
* This source code 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.
*/
#include <linux/types.h>
/* practically the same as struct rtc_time, but without tm_yday and tm_isdst */
struct ds1307_date {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
};
struct ds1307_memory {
u8 offset; /* 0 - 55 */
u8 buf[56]; /* data */
u8 length; /* offset + length <= 50 */
};
/* size of the rtc non-volatile ram */
#define DS1307_SIZE 56
/* the following frequencies are supported */
#define DS1307_FREQ_1HZ 1
#define DS1307_FREQ_4KHZ 4096
#define DS1307_FREQ_8KHZ 8192
#define DS1307_FREQ_32KHZ 32768
#define DS1307_GET_DATE _IOR ('d',0,struct ds1307_date *)
#define DS1307_SET_DATE _IOW ('d',1,struct ds1307_date *)
#define DS1307_IRQ_ON _IO ('d',2)
#define DS1307_IRQ_OFF _IO ('d',3)
#define DS1307_GET_FREQ _IOR ('d',4,u16 *)
#define DS1307_SET_FREQ _IOW ('d',5,u16 *)
#define DS1307_READ _IOR ('d',6,struct ds1307_memory *)
#define DS1307_WRITE _IOW ('d',7,struct ds1307_memory *)
#define DS1307_ENABLE _IO ('d',8)
#endif /* #ifdef DS1307_H */
File diff suppressed because it is too large. Load diff
-55
View File
@@ -1,55 +0,0 @@
/*
sensors.h - Part of lm_sensors, Linux kernel modules for hardware
monitoring
Copyright (c) 1998, 1999 Frodo Looijaard <frodol@dds.nl>
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., 675 Mass Ave, Cambridge, MA 02139, USA.
--- THIS FILE IS AUTOGENERATED DO NOT EDIT --
*/
#ifndef LIB_SENSORS_H
#define LIB_SENSORS_H
/* This file is intended to be included from userland utilities only.
*
* Individual drivers define their own SYSCTL and ALARM values in
* the driver itself surrounded by the following 'trigger' lines:
*
* -- SENSORS SYSCTL START --
* -- SENSORS SYSCTL END --
*/
/* From linux/i2c-proc.h */
/* Sysctl IDs */
#ifdef DEV_HWMON
#define DEV_SENSORS DEV_HWMON
#else /* ndef DEV_HWMOM */
#define DEV_SENSORS 2 /* The id of the lm_sensors directory within the
dev table */
#endif /* def DEV_HWMON */
/* The maximum length of the prefix */
#define SENSORS_PREFIX_MAX 20
#define SENSORS_CHIPS 1
struct i2c_chips_data {
int sysctl_id;
char name[SENSORS_PREFIX_MAX + 13];
};
-51
View File
@@ -1,51 +0,0 @@
/*
* Stolen from kernel 2.5.69
* device.h - generic, centralized driver model
* To make it easier to backport from 2.5
*
* Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org>
*
*/
#ifndef _SENSORS_COMPAT_H_
#define _SENSORS_COMPAT_H_
#include <linux/config.h>
/* debugging and troubleshooting/diagnostic helpers. */
#define dev_printk(level, dev, format, arg...) \
printk(level "%s: " format , (dev)->name , ## arg)
#ifdef DEBUG
#define dev_dbg(dev, format, arg...) \
dev_printk(KERN_DEBUG , dev , format , ## arg)
#else
#define dev_dbg(dev, format, arg...) do {} while (0)
#endif
#define dev_err(dev, format, arg...) \
dev_printk(KERN_ERR , dev , format , ## arg)
#define dev_info(dev, format, arg...) \
dev_printk(KERN_INFO , dev , format , ## arg)
#define dev_warn(dev, format, arg...) \
dev_printk(KERN_WARNING , dev , format , ## arg)
/* The part below, taken from linux/init.h, is required for compatibility with
kernels 2.4.16 and older, which don't know about __devexit_p. */
/* Functions marked as __devexit may be discarded at kernel link time, depending
on config options. Newer versions of binutils detect references from
retained sections to discarded sections and flag an error. Pointers to
__devexit functions must use __devexit_p(function_name), the wrapper will
insert either the function_name or NULL, depending on the config options.
*/
#ifndef __devexit_p
#if defined(MODULE) || defined(CONFIG_HOTPLUG)
#define __devexit_p(x) x
#else
#define __devexit_p(x) NULL
#endif
#endif /* __devexit_p */
#endif /* _SENSORS_COMPAT_H_ */
-98
View File
@@ -1,98 +0,0 @@
/*
sensors_vid.h - Part of lm_sensors, Linux kernel modules for hardware
monitoring
Copyright (c) 2002-2004 Mark D. Studebaker <mdsxyz123@yahoo.com>
With assistance from Trent Piepho <xyzzy@speakeasy.org>
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
This file contains common code for decoding VID pins.
This file is #included in various sensor chip drivers.
As the user is unlikely to load more than one driver which
includes this code we don't worry about the wasted space.
References: VRM x.y DC-DC Converter Design Guidelines,
VRD 10.0 Design Guide,
available at http://developer.intel.com
*/
/*
AMD Opteron processors don't follow the Intel VRM spec.
I'm going to "make up" 2.4 as the VRM spec for the Opterons.
No good reason just a mnemonic for the 24x Opteron processor
series
Opteron VID encoding is:
00000 = 1.550 V
00001 = 1.525 V
. . . .
11110 = 0.800 V
11111 = 0.000 V (off)
*/
/*
Legal val values 00 - 1F except for VRD 10.0, 0x00-0x3f.
vrm is the Intel VRM document version.
Note: vrm version is scaled by 10 and the return value is scaled by 1000
to avoid floating point in the kernel.
*/
static inline int vid_from_reg(int val, int vrm)
{
int vid;
switch(vrm) {
case 100: /* VRD 10.0 */
val &= 0x3f;
if((val & 0x1f) == 0x1f)
return 0;
if((val & 0x1f) <= 0x09 || val == 0x0a)
vid = 10875 - (val & 0x1f) * 250;
else
vid = 18625 - (val & 0x1f) * 250;
if(val & 0x20)
vid -= 125;
vid /= 10; /* only return 3 dec. places for now */
return vid;
case 24: /* Opteron processor */
val &= 0x1f;
return(val == 0x1f ? 0 : 1550 - val * 25);
case 91: /* VRM 9.1 */
case 90: /* VRM 9.0 */
val &= 0x1f;
return(val == 0x1f ? 0 :
1850 - val * 25);
case 85: /* VRM 8.5 */
val &= 0x1f;
return((val & 0x10 ? 25 : 0) +
((val & 0x0f) > 0x04 ? 2050 : 1250) -
((val & 0x0f) * 50));
case 84: /* VRM 8.4 */
val &= 0x0f;
/* fall through */
default: /* VRM 8.2 */
val &= 0x1f;
return(val == 0x1f ? 0 :
val & 0x10 ? 5100 - (val) * 100 :
2050 - (val) * 50);
}
}