t10-pi.h 518 B

12345678910111213141516171819202122
  1. #ifndef _LINUX_T10_PI_H
  2. #define _LINUX_T10_PI_H
  3. #include <linux/types.h>
  4. #include <linux/blkdev.h>
  5. /*
  6. * T10 Protection Information tuple.
  7. */
  8. struct t10_pi_tuple {
  9. __be16 guard_tag; /* Checksum */
  10. __be16 app_tag; /* Opaque storage */
  11. __be32 ref_tag; /* Target LBA or indirect LBA */
  12. };
  13. extern struct blk_integrity_profile t10_pi_type1_crc;
  14. extern struct blk_integrity_profile t10_pi_type1_ip;
  15. extern struct blk_integrity_profile t10_pi_type3_crc;
  16. extern struct blk_integrity_profile t10_pi_type3_ip;
  17. #endif