Changeset 29
- Timestamp:
- 12/04/98 01:47:40 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 2 added
- 7 modified
-
TODO (modified) (1 diff)
-
kernel/Module.mk (modified) (1 diff)
-
kernel/chips/lm75.c (added)
-
kernel/chips/lm78.c (modified) (2 diffs)
-
kernel/include/sensors.h (modified) (3 diffs)
-
src/Module.mk (modified) (1 diff)
-
src/lm75.c (added)
-
src/lm78.c (modified) (2 diffs)
-
src/sensors.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/TODO
r22 r29 13 13 * Make lm78.c detect 'double hits', (same chip connected to both SMBus and 14 14 ISA). 15 * Better lm78 detection; insmod-time paramters to set addresses (difficult,16 because of all i2c busses!).15 * Better lm78/lm75 detection; insmod-time paramters to set addresses 16 (difficult, because of all i2c busses!). 17 17 * Check whether some lm78 functionality is chip-generic and can be moved to 18 18 sensors.c. 19 * Registrate which i2c addresses are used (a la ISA) for each adapter. 19 20 * Rename i2c-proc.c to i2c-user.c, and extend it with /dev entries; 20 21 or, create a better i2c-dev.c, that understands SMBus commands. -
lm-sensors/trunk/kernel/Module.mk
r19 r29 25 25 SRCTARGETS := $(MODULE_DIR)/smbus.o $(MODULE_DIR)/piix4.o $(MODULE_DIR)/isa.o \ 26 26 $(MODULE_DIR)/lm78.o $(MODULE_DIR)/sensors.o \ 27 $(MODULE_DIR)/i2c-proc.o 27 $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/lm75.o 28 28 29 29 HEADERFILES := $(MODULE_DIR)/sensors.h -
lm-sensors/trunk/kernel/chips/lm78.c
r28 r29 443 443 adapter, and check whether they are used here */ 444 444 445 if (smbus_read_byte_data(adapter,address, 1) == 0xff)445 if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff) 446 446 continue; 447 447 … … 466 466 467 467 468 /* Allocate space for a new client structure */ 468 /* Allocate space for a new client structure. To counter memory 469 ragmentation somewhat, we only do one kmalloc. */ 469 470 if (! (new_client = kmalloc(sizeof(struct i2c_client) + 470 471 sizeof(struct lm78_data), -
lm-sensors/trunk/kernel/include/sensors.h
r28 r29 21 21 #define SENSORS_SENSORS_H 22 22 23 /* Next two must be included before sysctl.h can be included, in 2.0 kernels */ 24 #include <linux/types.h> 25 #include <linux/fs.h> 23 26 #include <linux/sysctl.h> 24 27 … … 78 81 #define I2C_DRIVERID_I2CPROC 1001 79 82 #define I2C_DRIVERID_LM78 1002 83 #define I2C_DRIVERID_LM75 1003 80 84 81 85 /* Sysctl IDs */ … … 102 106 #define LM78_SYSCTL_ALARMS 2001 /* bitvector */ 103 107 108 #define LM75_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */ 109 104 110 #endif /* def SENSORS_SENSORS_H */ -
lm-sensors/trunk/src/Module.mk
r19 r29 25 25 SRCTARGETS := $(MODULE_DIR)/smbus.o $(MODULE_DIR)/piix4.o $(MODULE_DIR)/isa.o \ 26 26 $(MODULE_DIR)/lm78.o $(MODULE_DIR)/sensors.o \ 27 $(MODULE_DIR)/i2c-proc.o 27 $(MODULE_DIR)/i2c-proc.o $(MODULE_DIR)/lm75.o 28 28 29 29 HEADERFILES := $(MODULE_DIR)/sensors.h -
lm-sensors/trunk/src/lm78.c
r28 r29 443 443 adapter, and check whether they are used here */ 444 444 445 if (smbus_read_byte_data(adapter,address, 1) == 0xff)445 if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff) 446 446 continue; 447 447 … … 466 466 467 467 468 /* Allocate space for a new client structure */ 468 /* Allocate space for a new client structure. To counter memory 469 ragmentation somewhat, we only do one kmalloc. */ 469 470 if (! (new_client = kmalloc(sizeof(struct i2c_client) + 470 471 sizeof(struct lm78_data), -
lm-sensors/trunk/src/sensors.h
r28 r29 21 21 #define SENSORS_SENSORS_H 22 22 23 /* Next two must be included before sysctl.h can be included, in 2.0 kernels */ 24 #include <linux/types.h> 25 #include <linux/fs.h> 23 26 #include <linux/sysctl.h> 24 27 … … 78 81 #define I2C_DRIVERID_I2CPROC 1001 79 82 #define I2C_DRIVERID_LM78 1002 83 #define I2C_DRIVERID_LM75 1003 80 84 81 85 /* Sysctl IDs */ … … 102 106 #define LM78_SYSCTL_ALARMS 2001 /* bitvector */ 103 107 108 #define LM75_SYSCTL_TEMP 1200 /* Degrees Celcius * 10 */ 109 104 110 #endif /* def SENSORS_SENSORS_H */
