pfn.h 896 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef __NVDIMM_PFN_H
  14. #define __NVDIMM_PFN_H
  15. #include <linux/types.h>
  16. #define PFN_SIG_LEN 16
  17. #define PFN_SIG "NVDIMM_PFN_INFO\0"
  18. struct nd_pfn_sb {
  19. u8 signature[PFN_SIG_LEN];
  20. u8 uuid[16];
  21. u8 parent_uuid[16];
  22. __le32 flags;
  23. __le16 version_major;
  24. __le16 version_minor;
  25. __le64 dataoff;
  26. __le64 npfns;
  27. __le32 mode;
  28. u8 padding[4012];
  29. __le64 checksum;
  30. };
  31. #endif /* __NVDIMM_PFN_H */