From 9cf1330eb002a228946ea85f651912f9cc682009 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 20 Sep 2007 21:23:19 +0000 Subject: [PATCH] Add support for beep features. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4826 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/sensors.h | 3 +++ lib/sysfs.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/sensors.h b/lib/sensors.h index 13cea557..c7c5ffb4 100644 --- a/lib/sensors.h +++ b/lib/sensors.h @@ -132,12 +132,14 @@ typedef enum sensors_feature_type { SENSORS_FEATURE_IN_ALARM = 0x010, SENSORS_FEATURE_IN_MIN_ALARM, SENSORS_FEATURE_IN_MAX_ALARM, + SENSORS_FEATURE_IN_BEEP, SENSORS_FEATURE_FAN = 0x100, SENSORS_FEATURE_FAN_MIN, SENSORS_FEATURE_FAN_ALARM = 0x110, SENSORS_FEATURE_FAN_FAULT, SENSORS_FEATURE_FAN_DIV, + SENSORS_FEATURE_FAN_BEEP, SENSORS_FEATURE_TEMP = 0x200, SENSORS_FEATURE_TEMP_MAX, @@ -152,6 +154,7 @@ typedef enum sensors_feature_type { SENSORS_FEATURE_TEMP_FAULT, SENSORS_FEATURE_TEMP_TYPE, SENSORS_FEATURE_TEMP_OFFSET, + SENSORS_FEATURE_TEMP_BEEP, SENSORS_FEATURE_VID = 0x1000, diff --git a/lib/sysfs.c b/lib/sysfs.c index 5dc7f6da..8a2ac076 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -38,7 +38,7 @@ char sensors_sysfs_mount[NAME_MAX]; #define MAX_SENSORS_PER_TYPE 20 -#define MAX_SUB_FEATURES 7 +#define MAX_SUB_FEATURES 8 /* Room for all 3 types (in, fan, temp) with all their subfeatures + VID + misc features */ #define ALL_POSSIBLE_FEATURES (MAX_SENSORS_PER_TYPE * MAX_SUB_FEATURES * 6 \