summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas/hisi_sas.h
diff options
context:
space:
mode:
authorLuo Jiaxing <luojiaxing@huawei.com>2019-10-24 22:08:17 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-10-24 21:31:14 -0400
commite15f2e2dff5b809dce923839f21362d6b0d06b1e (patch)
tree4bd78ee0c13918d5cdf423be15d2b8fa7e989d4a /drivers/scsi/hisi_sas/hisi_sas.h
parent1f66e1fd26bddb4c9275b61934dbaaf4b0b0bd79 (diff)
downloadlinux-e15f2e2dff5b809dce923839f21362d6b0d06b1e.tar.bz2
scsi: hisi_sas: Add debugfs file structure for IOST
Create a file structure which was used to save the memory address for IOST at debugfs. This structure is bound to the corresponding debugfs file, it can help callback function of debugfs file to get what it needs. Link: https://lore.kernel.org/r/1571926105-74636-11-git-send-email-john.garry@huawei.com Signed-off-by: Luo Jiaxing <luojiaxing@huawei.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas.h')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h
index af5f836e5807..c4bcaa5aff8a 100644
--- a/drivers/scsi/hisi_sas/hisi_sas.h
+++ b/drivers/scsi/hisi_sas/hisi_sas.h
@@ -343,6 +343,10 @@ struct hisi_sas_debugfs_port {
u32 *data;
};
+struct hisi_sas_debugfs_iost {
+ struct hisi_sas_iost *iost;
+};
+
struct hisi_hba {
/* This must be the first element, used by SHOST_TO_SAS_HA */
struct sas_ha_struct *p;
@@ -428,7 +432,7 @@ struct hisi_hba {
struct hisi_sas_debugfs_port debugfs_port_reg[HISI_SAS_MAX_PHYS];
struct hisi_sas_debugfs_cq debugfs_cq[HISI_SAS_MAX_QUEUES];
struct hisi_sas_debugfs_dq debugfs_dq[HISI_SAS_MAX_QUEUES];
- struct hisi_sas_iost *debugfs_iost;
+ struct hisi_sas_debugfs_iost debugfs_iost;
struct hisi_sas_itct *debugfs_itct;
u64 *debugfs_iost_cache;
u64 debugfs_timestamp;