Merge tag 'mips_fixes_4.20_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips...
[linux-2.6-microblaze.git] / drivers / acpi / nfit / intel.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright(c) 2018 Intel Corporation. All rights reserved.
4  * Intel specific definitions for NVDIMM Firmware Interface Table - NFIT
5  */
6 #ifndef _NFIT_INTEL_H_
7 #define _NFIT_INTEL_H_
8
9 #define ND_INTEL_SMART 1
10
11 #define ND_INTEL_SMART_SHUTDOWN_COUNT_VALID     (1 << 5)
12 #define ND_INTEL_SMART_SHUTDOWN_VALID           (1 << 10)
13
14 struct nd_intel_smart {
15         u32 status;
16         union {
17                 struct {
18                         u32 flags;
19                         u8 reserved0[4];
20                         u8 health;
21                         u8 spares;
22                         u8 life_used;
23                         u8 alarm_flags;
24                         u16 media_temperature;
25                         u16 ctrl_temperature;
26                         u32 shutdown_count;
27                         u8 ait_status;
28                         u16 pmic_temperature;
29                         u8 reserved1[8];
30                         u8 shutdown_state;
31                         u32 vendor_size;
32                         u8 vendor_data[92];
33                 } __packed;
34                 u8 data[128];
35         };
36 } __packed;
37
38 #endif