blob: 86746312381f4b387203ead69bf2c57906440497 [file] [log] [blame]
Dan Williams0ead1112018-09-26 10:47:15 -07001// 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
14struct 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