Skip to content

Commit

Permalink
nfit: fix format interface code byte order per ACPI6.1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams committed Apr 29, 2016
1 parent 38a879b commit 30ec5fd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions drivers/acpi/nfit.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ enum nfit_uuids {
NFIT_UUID_MAX,
};

enum nfit_fic {
NFIT_FIC_BYTE = 0x101, /* byte-addressable energy backed */
NFIT_FIC_BLK = 0x201, /* block-addressable non-energy backed */
NFIT_FIC_BYTEN = 0x301, /* byte-addressable non-energy backed */
};
/*
* Region format interface codes are stored as an array of bytes in the
* NFIT DIMM Control Region structure
*/
#define NFIT_FIC_BYTE cpu_to_be16(0x101) /* byte-addressable energy backed */
#define NFIT_FIC_BLK cpu_to_be16(0x201) /* block-addressable non-energy backed */
#define NFIT_FIC_BYTEN cpu_to_be16(0x301) /* byte-addressable non-energy backed */

enum {
NFIT_BLK_READ_FLUSH = 1,
Expand Down

0 comments on commit 30ec5fd

Please sign in to comment.