]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - drivers/scsi/cxlflash/ocxl_hw.h
scsi: cxlflash: Support AFU interrupt management
[mirror_ubuntu-focal-kernel.git] / drivers / scsi / cxlflash / ocxl_hw.h
index 09fa94c73501e2e360cb2b04c83e813261c4d88c..85b3fad2426387a0524cfa91bbd089406aa3944f 100644 (file)
  * 2 of the License, or (at your option) any later version.
  */
 
+#define OCXL_MAX_IRQS  4       /* Max interrupts per process */
+
+struct ocxlflash_irqs {
+       int hwirq;
+       u64 ptrig;
+};
+
 /* OCXL hardware AFU associated with the host */
 struct ocxl_hw_afu {
        struct ocxlflash_context *ocxl_ctx; /* Host context */
@@ -45,4 +52,7 @@ struct ocxlflash_context {
 
        phys_addr_t psn_phys;           /* Process mapping */
        u64 psn_size;                   /* Process mapping size */
+
+       struct ocxlflash_irqs *irqs;    /* Pointer to array of structures */
+       int num_irqs;                   /* Number of interrupts */
 };