xref: /openbmc/linux/drivers/nvdimm/pfn.h (revision 9b9c2cd4)
1 /*
2  * Copyright (c) 2014-2015, Intel Corporation.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  */
13 
14 #ifndef __NVDIMM_PFN_H
15 #define __NVDIMM_PFN_H
16 
17 #include <linux/types.h>
18 
19 #define PFN_SIG_LEN 16
20 #define PFN_SIG "NVDIMM_PFN_INFO\0"
21 
22 struct nd_pfn_sb {
23 	u8 signature[PFN_SIG_LEN];
24 	u8 uuid[16];
25 	u8 parent_uuid[16];
26 	__le32 flags;
27 	__le16 version_major;
28 	__le16 version_minor;
29 	__le64 dataoff;
30 	__le64 npfns;
31 	__le32 mode;
32 	u8 padding[4012];
33 	__le64 checksum;
34 };
35 #endif /* __NVDIMM_PFN_H */
36