blob: 2f8cf2a11e3bf0ecae57507fb325bdf429d11d6e [file] [log] [blame]
Dan Williamsb94d5232015-05-19 22:54:31 -04001/*
2 * NVDIMM Firmware Interface Table - NFIT
3 *
4 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15#ifndef __NFIT_H__
16#define __NFIT_H__
Dan Williams7ae0fa432016-02-19 12:16:34 -080017#include <linux/workqueue.h>
Dan Williamsb94d5232015-05-19 22:54:31 -040018#include <linux/libnvdimm.h>
Vishal Verma6839a6d2016-07-23 21:51:21 -070019#include <linux/ndctl.h>
Dan Williamsb94d5232015-05-19 22:54:31 -040020#include <linux/types.h>
Dan Williamsb94d5232015-05-19 22:54:31 -040021#include <linux/acpi.h>
22#include <acpi/acuuid.h>
23
Dan Williams31eca762016-04-28 16:23:43 -070024/* ACPI 6.1 */
Dan Williamsb94d5232015-05-19 22:54:31 -040025#define UUID_NFIT_BUS "2f10e7a4-9e91-11e4-89d3-123b93f75cba"
Dan Williams31eca762016-04-28 16:23:43 -070026
Dan Williams11e14272017-10-20 15:39:43 -070027/* http://pmem.io/documents/NVDIMM_DSM_Interface-V1.6.pdf */
Dan Williamsb94d5232015-05-19 22:54:31 -040028#define UUID_NFIT_DIMM "4309ac30-0d11-11e4-9191-0800200c9a66"
Dan Williams31eca762016-04-28 16:23:43 -070029
30/* https://github.com/HewlettPackard/hpe-nvm/blob/master/Documentation/ */
31#define UUID_NFIT_DIMM_N_HPE1 "9002c334-acf3-4c0e-9642-a235f0d53bc6"
32#define UUID_NFIT_DIMM_N_HPE2 "5008664b-b758-41a0-a03c-27c2f2d04f7e"
33
stuart hayese02fb722016-05-26 11:38:41 -050034/* https://msdn.microsoft.com/library/windows/hardware/mt604741 */
35#define UUID_NFIT_DIMM_N_MSFT "1ee68b36-d4bd-4a1a-9a16-4f8e53d46e05"
36
Dexuan Cui1194c4132019-01-29 00:56:17 +000037/* http://www.uefi.org/RFIC_LIST (see "Virtual NVDIMM 0x1901") */
38#define UUID_NFIT_DIMM_N_HYPERV "5746c5f2-a9a2-4264-ad0e-e4ddc9e09e80"
39
Dan Williams58138822015-06-23 20:08:34 -040040#define ACPI_NFIT_MEM_FAILED_MASK (ACPI_NFIT_MEM_SAVE_FAILED \
41 | ACPI_NFIT_MEM_RESTORE_FAILED | ACPI_NFIT_MEM_FLUSH_FAILED \
Dan Williams14999342017-04-13 19:46:36 -070042 | ACPI_NFIT_MEM_NOT_ARMED | ACPI_NFIT_MEM_MAP_FAILED)
Dan Williamsb94d5232015-05-19 22:54:31 -040043
Dexuan Cui1194c4132019-01-29 00:56:17 +000044#define NVDIMM_FAMILY_MAX NVDIMM_FAMILY_HYPERV
Dan Williams11e14272017-10-20 15:39:43 -070045
Dan Williamsb9b15042017-10-29 12:13:07 -070046#define NVDIMM_STANDARD_CMDMASK \
47(1 << ND_CMD_SMART | 1 << ND_CMD_SMART_THRESHOLD | 1 << ND_CMD_DIMM_FLAGS \
48 | 1 << ND_CMD_GET_CONFIG_SIZE | 1 << ND_CMD_GET_CONFIG_DATA \
49 | 1 << ND_CMD_SET_CONFIG_DATA | 1 << ND_CMD_VENDOR_EFFECT_LOG_SIZE \
50 | 1 << ND_CMD_VENDOR_EFFECT_LOG | 1 << ND_CMD_VENDOR)
51
Dan Williams11e14272017-10-20 15:39:43 -070052/*
53 * Command numbers that the kernel needs to know about to handle
54 * non-default DSM revision ids
55 */
56enum nvdimm_family_cmds {
Dan Williams79ab67e2017-11-15 10:10:48 -080057 NVDIMM_INTEL_LATCH_SHUTDOWN = 10,
Dan Williams11e14272017-10-20 15:39:43 -070058 NVDIMM_INTEL_GET_MODES = 11,
59 NVDIMM_INTEL_GET_FWINFO = 12,
60 NVDIMM_INTEL_START_FWUPDATE = 13,
61 NVDIMM_INTEL_SEND_FWUPDATE = 14,
62 NVDIMM_INTEL_FINISH_FWUPDATE = 15,
63 NVDIMM_INTEL_QUERY_FWUPDATE = 16,
64 NVDIMM_INTEL_SET_THRESHOLD = 17,
65 NVDIMM_INTEL_INJECT_ERROR = 18,
Dave Jiangb3ed2ce2018-12-04 10:31:11 -080066 NVDIMM_INTEL_GET_SECURITY_STATE = 19,
67 NVDIMM_INTEL_SET_PASSPHRASE = 20,
68 NVDIMM_INTEL_DISABLE_PASSPHRASE = 21,
69 NVDIMM_INTEL_UNLOCK_UNIT = 22,
70 NVDIMM_INTEL_FREEZE_LOCK = 23,
71 NVDIMM_INTEL_SECURE_ERASE = 24,
72 NVDIMM_INTEL_OVERWRITE = 25,
73 NVDIMM_INTEL_QUERY_OVERWRITE = 26,
74 NVDIMM_INTEL_SET_MASTER_PASSPHRASE = 27,
75 NVDIMM_INTEL_MASTER_SECURE_ERASE = 28,
Dan Williams11e14272017-10-20 15:39:43 -070076};
77
Dave Jiangb3ed2ce2018-12-04 10:31:11 -080078#define NVDIMM_INTEL_SECURITY_CMDMASK \
79(1 << NVDIMM_INTEL_GET_SECURITY_STATE | 1 << NVDIMM_INTEL_SET_PASSPHRASE \
80| 1 << NVDIMM_INTEL_DISABLE_PASSPHRASE | 1 << NVDIMM_INTEL_UNLOCK_UNIT \
81| 1 << NVDIMM_INTEL_FREEZE_LOCK | 1 << NVDIMM_INTEL_SECURE_ERASE \
82| 1 << NVDIMM_INTEL_OVERWRITE | 1 << NVDIMM_INTEL_QUERY_OVERWRITE \
83| 1 << NVDIMM_INTEL_SET_MASTER_PASSPHRASE \
84| 1 << NVDIMM_INTEL_MASTER_SECURE_ERASE)
85
Dan Williams11e14272017-10-20 15:39:43 -070086#define NVDIMM_INTEL_CMDMASK \
87(NVDIMM_STANDARD_CMDMASK | 1 << NVDIMM_INTEL_GET_MODES \
88 | 1 << NVDIMM_INTEL_GET_FWINFO | 1 << NVDIMM_INTEL_START_FWUPDATE \
89 | 1 << NVDIMM_INTEL_SEND_FWUPDATE | 1 << NVDIMM_INTEL_FINISH_FWUPDATE \
90 | 1 << NVDIMM_INTEL_QUERY_FWUPDATE | 1 << NVDIMM_INTEL_SET_THRESHOLD \
Dave Jiangb3ed2ce2018-12-04 10:31:11 -080091 | 1 << NVDIMM_INTEL_INJECT_ERROR | 1 << NVDIMM_INTEL_LATCH_SHUTDOWN \
92 | NVDIMM_INTEL_SECURITY_CMDMASK)
Dan Williams11e14272017-10-20 15:39:43 -070093
Dan Williamsb94d5232015-05-19 22:54:31 -040094enum nfit_uuids {
Dan Williams31eca762016-04-28 16:23:43 -070095 /* for simplicity alias the uuid index with the family id */
96 NFIT_DEV_DIMM = NVDIMM_FAMILY_INTEL,
97 NFIT_DEV_DIMM_N_HPE1 = NVDIMM_FAMILY_HPE1,
98 NFIT_DEV_DIMM_N_HPE2 = NVDIMM_FAMILY_HPE2,
stuart hayese02fb722016-05-26 11:38:41 -050099 NFIT_DEV_DIMM_N_MSFT = NVDIMM_FAMILY_MSFT,
Dexuan Cui1194c4132019-01-29 00:56:17 +0000100 NFIT_DEV_DIMM_N_HYPERV = NVDIMM_FAMILY_HYPERV,
Dan Williamsb94d5232015-05-19 22:54:31 -0400101 NFIT_SPA_VOLATILE,
102 NFIT_SPA_PM,
103 NFIT_SPA_DCR,
104 NFIT_SPA_BDW,
105 NFIT_SPA_VDISK,
106 NFIT_SPA_VCD,
107 NFIT_SPA_PDISK,
108 NFIT_SPA_PCD,
109 NFIT_DEV_BUS,
Dan Williamsb94d5232015-05-19 22:54:31 -0400110 NFIT_UUID_MAX,
111};
112
Dan Williams30ec5fd2016-04-28 18:35:23 -0700113/*
Dan Williams1bcbf422016-06-29 11:19:32 -0700114 * Region format interface codes are stored with the interface as the
115 * LSB and the function as the MSB.
Dan Williams30ec5fd2016-04-28 18:35:23 -0700116 */
Dan Williams1bcbf422016-06-29 11:19:32 -0700117#define NFIT_FIC_BYTE cpu_to_le16(0x101) /* byte-addressable energy backed */
118#define NFIT_FIC_BLK cpu_to_le16(0x201) /* block-addressable non-energy backed */
119#define NFIT_FIC_BYTEN cpu_to_le16(0x301) /* byte-addressable non-energy backed */
Dan Williamsbe26f9a2016-02-01 17:48:42 -0800120
Ross Zwislerf0f2c072015-07-10 11:06:14 -0600121enum {
Dan Williamsaef25332016-02-12 17:01:11 -0800122 NFIT_BLK_READ_FLUSH = 1,
123 NFIT_BLK_DCR_LATCH = 2,
124 NFIT_ARS_STATUS_DONE = 0,
125 NFIT_ARS_STATUS_BUSY = 1 << 16,
126 NFIT_ARS_STATUS_NONE = 2 << 16,
127 NFIT_ARS_STATUS_INTR = 3 << 16,
128 NFIT_ARS_START_BUSY = 6,
129 NFIT_ARS_CAP_NONE = 1,
130 NFIT_ARS_F_OVERFLOW = 1,
Dan Williams1cf03c02016-02-17 13:01:23 -0800131 NFIT_ARS_TIMEOUT = 90,
Ross Zwislerf0f2c072015-07-10 11:06:14 -0600132};
133
Vishal Vermac09f1212016-08-19 14:40:58 -0600134enum nfit_root_notifiers {
135 NFIT_NOTIFY_UPDATE = 0x80,
Toshi Kani56b47fe2017-06-08 12:36:57 -0600136 NFIT_NOTIFY_UC_MEMORY_ERROR = 0x81,
Vishal Vermac09f1212016-08-19 14:40:58 -0600137};
138
Dan Williamsba9c8dd2016-08-22 19:28:37 -0700139enum nfit_dimm_notifiers {
140 NFIT_NOTIFY_DIMM_HEALTH = 0x81,
141};
142
Dan Williams14c73f92018-04-02 15:40:30 -0700143enum nfit_ars_state {
Dan Williamsd3abaf42018-10-13 20:32:17 -0700144 ARS_REQ_SHORT,
145 ARS_REQ_LONG,
Dan Williams14c73f92018-04-02 15:40:30 -0700146 ARS_FAILED,
147};
148
Dan Williamsb94d5232015-05-19 22:54:31 -0400149struct nfit_spa {
Dan Williamsb94d5232015-05-19 22:54:31 -0400150 struct list_head list;
Dan Williams1cf03c02016-02-17 13:01:23 -0800151 struct nd_region *nd_region;
Dan Williams14c73f92018-04-02 15:40:30 -0700152 unsigned long ars_state;
Dan Williams1cf03c02016-02-17 13:01:23 -0800153 u32 clear_err_unit;
154 u32 max_ars;
Dan Williams31932042016-07-14 17:22:48 -0700155 struct acpi_nfit_system_address spa[0];
Dan Williamsb94d5232015-05-19 22:54:31 -0400156};
157
158struct nfit_dcr {
Dan Williamsb94d5232015-05-19 22:54:31 -0400159 struct list_head list;
Dan Williams31932042016-07-14 17:22:48 -0700160 struct acpi_nfit_control_region dcr[0];
Dan Williamsb94d5232015-05-19 22:54:31 -0400161};
162
163struct nfit_bdw {
Dan Williamsb94d5232015-05-19 22:54:31 -0400164 struct list_head list;
Dan Williams31932042016-07-14 17:22:48 -0700165 struct acpi_nfit_data_region bdw[0];
Dan Williamsb94d5232015-05-19 22:54:31 -0400166};
167
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400168struct nfit_idt {
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400169 struct list_head list;
Dan Williams31932042016-07-14 17:22:48 -0700170 struct acpi_nfit_interleave idt[0];
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400171};
172
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600173struct nfit_flush {
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600174 struct list_head list;
Dan Williams31932042016-07-14 17:22:48 -0700175 struct acpi_nfit_flush_address flush[0];
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600176};
177
Dan Williamsb94d5232015-05-19 22:54:31 -0400178struct nfit_memdev {
Dan Williamsb94d5232015-05-19 22:54:31 -0400179 struct list_head list;
Dan Williams31932042016-07-14 17:22:48 -0700180 struct acpi_nfit_memory_map memdev[0];
Dan Williamsb94d5232015-05-19 22:54:31 -0400181};
182
Dan Williams6f07f862018-09-26 10:48:38 -0700183enum nfit_mem_flags {
184 NFIT_MEM_LSR,
185 NFIT_MEM_LSW,
Dan Williams0ead1112018-09-26 10:47:15 -0700186 NFIT_MEM_DIRTY,
187 NFIT_MEM_DIRTY_COUNT,
Dan Williams6f07f862018-09-26 10:48:38 -0700188};
189
Dave Jiangd6548ae2018-12-04 10:31:20 -0800190#define NFIT_DIMM_ID_LEN 22
191
Dan Williamsb94d5232015-05-19 22:54:31 -0400192/* assembled tables for a given dimm/memory-device */
193struct nfit_mem {
Dan Williamse6dfb2d2015-04-25 03:56:17 -0400194 struct nvdimm *nvdimm;
Dan Williamsb94d5232015-05-19 22:54:31 -0400195 struct acpi_nfit_memory_map *memdev_dcr;
196 struct acpi_nfit_memory_map *memdev_pmem;
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400197 struct acpi_nfit_memory_map *memdev_bdw;
Dan Williamsb94d5232015-05-19 22:54:31 -0400198 struct acpi_nfit_control_region *dcr;
199 struct acpi_nfit_data_region *bdw;
200 struct acpi_nfit_system_address *spa_dcr;
201 struct acpi_nfit_system_address *spa_bdw;
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400202 struct acpi_nfit_interleave *idt_dcr;
203 struct acpi_nfit_interleave *idt_bdw;
Dan Williamsba9c8dd2016-08-22 19:28:37 -0700204 struct kernfs_node *flags_attr;
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600205 struct nfit_flush *nfit_flush;
Dan Williamsb94d5232015-05-19 22:54:31 -0400206 struct list_head list;
Dan Williams62232e452015-06-08 14:27:06 -0400207 struct acpi_device *adev;
Dan Williams8cc6ddf2016-04-05 15:26:50 -0700208 struct acpi_nfit_desc *acpi_desc;
Dave Jiangd6548ae2018-12-04 10:31:20 -0800209 char id[NFIT_DIMM_ID_LEN+1];
Dan Williamse5ae3b22016-06-07 17:00:04 -0700210 struct resource *flush_wpq;
Dan Williams62232e452015-06-08 14:27:06 -0400211 unsigned long dsm_mask;
Dan Williams6f07f862018-09-26 10:48:38 -0700212 unsigned long flags;
Dan Williams0ead1112018-09-26 10:47:15 -0700213 u32 dirty_shutdown;
Dan Williams31eca762016-04-28 16:23:43 -0700214 int family;
Dan Williamsb94d5232015-05-19 22:54:31 -0400215};
216
Dan Williamse34b8252019-02-13 09:57:22 -0800217enum scrub_flags {
218 ARS_BUSY,
219 ARS_CANCEL,
Dan Williams78153dd2019-02-13 09:28:40 -0800220 ARS_VALID,
Dan Williams5479b272019-02-13 09:04:07 -0800221 ARS_POLL,
Dan Williamse34b8252019-02-13 09:57:22 -0800222};
223
Dan Williamsb94d5232015-05-19 22:54:31 -0400224struct acpi_nfit_desc {
225 struct nvdimm_bus_descriptor nd_desc;
Linda Knippers6b577c92015-11-20 19:05:49 -0500226 struct acpi_table_header acpi_header;
Vishal Verma20985162015-10-27 16:58:27 -0600227 struct mutex init_mutex;
Dan Williamsb94d5232015-05-19 22:54:31 -0400228 struct list_head memdevs;
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600229 struct list_head flushes;
Dan Williamsb94d5232015-05-19 22:54:31 -0400230 struct list_head dimms;
231 struct list_head spas;
232 struct list_head dcrs;
233 struct list_head bdws;
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400234 struct list_head idts;
Dan Williamsb94d5232015-05-19 22:54:31 -0400235 struct nvdimm_bus *nvdimm_bus;
236 struct device *dev;
Dan Williams1cf03c02016-02-17 13:01:23 -0800237 struct nd_cmd_ars_status *ars_status;
Dan Williamsd3abaf42018-10-13 20:32:17 -0700238 struct nfit_spa *scrub_spa;
Dan Williamsbc6ba802018-04-05 16:18:55 -0700239 struct delayed_work dwork;
Vishal Verma6839a6d2016-07-23 21:51:21 -0700240 struct list_head list;
Vishal Verma37b137f2016-07-23 21:51:42 -0700241 struct kernfs_node *scrub_count_state;
Dan Williams459d0dd2018-04-05 01:25:02 -0700242 unsigned int max_ars;
Vishal Verma37b137f2016-07-23 21:51:42 -0700243 unsigned int scrub_count;
Vishal Verma9ffd6352016-09-30 17:19:29 -0600244 unsigned int scrub_mode;
Dan Williamse34b8252019-02-13 09:57:22 -0800245 unsigned long scrub_flags;
Dan Williamse3654ec2016-04-28 16:17:07 -0700246 unsigned long dimm_cmd_force_en;
247 unsigned long bus_cmd_force_en;
Yasunori Gotob37b3fd2017-09-22 16:47:40 +0900248 unsigned long bus_nfit_cmd_force_en;
Dave Jiang06e8ccd2018-01-31 12:45:38 -0700249 unsigned int platform_cap;
Dan Williamsbc6ba802018-04-05 16:18:55 -0700250 unsigned int scrub_tmo;
Dan Williams6bc75612015-06-17 17:23:32 -0400251 int (*blk_do_io)(struct nd_blk_region *ndbr, resource_size_t dpa,
252 void *iobuf, u64 len, int rw);
Dan Williamsb94d5232015-05-19 22:54:31 -0400253};
254
Vishal Verma9ffd6352016-09-30 17:19:29 -0600255enum scrub_mode {
256 HW_ERROR_SCRUB_OFF,
257 HW_ERROR_SCRUB_ON,
258};
259
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400260enum nd_blk_mmio_selector {
261 BDW,
262 DCR,
263};
264
Ross Zwisler67a3e8f2015-08-27 13:14:20 -0600265struct nd_blk_addr {
266 union {
267 void __iomem *base;
Dan Williams7a9eb202016-06-03 18:06:47 -0700268 void *aperture;
Ross Zwisler67a3e8f2015-08-27 13:14:20 -0600269 };
270};
271
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400272struct nfit_blk {
273 struct nfit_blk_mmio {
Ross Zwisler67a3e8f2015-08-27 13:14:20 -0600274 struct nd_blk_addr addr;
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400275 u64 size;
276 u64 base_offset;
277 u32 line_size;
278 u32 num_lines;
279 u32 table_size;
280 struct acpi_nfit_interleave *idt;
281 struct acpi_nfit_system_address *spa;
282 } mmio[2];
283 struct nd_region *nd_region;
284 u64 bdw_offset; /* post interleave offset */
285 u64 stat_offset;
286 u64 cmd_offset;
Ross Zwislerf0f2c072015-07-10 11:06:14 -0600287 u32 dimm_flags;
Ross Zwislerc2ad2952015-07-10 11:06:13 -0600288};
289
Vishal Verma6839a6d2016-07-23 21:51:21 -0700290extern struct list_head acpi_descs;
291extern struct mutex acpi_desc_lock;
Dan Williamsd3abaf42018-10-13 20:32:17 -0700292int acpi_nfit_ars_rescan(struct acpi_nfit_desc *acpi_desc,
293 enum nfit_ars_state req_type);
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400294
Vishal Verma6839a6d2016-07-23 21:51:21 -0700295#ifdef CONFIG_X86_MCE
296void nfit_mce_register(void);
297void nfit_mce_unregister(void);
298#else
299static inline void nfit_mce_register(void)
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400300{
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400301}
Vishal Verma6839a6d2016-07-23 21:51:21 -0700302static inline void nfit_mce_unregister(void)
303{
304}
305#endif
306
307int nfit_spa_type(struct acpi_nfit_system_address *spa);
Ross Zwisler047fc8a2015-06-25 04:21:02 -0400308
Dan Williamsb94d5232015-05-19 22:54:31 -0400309static inline struct acpi_nfit_memory_map *__to_nfit_memdev(
310 struct nfit_mem *nfit_mem)
311{
312 if (nfit_mem->memdev_dcr)
313 return nfit_mem->memdev_dcr;
314 return nfit_mem->memdev_pmem;
315}
Dan Williams45def222015-04-26 19:26:48 -0400316
317static inline struct acpi_nfit_desc *to_acpi_desc(
318 struct nvdimm_bus_descriptor *nd_desc)
319{
320 return container_of(nd_desc, struct acpi_nfit_desc, nd_desc);
321}
Dan Williams6bc75612015-06-17 17:23:32 -0400322
Andy Shevchenko41c8bdb2017-06-05 19:40:42 +0300323const guid_t *to_nfit_uuid(enum nfit_uuids id);
Dan Williamse7a11b42016-07-14 16:19:55 -0700324int acpi_nfit_init(struct acpi_nfit_desc *acpi_desc, void *nfit, acpi_size sz);
Dan Williamsfbabd822017-04-18 09:56:31 -0700325void acpi_nfit_shutdown(void *data);
Dan Williamsc14a8682016-08-18 22:15:04 -0700326void __acpi_nfit_notify(struct device *dev, acpi_handle handle, u32 event);
Dan Williams231bf112016-08-22 19:23:25 -0700327void __acpi_nvdimm_notify(struct device *dev, u32 event);
Dan Williamsa7de92d2016-12-05 13:43:25 -0800328int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm,
329 unsigned int cmd, void *buf, unsigned int buf_len, int *cmd_rc);
Dan Williamsa61fe6f2016-02-19 12:29:32 -0800330void acpi_nfit_desc_init(struct acpi_nfit_desc *acpi_desc, struct device *dev);
Dan Williamsb94d5232015-05-19 22:54:31 -0400331#endif /* __NFIT_H__ */