summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash/ocxl_hw.h
diff options
context:
space:
mode:
authorUma Krishnan2018-03-26 18:32:09 +0200
committerMartin K. Petersen2018-04-19 01:32:48 +0200
commit926a62f9bd53f5ad411e831eeb259a9564fb1532 (patch)
tree9716502391bcdf4a5a45b4a9a1d12102d73d4461 /drivers/scsi/cxlflash/ocxl_hw.h
parentscsi: cxlflash: Use IDR to manage adapter contexts (diff)
downloadkernel-qcow2-linux-926a62f9bd53f5ad411e831eeb259a9564fb1532.tar.gz
kernel-qcow2-linux-926a62f9bd53f5ad411e831eeb259a9564fb1532.tar.xz
kernel-qcow2-linux-926a62f9bd53f5ad411e831eeb259a9564fb1532.zip
scsi: cxlflash: Support adapter file descriptors for OCXL
Allocate a file descriptor for an adapter context when requested. In order to allocate inodes for the file descriptors, a pseudo filesystem is created and used. Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/cxlflash/ocxl_hw.h')
-rw-r--r--drivers/scsi/cxlflash/ocxl_hw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/cxlflash/ocxl_hw.h b/drivers/scsi/cxlflash/ocxl_hw.h
index a5337b62a557..55db0052a53c 100644
--- a/drivers/scsi/cxlflash/ocxl_hw.h
+++ b/drivers/scsi/cxlflash/ocxl_hw.h
@@ -33,6 +33,7 @@ struct ocxl_hw_afu {
struct ocxlflash_context {
struct ocxl_hw_afu *hw_afu; /* HW AFU back pointer */
+ struct address_space *mapping; /* Mapping for pseudo filesystem */
bool master; /* Whether this is a master context */
int pe; /* Process element */
};