summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash/backend.h
diff options
context:
space:
mode:
authorUma Krishnan2018-03-26 18:31:01 +0200
committerMartin K. Petersen2018-04-19 01:32:47 +0200
commit48e077dbb41d8ddc2ba5af7a60af4c56302ea8c7 (patch)
tree5771a6f402cf270fbbad5f0b9751c5433c84838d /drivers/scsi/cxlflash/backend.h
parentscsi: cxlflash: Introduce OCXL backend (diff)
downloadkernel-qcow2-linux-48e077dbb41d8ddc2ba5af7a60af4c56302ea8c7.tar.gz
kernel-qcow2-linux-48e077dbb41d8ddc2ba5af7a60af4c56302ea8c7.tar.xz
kernel-qcow2-linux-48e077dbb41d8ddc2ba5af7a60af4c56302ea8c7.zip
scsi: cxlflash: Hardware AFU for OCXL
When an adapter is initialized, transport specific configuration and MMIO mapping details need to be saved. For CXL, this data is managed by the underlying kernel module. To maintain a separation between the cxlflash core and underlying transports, introduce a new structure to store data specific to the OCXL AFU. Initially only the pointers to underlying PCI and generic devices are added to this new structure - it will be expanded further in future commits. Services to create and destroy this hardware AFU are added and integrated in the probe and exit paths of the driver. Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash/backend.h')
-rw-r--r--drivers/scsi/cxlflash/backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/backend.h b/drivers/scsi/cxlflash/backend.h
index a60f0516090b..f675bcb4f153 100644
--- a/drivers/scsi/cxlflash/backend.h
+++ b/drivers/scsi/cxlflash/backend.h
@@ -36,6 +36,7 @@ struct cxlflash_backend_ops {
int (*allocate_afu_irqs)(void *ctx_cookie, int num);
void (*free_afu_irqs)(void *ctx_cookie);
void * (*create_afu)(struct pci_dev *dev);
+ void (*destroy_afu)(void *afu_cookie);
struct file * (*get_fd)(void *ctx_cookie, struct file_operations *fops,
int *fd);
void * (*fops_get_context)(struct file *file);