diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-11-24 14:32:27 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-12-04 10:19:31 -0800 |
commit | ed07c4338dd5ceadb5ffed0a5be03488ac54f5d2 (patch) | |
tree | 636c810caed24b852f53624c80096f300c195163 /tools/testing/nvdimm/test/nfit_test.h | |
parent | nfit, libnvdimm: deprecate the generic SMART ioctl (diff) | |
download | linux-dev-ed07c4338dd5ceadb5ffed0a5be03488ac54f5d2.tar.xz linux-dev-ed07c4338dd5ceadb5ffed0a5be03488ac54f5d2.zip |
tools/testing/nvdimm: smart alarm/threshold control
Allow the smart_threshold values to be changed via the 'set smart
threshold command' and trigger notifications when the thresholds are
met.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm/test/nfit_test.h')
-rw-r--r-- | tools/testing/nvdimm/test/nfit_test.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/test/nfit_test.h b/tools/testing/nvdimm/test/nfit_test.h index b85fba2856c7..ba230f6f7676 100644 --- a/tools/testing/nvdimm/test/nfit_test.h +++ b/tools/testing/nvdimm/test/nfit_test.h @@ -86,6 +86,7 @@ struct nd_cmd_ars_err_inj_stat { #define ND_INTEL_SMART 1 #define ND_INTEL_SMART_THRESHOLD 2 +#define ND_INTEL_SMART_SET_THRESHOLD 17 #define ND_INTEL_SMART_HEALTH_VALID (1 << 0) #define ND_INTEL_SMART_SPARES_VALID (1 << 1) @@ -143,6 +144,14 @@ struct nd_intel_smart_threshold { }; } __packed; +struct nd_intel_smart_set_threshold { + __u16 alarm_control; + __u8 spares; + __u16 media_temperature; + __u16 ctrl_temperature; + __u32 status; +} __packed; + union acpi_object; typedef void *acpi_handle; |