summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2015-12-09 11:13:35 -0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2015-12-18 19:29:50 -0800
commitbcf508c13385e74972f5cc06d8471d5c100395b0 (patch)
tree28d306e2a10f68596e725941866b4871c2cb2954 /include/scsi
parent3b91d09c1ca69a69c470efe5fbf346e3e90181d5 (diff)
downloadlinux-bcf508c13385e74972f5cc06d8471d5c100395b0.tar.gz
linux-bcf508c13385e74972f5cc06d8471d5c100395b0.tar.bz2
linux-bcf508c13385e74972f5cc06d8471d5c100395b0.zip
scsi_transport_sas: add function to get SAS endpoint address
For a device known to be SAS connected, this will return the endpoint address. This is useful for getting the SAS address of SATA devices. Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_transport_sas.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h
index a8fdd10fc9c5..13c0b2ba1b6c 100644
--- a/include/scsi/scsi_transport_sas.h
+++ b/include/scsi/scsi_transport_sas.h
@@ -189,6 +189,7 @@ extern int sas_phy_add(struct sas_phy *);
extern void sas_phy_delete(struct sas_phy *);
extern int scsi_is_sas_phy(const struct device *);
+u64 sas_get_address(struct scsi_device *);
unsigned int sas_tlr_supported(struct scsi_device *);
unsigned int sas_is_tlr_enabled(struct scsi_device *);
void sas_disable_tlr(struct scsi_device *);