diff options
author | Rob Johnston <rob.johnston@joyent.com> | 2018-04-26 00:18:10 -0700 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-05-14 12:33:15 -0400 |
commit | 208e1562df6d45a86b71f40db0028ada4de4b56a (patch) | |
tree | 566fbf9d0e18b285bc58d5f312342627edaee170 /usr/src/lib/libipmi/common/libipmi.h | |
parent | bc0e4c28fd7055db02709c3af822f81959511c73 (diff) | |
download | illumos-gate-208e1562df6d45a86b71f40db0028ada4de4b56a.tar.gz |
9502 expose thresholds as properties on sensor facility nodes
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Dale Ghent <dale.ghent@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libipmi/common/libipmi.h')
-rw-r--r-- | usr/src/lib/libipmi/common/libipmi.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr/src/lib/libipmi/common/libipmi.h b/usr/src/lib/libipmi/common/libipmi.h index 8552585405..92a43c6758 100644 --- a/usr/src/lib/libipmi/common/libipmi.h +++ b/usr/src/lib/libipmi/common/libipmi.h @@ -20,7 +20,7 @@ */ /* * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2017, Joyent, Inc. All rights reserved. + * Copyright (c) 2018, Joyent, Inc. All rights reserved. */ #ifndef _LIBIPMI_H @@ -1594,6 +1594,24 @@ extern ipmi_sdr_full_sensor_t *ipmi_sdr_lookup_full_sensor( #define IPMI_ET_RTC 0x35 /* + * Get Sensor Threshold. See section 35.9 + */ +#define IPMI_CMD_GET_SENSOR_THRESHOLDS 0x27 + +typedef struct ipmi_sensor_thresholds { + uint8_t ithr_readable_mask; + uint8_t ithr_lower_noncrit; + uint8_t ithr_lower_crit; + uint8_t ithr_lower_nonrec; + uint8_t ithr_upper_noncrit; + uint8_t ithr_upper_crit; + uint8_t ithr_upper_nonrec; +} ipmi_sensor_thresholds_t; + +extern int ipmi_get_sensor_thresholds(ipmi_handle_t *, + ipmi_sensor_thresholds_t *, uint8_t); + +/* * Get Sensor Reading. See section 35.14. */ |