Skip to contentSkip to conversation

cxlflash: Support for superpipe I/O API

RFC PATCH In review Matthew R. Ochs 1 participant 1 message Apr 27, 2015 SCSI

lore
Share & tools
lore
#0 lore raw

RFC PATCH 2/2 cxlflash: Support for superpipe I/O API

Allow userspace applications to obtain CXL resources and exploit the superpipe functionality of the IBM CXL Flash adapter.

---
 drivers/scsi/cxlflash/Makefile     |    2 +-
 drivers/scsi/cxlflash/main.c       |    1 +
 drivers/scsi/cxlflash/main.h       |    1 +
 drivers/scsi/cxlflash/superpipe.c  | 1673 ++++++++++++++++++++++++++++++++++++
 drivers/scsi/cxlflash/superpipe.h  |   67 ++
 include/uapi/scsi/Kbuild           |    1 +
 include/uapi/scsi/cxlflash_ioctl.h |  133 +++
 7 files changed, 1877 insertions(+), 1 deletion(-)
 create mode 100644 drivers/scsi/cxlflash/superpipe.c
 create mode 100644 drivers/scsi/cxlflash/superpipe.h
 create mode 100644 include/uapi/scsi/cxlflash_ioctl.h
drivers/scsi/cxlflash/Makefile +1 -1
index 90e9382..5ddcae4 100644
@@ -1,4 +1,4 @@
 obj-$(CONFIG_CXLFLASH) += cxlflash.o
-cxlflash-y += main.o
+cxlflash-y += main.o superpipe.o
 
 ccflags-y += -DCONFIG_PRINTK
drivers/scsi/cxlflash/main.c +1 -0
index 2533ecb..4612ccd 100644
@@ -601,6 +601,7 @@ static struct scsi_host_template driver_template = {
 	.module = THIS_MODULE,
 	.name = CXLFLASH_ADAPTER_NAME,
 	.info = cxlflash_driver_info,
+	.ioctl = cxlflash_ioctl,
 	.proc_name = CXLFLASH_NAME,
 	.queuecommand = cxlflash_queuecommand,
 	.eh_device_reset_handler = cxlflash_eh_device_reset_handler,
drivers/scsi/cxlflash/main.h +1 -0
index b79d4f3..67332f1 100644
@@ -120,5 +120,6 @@ static inline u64 lun_to_lunid(u64 lun)
 /*
  * Externs and Prototypes
  */
+int cxlflash_ioctl(struct scsi_device *, int, void __user *);
 
 #endif /* _CXLFLASH_MAIN_H */
drivers/scsi/cxlflash/superpipe.c new file +1673 -0

1,673 lines not on this page · raw message

drivers/scsi/cxlflash/superpipe.h new file +67 -0

67 lines not on this page · raw message

include/uapi/scsi/Kbuild +1 -0
index 75746d5..d791e0a 100644
@@ -3,3 +3,4 @@ header-y += fc/
 header-y += scsi_bsg_fc.h
 header-y += scsi_netlink.h
 header-y += scsi_netlink_fc.h
+header-y += cxlflash_ioctl.h
include/uapi/scsi/cxlflash_ioctl.h new file +133 -0

133 lines not on this page · raw message

Signature · 1 line
2.1.0