mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[SCSI] Host protection capabilities
Controllers that support protection information must indicate this to the SCSI midlayer so that the ULD can prepare scsi_cmnds accordingly. This patch implements a host mask and various types of protection: - DIF Type 1-3 (between HBA and disk) - DIX Type 0-3 (between OS and HBA) The patch also allows the HBA to set the guard type to something different than the T10-mandated CRC. Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
7c32c7a2d3
commit
4469f98780
2 changed files with 88 additions and 0 deletions
|
|
@ -249,6 +249,8 @@ shost_rd_attr(cmd_per_lun, "%hd\n");
|
|||
shost_rd_attr(can_queue, "%hd\n");
|
||||
shost_rd_attr(sg_tablesize, "%hu\n");
|
||||
shost_rd_attr(unchecked_isa_dma, "%d\n");
|
||||
shost_rd_attr(prot_capabilities, "%u\n");
|
||||
shost_rd_attr(prot_guard_type, "%hd\n");
|
||||
shost_rd_attr2(proc_name, hostt->proc_name, "%s\n");
|
||||
|
||||
static struct attribute *scsi_sysfs_shost_attrs[] = {
|
||||
|
|
@ -263,6 +265,8 @@ static struct attribute *scsi_sysfs_shost_attrs[] = {
|
|||
&dev_attr_hstate.attr,
|
||||
&dev_attr_supported_mode.attr,
|
||||
&dev_attr_active_mode.attr,
|
||||
&dev_attr_prot_capabilities.attr,
|
||||
&dev_attr_prot_guard_type.attr,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue