Changeset 496
- Timestamp:
- 07/19/99 13:45:27 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 7 removed
- 28 modified
-
Makefile (modified) (5 diffs)
-
archive (deleted)
-
kernel/Module.mk (modified) (1 diff)
-
kernel/busses/i2c-ali15x3.c (modified) (1 diff)
-
kernel/busses/i2c-hydra.c (modified) (1 diff)
-
kernel/busses/i2c-isa.c (modified) (1 diff)
-
kernel/busses/i2c-piix4.c (modified) (1 diff)
-
kernel/busses/i2c-via.c (modified) (1 diff)
-
kernel/busses/i2c-voodoo3.c (modified) (1 diff)
-
kernel/chips/adm1021.c (modified) (1 diff)
-
kernel/chips/adm9240.c (modified) (1 diff)
-
kernel/chips/bt869.c (modified) (1 diff)
-
kernel/chips/eeprom.c (modified) (1 diff)
-
kernel/chips/gl518sm.c (modified) (1 diff)
-
kernel/chips/icspll.c (modified) (1 diff)
-
kernel/chips/lm75.c (modified) (1 diff)
-
kernel/chips/lm78.c (modified) (1 diff)
-
kernel/chips/lm80.c (modified) (1 diff)
-
kernel/chips/ltc1710.c (modified) (1 diff)
-
kernel/chips/matorb.c (modified) (1 diff)
-
kernel/chips/maxilife.c (modified) (1 diff)
-
kernel/chips/sis5595.c (modified) (1 diff)
-
kernel/chips/w83781d.c (modified) (1 diff)
-
kernel/i2c-dev.c (deleted)
-
kernel/i2c-proc.c (deleted)
-
kernel/include/Module.mk (modified) (1 diff)
-
kernel/include/i2c-dev.h (deleted)
-
kernel/include/i2c-isa.h (modified) (2 diffs)
-
kernel/include/i2c.h (deleted)
-
kernel/include/sensors.h (modified) (1 diff)
-
kernel/include/smbus.h (deleted)
-
kernel/sensors.c (modified) (1 diff)
-
kernel/smbus.c (deleted)
-
prog/detect/i2cdetect.c (modified) (1 diff)
-
prog/dump/i2cdump.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/Makefile
r495 r496 27 27 LINUX_HEADERS=/usr/include 28 28 29 # If you have installed the i2c header at some other place (like 30 # /usr/local/include/linux), set that directory here. Please check this out 31 # if you get strange compilation errors; the default Linux i2c headers 32 # may be used mistakenly. 33 I2C_HEADERS=/usr/local/include 34 29 35 # The location of linux itself. This is only used to determine whether you 30 36 # use a SMP kernel in the magic invocation just below. … … 44 50 #MODVER := 0 45 51 #MODVER := 1 46 47 # Uncomment the second line if you do not want to compile the included48 # i2c modules. WARNING! If the i2c module version does not match the49 # smbus/sensor module versions, you will get into severe problems.50 # If you want to use a self-compiled version of the i2c modules, make51 # sure <linux/i2c.h> contains the *correct* i2c header file! The stock52 # Linux 2.1.xxx and 2.2.x modules are *not* good enough; you really need53 # Simon Vogl's version!54 I2C := 155 #I2C := 056 52 57 53 # Uncomment the second line if you are a developer. This will enable many … … 130 126 SRCDIRS := kernel kernel/busses kernel/chips kernel/include lib prog/sensors \ 131 127 prog/dump prog/detect etc 132 ifeq ($(I2C),1)133 SRCDIRS += i2c i2c/detect i2c/drivers i2c/eeprom134 endif135 128 136 129 # Some often-used commands with default options … … 150 143 # ARCFLAGS are used to create archive object files (static libraries), and 151 144 # LIBCFLAGS are for shared library objects. 152 CFLAGS := -I. -I i2c -Ikernel/include -I$(LINUX_HEADERS) -O2 -DLM_SENSORS145 CFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) -O2 153 146 154 147 ifeq ($(DEBUG),1) … … 159 152 CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \ 160 153 -Wcast-align -Wwrite-strings -Wnested-externs -Winline 161 endif162 163 ifeq ($(I2C),1)164 CFLAGS += -DI2C165 154 endif 166 155 -
lm-sensors/trunk/kernel/Module.mk
r207 r496 23 23 # Regrettably, even 'simply expanded variables' will not put their currently 24 24 # defined value verbatim into the command-list of rules... 25 KERNELTARGETS := $(MODULE_DIR)/smbus.o \ 26 $(MODULE_DIR)/i2c-proc.o \ 27 $(MODULE_DIR)/i2c-dev.o $(MODULE_DIR)/sensors.o 25 KERNELTARGETS := $(MODULE_DIR)/sensors.o 28 26 29 27 # Include all dependency files -
lm-sensors/trunk/kernel/busses/i2c-ali15x3.c
r310 r496 75 75 #include <linux/sched.h> 76 76 #include <linux/ioport.h> 77 #include "smbus.h"77 #include <linux/i2c.h> 78 78 #include "version.h" 79 79 #include "compat.h" -
lm-sensors/trunk/kernel/busses/i2c-hydra.c
r442 r496 32 32 #include <linux/types.h> 33 33 34 #include "i2c.h"35 #include "algo-bit.h"34 #include <linux/i2c.h> 35 #include <linux/i2c-algo-bit.h> 36 36 #include "compat.h" 37 37 -
lm-sensors/trunk/kernel/busses/i2c-isa.c
r477 r496 30 30 #include "compat.h" 31 31 32 #include "i2c.h" 33 #ifdef I2C_SPINLOCK 34 #include <asm/spinlock.h> 35 #else 32 #include <linux/i2c.h> 36 33 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,0,19) 37 34 #include <linux/sched.h> 38 35 #else 39 36 #include <asm/semaphore.h> 40 #endif41 37 #endif 42 38 -
lm-sensors/trunk/kernel/busses/i2c-piix4.c
r357 r496 29 29 #include <linux/sched.h> 30 30 #include <linux/ioport.h> 31 #include "smbus.h"31 #include <linux/i2c.h> 32 32 #include "version.h" 33 33 #include "compat.h" -
lm-sensors/trunk/kernel/busses/i2c-via.c
r476 r496 34 34 #endif 35 35 36 #include "i2c.h"37 #include "algo-bit.h"36 #include <linux/i2c.h> 37 #include <linux/i2c-algo-bit.h> 38 38 #include "compat.h" 39 39 -
lm-sensors/trunk/kernel/busses/i2c-voodoo3.c
r473 r496 37 37 #include <linux/ioport.h> 38 38 #include <linux/delay.h> 39 #include "smbus.h"39 #include <linux/i2c.h> 40 40 #include "version.h" 41 41 #include "compat.h" -
lm-sensors/trunk/kernel/chips/adm1021.c
r467 r496 22 22 #include <linux/module.h> 23 23 #include <linux/malloc.h> 24 #include "smbus.h"24 #include <linux/i2c.h> 25 25 #include "sensors.h" 26 #include "i2c.h"27 26 #include "i2c-isa.h" 28 27 #include "version.h" -
lm-sensors/trunk/kernel/chips/adm9240.c
r492 r496 55 55 #include <asm/io.h> 56 56 #include <linux/types.h> 57 #include "smbus.h"57 #include <linux/i2c.h> 58 58 #include "version.h" 59 59 #include "i2c-isa.h" 60 60 #include "sensors.h" 61 #include "i2c.h"62 61 #include "compat.h" 63 62 -
lm-sensors/trunk/kernel/chips/bt869.c
r467 r496 24 24 #include <linux/module.h> 25 25 #include <linux/malloc.h> 26 #include "smbus.h"26 #include <linux/i2c.h> 27 27 #include "sensors.h" 28 #include "i2c.h"29 28 #include "i2c-isa.h" 30 29 #include "version.h" -
lm-sensors/trunk/kernel/chips/eeprom.c
r467 r496 22 22 #include <linux/module.h> 23 23 #include <linux/malloc.h> 24 #include "smbus.h"24 #include <linux/i2c.h> 25 25 #include "sensors.h" 26 #include "i2c.h"27 26 #include "i2c-isa.h" 28 27 #include "version.h" -
lm-sensors/trunk/kernel/chips/gl518sm.c
r484 r496 23 23 #include <linux/module.h> 24 24 #include <linux/malloc.h> 25 #include "smbus.h"25 #include <linux/i2c.h> 26 26 #include "sensors.h" 27 #include "i2c.h"28 27 #include "version.h" 29 28 #include "compat.h" -
lm-sensors/trunk/kernel/chips/icspll.c
r467 r496 31 31 #include <linux/module.h> 32 32 #include <linux/malloc.h> 33 #include "smbus.h"33 #include <linux/i2c.h> 34 34 #include "sensors.h" 35 #include "i2c.h"36 35 #include "i2c-isa.h" 37 36 #include "version.h" -
lm-sensors/trunk/kernel/chips/lm75.c
r467 r496 21 21 #include <linux/module.h> 22 22 #include <linux/malloc.h> 23 #include "smbus.h"23 #include <linux/i2c.h> 24 24 #include "sensors.h" 25 #include "i2c.h"26 25 #include "i2c-isa.h" 27 26 #include "version.h" -
lm-sensors/trunk/kernel/chips/lm78.c
r467 r496 27 27 #include <asm/io.h> 28 28 #include <linux/types.h> 29 #include "smbus.h"29 #include <linux/i2c.h> 30 30 #include "version.h" 31 31 #include "i2c-isa.h" 32 32 #include "sensors.h" 33 #include "i2c.h"34 33 #include "compat.h" 35 34 -
lm-sensors/trunk/kernel/chips/lm80.c
r467 r496 28 28 #include <asm/io.h> 29 29 #include <linux/types.h> 30 #include "smbus.h"30 #include <linux/i2c.h> 31 31 #include "version.h" 32 32 #include "i2c-isa.h" 33 33 #include "sensors.h" 34 #include "i2c.h"35 34 #include "compat.h" 36 35 -
lm-sensors/trunk/kernel/chips/ltc1710.c
r467 r496 44 44 #include <linux/module.h> 45 45 #include <linux/malloc.h> 46 #include "smbus.h"46 #include <linux/i2c.h> 47 47 #include "sensors.h" 48 #include "i2c.h"49 48 #include "i2c-isa.h" 50 49 #include "version.h" -
lm-sensors/trunk/kernel/chips/matorb.c
r482 r496 25 25 #include <linux/module.h> 26 26 #include <linux/malloc.h> 27 #include "smbus.h"27 #include <linux/i2c.h> 28 28 #include "sensors.h" 29 #include "i2c.h"30 29 #include "i2c-isa.h" 31 30 #include "version.h" -
lm-sensors/trunk/kernel/chips/maxilife.c
r467 r496 47 47 #include <asm/io.h> 48 48 #include <linux/types.h> 49 #include "smbus.h"49 #include <linux/i2c.h> 50 50 #include "version.h" 51 51 #include "sensors.h" 52 #include "i2c.h"53 52 #include "compat.h" 54 53 -
lm-sensors/trunk/kernel/chips/sis5595.c
r493 r496 33 33 #include <asm/io.h> 34 34 #include <linux/types.h> 35 #include "smbus.h"35 #include <linux/i2c.h> 36 36 #include "version.h" 37 37 #include "i2c-isa.h" 38 38 #include "sensors.h" 39 #include "i2c.h"40 39 #include "compat.h" 41 40 -
lm-sensors/trunk/kernel/chips/w83781d.c
r472 r496 39 39 #include <asm/io.h> 40 40 #include <linux/types.h> 41 #include "smbus.h"41 #include <linux/i2c.h> 42 42 #include "version.h" 43 43 #include "i2c-isa.h" 44 44 #include "sensors.h" 45 #include "i2c.h"46 45 #include "compat.h" 47 46 -
lm-sensors/trunk/kernel/include/Module.mk
r207 r496 21 21 MODULE_DIR := kernel/include 22 22 23 KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/i2c-isa.h \24 $(MODULE_DIR)/smbus.h $(MODULE_DIR)/i2c-dev.h23 KERNELINCLUDEFILES := $(MODULE_DIR)/sensors.h $(MODULE_DIR)/i2c-isa.h 24 25 25 26 26 install-all-kernel-include: 27 27 $(MKDIR) $(SYSINCLUDEDIR) 28 for file in $(KERNELINCLUDEFILES) ; do \ 29 $(RM) $$file.install; \ 30 $(GREP) -v '/\* TBD \*/' $$file > $$file.install; \ 31 $(INSTALL) -o root -g root -m 644 $$file.install \ 32 $(SYSINCLUDEDIR)/`basename $$file`; \ 33 $(RM) $$file.install; \ 34 done 28 $(INSTALL) -o root -g root -m 644 $(KERNELINCLUDEFILES) $(SYSINCLUDEDIR) 29 35 30 install :: install-all-kernel-include 36 31 -
lm-sensors/trunk/kernel/include/i2c-isa.h
r477 r496 18 18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 19 */ 20 21 /* Important note: */ /* TBD */22 /* Lines like these, with the 'TBD' remark (To Be Deleted) */ /* TBD */23 /* WILL BE DELETED when this file is installed. */ /* TBD */24 /* This allows us to get rid of the ugly LM_SENSORS define */ /* TBD */25 20 26 21 … … 47 42 #endif 48 43 49 #ifdef LM_SENSORS /* TBD */ 50 #include "i2c.h" /* TBD */ 51 #else /* ndef LM_SENSORS */ /* TBD */ 52 #include <linux/i2c.h> 53 #endif /* def LM_SENSORS */ /* TBD */ 44 #include <linux/i2c.h> 54 45 55 46 /* Note that this driver is *not* built upon smbus.c, but is parallel to it. -
lm-sensors/trunk/kernel/include/sensors.h
r484 r496 18 18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 19 */ 20 21 /* Important note: */ /* TBD */22 /* Lines like these, with the 'TBD' remark (To Be Deleted) */ /* TBD */23 /* WILL BE DELETED when this file is installed. */ /* TBD */24 /* This allows us to get rid of the ugly LM_SENSORS define */ /* TBD */25 26 20 27 21 #ifndef SENSORS_SENSORS_H -
lm-sensors/trunk/kernel/sensors.c
r338 r496 26 26 27 27 #include "version.h" 28 #include "i2c.h"28 #include <linux/i2c.h> 29 29 #include "i2c-isa.h" 30 30 #include "sensors.h" 31 31 #include "compat.h" 32 #include "smbus.h"33 32 34 33 -
lm-sensors/trunk/prog/detect/i2cdetect.c
r176 r496 25 25 #include <unistd.h> 26 26 #include <fcntl.h> 27 #include "kernel/include/i2c-dev.h"27 #include <linux/i2c-dev.h> 28 28 29 29 void help(void) -
lm-sensors/trunk/prog/dump/i2cdump.c
r176 r496 24 24 #include <unistd.h> 25 25 #include <fcntl.h> 26 #include "kernel/include/i2c-dev.h"26 #include <linux/i2c-dev.h> 27 27 28 28 void help(void)
