summaryrefslogtreecommitdiffstats
path: root/include/scsi/scsi_device.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-06-19 14:26:46 +0200
committerTejun Heo <tj@kernel.org>2017-06-29 10:21:15 -0400
commitd80210f25ff0050245556bb8ce84d280d8fa4ca7 (patch)
tree33e29cea8ae969eb19c884b9bc18bf577fe1589c /include/scsi/scsi_device.h
parentc8ccf812c36bfc939063b83614beaa2562828e07 (diff)
downloadlinux-stable-d80210f25ff0050245556bb8ce84d280d8fa4ca7.tar.gz
linux-stable-d80210f25ff0050245556bb8ce84d280d8fa4ca7.tar.bz2
linux-stable-d80210f25ff0050245556bb8ce84d280d8fa4ca7.zip
sd: add support for TCG OPAL self encrypting disks
Just wire up the generic TCG OPAL infrastructure to the SCSI disk driver and the Security In/Out commands. Note that I don't know of any actual SCSI disks that do support TCG OPAL, but this is required to support ATA disks through libata. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/scsi/scsi_device.h')
-rw-r--r--include/scsi/scsi_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 05641aebd181..310c86a892e9 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -176,6 +176,7 @@ struct scsi_device {
unsigned no_read_disc_info:1; /* Avoid READ_DISC_INFO cmds */
unsigned no_read_capacity_16:1; /* Avoid READ_CAPACITY_16 cmds */
unsigned try_rc_10_first:1; /* Try READ_CAPACACITY_10 first */
+ unsigned security_supported:1; /* Supports Security Protocols */
unsigned is_visible:1; /* is the device visible in sysfs */
unsigned wce_default_on:1; /* Cache is ON by default */
unsigned no_dif:1; /* T10 PI (DIF) should be disabled */