aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-02-01 20:48:42 -0500
committerDan Williams <dan.j.williams@intel.com>2016-03-05 15:24:06 -0500
commitbe26f9ae022ad09967be7a83c58ce605014e939a (patch)
tree40bd6f044ce0962194236bfce5f954a0fb7c109d /tools/testing/nvdimm
parent6e2452dff4441e3dc24d415c8b2cda8a3ba52116 (diff)
nfit, tools/testing/nvdimm: add format interface code definitions
ACPI 6.1 and JEDEC Annex L Release 3 formalize the format interface code. Add definitions and update their usage in the unit test. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm')
-rw-r--r--tools/testing/nvdimm/test/nfit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index b3281dcd4a5d..6e831c4021ff 100644
--- a/tools/testing/nvdimm/test/nfit.c
+++ b/tools/testing/nvdimm/test/nfit.c
@@ -823,6 +823,7 @@ static void nfit_test0_setup(struct nfit_test *t)
823 dcr->device_id = 0; 823 dcr->device_id = 0;
824 dcr->revision_id = 1; 824 dcr->revision_id = 1;
825 dcr->serial_number = ~handle[0]; 825 dcr->serial_number = ~handle[0];
826 dcr->code = NFIT_FIC_BLK;
826 dcr->windows = 1; 827 dcr->windows = 1;
827 dcr->window_size = DCR_SIZE; 828 dcr->window_size = DCR_SIZE;
828 dcr->command_offset = 0; 829 dcr->command_offset = 0;
@@ -839,6 +840,7 @@ static void nfit_test0_setup(struct nfit_test *t)
839 dcr->device_id = 0; 840 dcr->device_id = 0;
840 dcr->revision_id = 1; 841 dcr->revision_id = 1;
841 dcr->serial_number = ~handle[1]; 842 dcr->serial_number = ~handle[1];
843 dcr->code = NFIT_FIC_BLK;
842 dcr->windows = 1; 844 dcr->windows = 1;
843 dcr->window_size = DCR_SIZE; 845 dcr->window_size = DCR_SIZE;
844 dcr->command_offset = 0; 846 dcr->command_offset = 0;
@@ -855,6 +857,7 @@ static void nfit_test0_setup(struct nfit_test *t)
855 dcr->device_id = 0; 857 dcr->device_id = 0;
856 dcr->revision_id = 1; 858 dcr->revision_id = 1;
857 dcr->serial_number = ~handle[2]; 859 dcr->serial_number = ~handle[2];
860 dcr->code = NFIT_FIC_BLK;
858 dcr->windows = 1; 861 dcr->windows = 1;
859 dcr->window_size = DCR_SIZE; 862 dcr->window_size = DCR_SIZE;
860 dcr->command_offset = 0; 863 dcr->command_offset = 0;
@@ -871,6 +874,7 @@ static void nfit_test0_setup(struct nfit_test *t)
871 dcr->device_id = 0; 874 dcr->device_id = 0;
872 dcr->revision_id = 1; 875 dcr->revision_id = 1;
873 dcr->serial_number = ~handle[3]; 876 dcr->serial_number = ~handle[3];
877 dcr->code = NFIT_FIC_BLK;
874 dcr->windows = 1; 878 dcr->windows = 1;
875 dcr->window_size = DCR_SIZE; 879 dcr->window_size = DCR_SIZE;
876 dcr->command_offset = 0; 880 dcr->command_offset = 0;
@@ -967,6 +971,7 @@ static void nfit_test0_setup(struct nfit_test *t)
967 dcr->device_id = 0; 971 dcr->device_id = 0;
968 dcr->revision_id = 1; 972 dcr->revision_id = 1;
969 dcr->serial_number = ~handle[4]; 973 dcr->serial_number = ~handle[4];
974 dcr->code = NFIT_FIC_BLK;
970 dcr->windows = 1; 975 dcr->windows = 1;
971 dcr->window_size = DCR_SIZE; 976 dcr->window_size = DCR_SIZE;
972 dcr->command_offset = 0; 977 dcr->command_offset = 0;
@@ -1136,7 +1141,7 @@ static void nfit_test1_setup(struct nfit_test *t)
1136 dcr->device_id = 0; 1141 dcr->device_id = 0;
1137 dcr->revision_id = 1; 1142 dcr->revision_id = 1;
1138 dcr->serial_number = ~0; 1143 dcr->serial_number = ~0;
1139 dcr->code = 0x201; 1144 dcr->code = NFIT_FIC_BYTE;
1140 dcr->windows = 0; 1145 dcr->windows = 0;
1141 dcr->window_size = 0; 1146 dcr->window_size = 0;
1142 dcr->command_offset = 0; 1147 dcr->command_offset = 0;