Martin K. Petersen | 2341c2f | 2014-09-26 19:20:07 -0400 | [diff] [blame] | 1 | #ifndef _LINUX_T10_PI_H |
| 2 | #define _LINUX_T10_PI_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <linux/blkdev.h> |
| 6 | |
| 7 | /* |
| 8 | * T10 Protection Information tuple. |
| 9 | */ |
| 10 | struct t10_pi_tuple { |
| 11 | __be16 guard_tag; /* Checksum */ |
| 12 | __be16 app_tag; /* Opaque storage */ |
| 13 | __be32 ref_tag; /* Target LBA or indirect LBA */ |
| 14 | }; |
| 15 | |
| 16 | |
| 17 | extern struct blk_integrity t10_pi_type1_crc; |
| 18 | extern struct blk_integrity t10_pi_type1_ip; |
| 19 | extern struct blk_integrity t10_pi_type3_crc; |
| 20 | extern struct blk_integrity t10_pi_type3_ip; |
| 21 | |
| 22 | #endif |