blob: dd8de82cf5b575c8aac692595068264ef0b3dce4 [file] [log] [blame]
Martin K. Petersen2341c2f2014-09-26 19:20:07 -04001#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 */
10struct 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
Martin K. Petersen0f8087e2015-10-21 13:19:33 -040017extern struct blk_integrity_profile t10_pi_type1_crc;
18extern struct blk_integrity_profile t10_pi_type1_ip;
19extern struct blk_integrity_profile t10_pi_type3_crc;
20extern struct blk_integrity_profile t10_pi_type3_ip;
Martin K. Petersen2341c2f2014-09-26 19:20:07 -040021
22#endif