summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash/common.h
diff options
context:
space:
mode:
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>2016-11-29 01:43:09 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2016-12-01 01:53:02 +0100
commit48b4be36edf8a2cb0dedcb2d28f598e51249e805 (patch)
tree3e38821dcd4701e0c5f834b05a6b51fe27b1c388 /drivers/scsi/cxlflash/common.h
parentscsi: cxlflash: Cleanup queuecommand() (diff)
downloadlinux-48b4be36edf8a2cb0dedcb2d28f598e51249e805.tar.xz
linux-48b4be36edf8a2cb0dedcb2d28f598e51249e805.zip
scsi: cxlflash: Migrate IOARRIN specific routines to function pointers
As staging for supporting hardware with a different queuing mechanism, move the send_cmd() and context_reset() routines to function pointers that are configured when the AFU is initialized. In addition, rename the existing routines to better reflect the queue model they support. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Acked-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash/common.h')
-rw-r--r--drivers/scsi/cxlflash/common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/common.h b/drivers/scsi/cxlflash/common.h
index bed8e60f312e..6b8d1d3d45ee 100644
--- a/drivers/scsi/cxlflash/common.h
+++ b/drivers/scsi/cxlflash/common.h
@@ -161,6 +161,9 @@ struct afu {
* fields after this point
*/
+ int (*send_cmd)(struct afu *, struct afu_cmd *);
+ void (*context_reset)(struct afu_cmd *);
+
/* AFU HW */
struct cxl_ioctl_start_work work;
struct cxlflash_afu_map __iomem *afu_map; /* entire MMIO map */