summaryrefslogtreecommitdiff
path: root/tools/testing/nvdimm/test/nfit_test.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2018-02-01 17:41:58 -0700
committerDan Williams <dan.j.williams@intel.com>2018-02-01 16:49:24 -0800
commit674d8bdec770d40288574534eab27d82bdf16b0e (patch)
tree91e3c74ba7af4b3cbfd01c337971cdbdccc25a16 /tools/testing/nvdimm/test/nfit_test.h
parentbfbaa952d1232c6199cdeb4896da67e02a13326d (diff)
libnvdimm/nfit_test: adding support for unit testing enable LSS status
Adding support code to simulate the enabling of LSS status in support of the Intel DSM v1.6 Function Index 10: Enable Latch System Shutdown Status. This is only for testing of libndctl support for LSS enable. The actual functionality requires a reboot and therefore is not simulated. The enable value is not recorded in nfit_test since there's no DSM to actually query the current status of the LSS enable. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Vishal Verma <vishal.l.verma@intel.com> 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/test/nfit_test.h b/tools/testing/nvdimm/test/nfit_test.h
index be8fa8ec0615..428344519cdf 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_ENABLE_LSS_STATUS 10
#define ND_INTEL_FW_GET_INFO 12
#define ND_INTEL_FW_START_UPDATE 13
#define ND_INTEL_FW_SEND_DATA 14
@@ -212,6 +213,11 @@ struct nd_intel_fw_finish_query {
__u64 updated_fw_rev;
} __packed;
+struct nd_intel_lss {
+ __u8 enable;
+ __u32 status;
+} __packed;
+
union acpi_object;
typedef void *acpi_handle;