summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorXu Yilun <yilun.xu@intel.com>2020-06-16 12:08:44 +0800
committerMoritz Fischer <mdf@kernel.org>2020-06-28 12:43:16 -0700
commit322b598be4d9b9090cda560c4caab78704615ab4 (patch)
tree283e567dd6d5f36250dee984614ab15897d78655 /drivers/fpga/machxo2-spi.c
parentbfef946dbe1bbe6cae97bba27594e8d5b0e01ffa (diff)
downloadlinux-322b598be4d9b9090cda560c4caab78704615ab4.tar.gz
linux-322b598be4d9b9090cda560c4caab78704615ab4.tar.bz2
linux-322b598be4d9b9090cda560c4caab78704615ab4.zip
fpga: dfl: introduce interrupt trigger setting API
FPGA user applications may be interested in interrupts generated by DFL features. For example, users can implement their own FPGA logics with interrupts enabled in AFU (Accelerated Function Unit, dynamic region of DFL based FPGA). So user applications need to be notified to handle these interrupts. In order to allow userspace applications to monitor interrupts, driver requires userspace to provide eventfds as interrupt notification channels. Applications then poll/select on the eventfds to get notified. This patch introduces a generic helper functions to do eventfds binding with given interrupts. Sub feature drivers are expected to use XXX_GET_IRQ_NUM to query irq info, and XXX_SET_IRQ to set eventfds for interrupts. This patch also introduces helper functions for these 2 ioctls. Signed-off-by: Luwei Kang <luwei.kang@intel.com> Signed-off-by: Wu Hao <hao.wu@intel.com> Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Acked-by: Wu Hao <hao.wu@intel.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions