diff options
author | Christoph Hellwig <hch@lst.de> | 2016-09-11 19:35:41 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-09-15 09:51:14 -0400 |
commit | 8475c8118551f806176b5af4d0e8657a5f015b95 (patch) | |
tree | 64d1f724585a7baef043f6163764d021f2e2f01c /drivers/scsi/sd.h | |
parent | 27c0e83b273a637d5cb56f02550c31d803bafc10 (diff) | |
download | blackbird-obmc-linux-8475c8118551f806176b5af4d0e8657a5f015b95.tar.gz blackbird-obmc-linux-8475c8118551f806176b5af4d0e8657a5f015b95.zip |
scsi: sd: Move DIF protection types to t10-pi.h
These should go together with the rest of the T10 protection information
defintions.
[mkp: s/T10_DIF/T10_PI/]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index d00966d6b41e..c8d986368da9 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h @@ -157,27 +157,6 @@ static inline unsigned int logical_to_bytes(struct scsi_device *sdev, sector_t b } /* - * A DIF-capable target device can be formatted with different - * protection schemes. Currently 0 through 3 are defined: - * - * Type 0 is regular (unprotected) I/O - * - * Type 1 defines the contents of the guard and reference tags - * - * Type 2 defines the contents of the guard and reference tags and - * uses 32-byte commands to seed the latter - * - * Type 3 defines the contents of the guard tag only - */ - -enum sd_dif_target_protection_types { - SD_DIF_TYPE0_PROTECTION = 0x0, - SD_DIF_TYPE1_PROTECTION = 0x1, - SD_DIF_TYPE2_PROTECTION = 0x2, - SD_DIF_TYPE3_PROTECTION = 0x3, -}; - -/* * Look up the DIX operation based on whether the command is read or * write and whether dix and dif are enabled. */ |