1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2014-2015, Intel Corporation.
9 #include <linux/types.h>
10 #include <linux/mmzone.h>
12 #define PFN_SIG_LEN 16
13 #define PFN_SIG "NVDIMM_PFN_INFO\0"
14 #define DAX_SIG "NVDIMM_DAX_INFO\0"
17 u8 signature[PFN_SIG_LEN];
23 __le64 dataoff; /* relative to namespace_base + start_pad */
26 /* minor-version-1 additions for section alignment */
28 * @start_pad: Deprecated attribute to pad start-misaligned namespaces
30 * start_pad is deprecated because the original definition did
31 * not comprehend that dataoff is relative to the base address
32 * of the namespace not the start_pad adjusted base. The result
33 * is that the dax path is broken, but the block-I/O path is
34 * not. The kernel will no longer create namespaces using start
35 * padding, but it still supports block-I/O for legacy
36 * configurations mainly to allow a backup, reconfigure the
37 * namespace, and restore flow to repair dax operation.
41 /* minor-version-2 record the base alignment of the mapping */
43 /* minor-version-3 guarantee the padding and flags are zero */
44 /* minor-version-4 record the page size and struct page size */
46 __le16 page_struct_size;
51 #endif /* __NVDIMM_PFN_H */