diff options
author | Siva Yerramreddy <yshivakrishna@gmail.com> | 2014-07-11 14:04:24 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-11 18:31:12 -0700 |
commit | 9c3d37c7a1efcb1815ec5cb22f70ca98da24f6b1 (patch) | |
tree | 01e90380e46fac715f19207f911f4eb1ff8bea84 /drivers/misc/mic/card/mic_device.h | |
parent | d4ef098e4cd836b3726781eabe064d7010b6eaa8 (diff) | |
download | blackbird-op-linux-9c3d37c7a1efcb1815ec5cb22f70ca98da24f6b1.tar.gz blackbird-op-linux-9c3d37c7a1efcb1815ec5cb22f70ca98da24f6b1.zip |
misc: mic: add threaded irq support in card driver
Add threaded irq support in mic_request_card_irq which will be used
for virtual devices added on mic bus.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Siva Yerramreddy <yshivakrishna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mic/card/mic_device.h')
-rw-r--r-- | drivers/misc/mic/card/mic_device.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/misc/mic/card/mic_device.h b/drivers/misc/mic/card/mic_device.h index 306f502be95e..e12a0c2ddb3d 100644 --- a/drivers/misc/mic/card/mic_device.h +++ b/drivers/misc/mic/card/mic_device.h @@ -30,6 +30,7 @@ #include <linux/workqueue.h> #include <linux/io.h> #include <linux/irqreturn.h> +#include <linux/interrupt.h> /** * struct mic_intr_info - Contains h/w specific interrupt sources info @@ -116,8 +117,8 @@ mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) int mic_driver_init(struct mic_driver *mdrv); void mic_driver_uninit(struct mic_driver *mdrv); int mic_next_card_db(void); -struct mic_irq *mic_request_card_irq(irqreturn_t (*func)(int irq, void *data), - const char *name, void *data, int intr_src); +struct mic_irq *mic_request_card_irq(irq_handler_t handler, + irq_handler_t thread_fn, const char *name, void *data, int intr_src); void mic_free_card_irq(struct mic_irq *cookie, void *data); u32 mic_read_spad(struct mic_device *mdev, unsigned int idx); void mic_send_intr(struct mic_device *mdev, int doorbell); |