From 122e8d43a34ed93c78a6f4f4c3d6ce0a7f9d5325 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 9 Aug 2003 21:18:41 +0000 Subject: [PATCH] Add tcrit and alarms support to lm83. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1953 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/chips.c | 4 ++++ lib/chips.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib/chips.c b/lib/chips.c index 90e1b4f2..b2a7954d 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -690,6 +690,10 @@ static sensors_chip_feature lm83_features[] = { SENSORS_LM83_REMOTE3_HIGH, "temp4_high", SENSORS_LM83_REMOTE3_TEMP, SENSORS_LM83_REMOTE3_TEMP, SENSORS_MODE_RW, LM83_SYSCTL_REMOTE3_TEMP, VALUE(1), 0 }, + { SENSORS_LM83_TCRIT, "tcrit", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, + SENSORS_MODE_RW, LM83_SYSCTL_TCRIT, VALUE(1), 0 }, + { SENSORS_LM83_ALARMS, "alarms", SENSORS_NO_MAPPING, SENSORS_NO_MAPPING, + SENSORS_MODE_R, LM83_SYSCTL_ALARMS, VALUE(1), 0 }, { 0 } }; diff --git a/lib/chips.h b/lib/chips.h index 8f647c68..185cad63 100644 --- a/lib/chips.h +++ b/lib/chips.h @@ -329,6 +329,8 @@ #define SENSORS_LM83_REMOTE2_HIGH 58 /* RW */ #define SENSORS_LM83_REMOTE3_TEMP 60 /* R */ #define SENSORS_LM83_REMOTE3_HIGH 61 /* RW */ +#define SENSORS_LM83_TCRIT 80 /* RW */ +#define SENSORS_LM83_ALARMS 81 /* R */ /* LM85 chips */