mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 13:57:41 +00:00
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
This commit is contained in:
@@ -132,12 +132,14 @@ typedef enum sensors_feature_type {
|
|||||||
SENSORS_FEATURE_IN_ALARM = 0x010,
|
SENSORS_FEATURE_IN_ALARM = 0x010,
|
||||||
SENSORS_FEATURE_IN_MIN_ALARM,
|
SENSORS_FEATURE_IN_MIN_ALARM,
|
||||||
SENSORS_FEATURE_IN_MAX_ALARM,
|
SENSORS_FEATURE_IN_MAX_ALARM,
|
||||||
|
SENSORS_FEATURE_IN_BEEP,
|
||||||
|
|
||||||
SENSORS_FEATURE_FAN = 0x100,
|
SENSORS_FEATURE_FAN = 0x100,
|
||||||
SENSORS_FEATURE_FAN_MIN,
|
SENSORS_FEATURE_FAN_MIN,
|
||||||
SENSORS_FEATURE_FAN_ALARM = 0x110,
|
SENSORS_FEATURE_FAN_ALARM = 0x110,
|
||||||
SENSORS_FEATURE_FAN_FAULT,
|
SENSORS_FEATURE_FAN_FAULT,
|
||||||
SENSORS_FEATURE_FAN_DIV,
|
SENSORS_FEATURE_FAN_DIV,
|
||||||
|
SENSORS_FEATURE_FAN_BEEP,
|
||||||
|
|
||||||
SENSORS_FEATURE_TEMP = 0x200,
|
SENSORS_FEATURE_TEMP = 0x200,
|
||||||
SENSORS_FEATURE_TEMP_MAX,
|
SENSORS_FEATURE_TEMP_MAX,
|
||||||
@@ -152,6 +154,7 @@ typedef enum sensors_feature_type {
|
|||||||
SENSORS_FEATURE_TEMP_FAULT,
|
SENSORS_FEATURE_TEMP_FAULT,
|
||||||
SENSORS_FEATURE_TEMP_TYPE,
|
SENSORS_FEATURE_TEMP_TYPE,
|
||||||
SENSORS_FEATURE_TEMP_OFFSET,
|
SENSORS_FEATURE_TEMP_OFFSET,
|
||||||
|
SENSORS_FEATURE_TEMP_BEEP,
|
||||||
|
|
||||||
SENSORS_FEATURE_VID = 0x1000,
|
SENSORS_FEATURE_VID = 0x1000,
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@
|
|||||||
char sensors_sysfs_mount[NAME_MAX];
|
char sensors_sysfs_mount[NAME_MAX];
|
||||||
|
|
||||||
#define MAX_SENSORS_PER_TYPE 20
|
#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
|
/* Room for all 3 types (in, fan, temp) with all their subfeatures + VID
|
||||||
+ misc features */
|
+ misc features */
|
||||||
#define ALL_POSSIBLE_FEATURES (MAX_SENSORS_PER_TYPE * MAX_SUB_FEATURES * 6 \
|
#define ALL_POSSIBLE_FEATURES (MAX_SENSORS_PER_TYPE * MAX_SUB_FEATURES * 6 \
|
||||||
|
Reference in New Issue
Block a user