1
2
3
4
5
6 #ifndef __NVDIMM_PFN_H
7 #define __NVDIMM_PFN_H
8
9 #include <linux/types.h>
10 #include <linux/mmzone.h>
11
12 #define PFN_SIG_LEN 16
13 #define PFN_SIG "NVDIMM_PFN_INFO\0"
14 #define DAX_SIG "NVDIMM_DAX_INFO\0"
15
16 struct nd_pfn_sb {
17 u8 signature[PFN_SIG_LEN];
18 u8 uuid[16];
19 u8 parent_uuid[16];
20 __le32 flags;
21 __le16 version_major;
22 __le16 version_minor;
23 __le64 dataoff;
24 __le64 npfns;
25 __le32 mode;
26
27 __le32 start_pad;
28 __le32 end_trunc;
29
30 __le32 align;
31
32
33 __le32 page_size;
34 __le16 page_struct_size;
35 u8 padding[3994];
36 __le64 checksum;
37 };
38
39 #endif