From 2e0d29561f593a5ab6d37ea032513d2714a007df Mon Sep 17 00:00:00 2001 From: Diana Craciun Date: Mon, 5 Oct 2020 20:36:51 +0300 Subject: vfio/fsl-mc: Add irq infrastructure for fsl-mc devices This patch adds the skeleton for interrupt support for fsl-mc devices. The interrupts are not yet functional, the functionality will be added by subsequent patches. Signed-off-by: Bharat Bhushan Signed-off-by: Diana Craciun Reviewed-by: Eric Auger Signed-off-by: Alex Williamson --- drivers/vfio/fsl-mc/vfio_fsl_mc_private.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/vfio/fsl-mc/vfio_fsl_mc_private.h') diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc_private.h b/drivers/vfio/fsl-mc/vfio_fsl_mc_private.h index d47ef6215429..2c3f625a3240 100644 --- a/drivers/vfio/fsl-mc/vfio_fsl_mc_private.h +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc_private.h @@ -33,6 +33,12 @@ struct vfio_fsl_mc_device { int refcnt; struct vfio_fsl_mc_region *regions; struct vfio_fsl_mc_reflck *reflck; + struct mutex igate; }; +extern int vfio_fsl_mc_set_irqs_ioctl(struct vfio_fsl_mc_device *vdev, + u32 flags, unsigned int index, + unsigned int start, unsigned int count, + void *data); + #endif /* VFIO_FSL_MC_PRIVATE_H */ -- cgit v1.2.3