diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-04-28 21:35:23 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-04-28 21:35:23 -0400 |
commit | 30ec5fd464d51876247302da276db082e5675c35 (patch) | |
tree | e0d81787059e2bc0360b01102b8b04f835e742bf | |
parent | 38a879ba9c0a6849fe26c36e325f754a89848da7 (diff) |
nfit: fix format interface code byte order per ACPI6.1
ACPI6.1 clarifies that DCR fields are stored as an array of bytes,
update the format interface code constants to match.
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r-- | drivers/acpi/nfit.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h index c75576b2d50e..c1b4eb2ddaa6 100644 --- a/drivers/acpi/nfit.h +++ b/drivers/acpi/nfit.h | |||
@@ -41,11 +41,13 @@ enum nfit_uuids { | |||
41 | NFIT_UUID_MAX, | 41 | NFIT_UUID_MAX, |
42 | }; | 42 | }; |
43 | 43 | ||
44 | enum nfit_fic { | 44 | /* |
45 | NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */ | 45 | * Region format interface codes are stored as an array of bytes in the |
46 | NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */ | 46 | * NFIT DIMM Control Region structure |
47 | NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */ | 47 | */ |
48 | }; | 48 | #define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy backed */ |
49 | #define NFIT_FIC_BLK cpu_to_be16(0x201) /* block-addressable non-energy backed */ | ||
50 | #define NFIT_FIC_BYTEN cpu_to_be16(0x301) /* byte-addressable non-energy backed */ | ||
49 | 51 | ||
50 | enum { | 52 | enum { |
51 | NFIT_BLK_READ_FLUSH = 1, | 53 | NFIT_BLK_READ_FLUSH = 1, |