diff options
Diffstat (limited to 'drivers/misc/mic/card/mic_device.h')
| -rw-r--r-- | drivers/misc/mic/card/mic_device.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/misc/mic/card/mic_device.h b/drivers/misc/mic/card/mic_device.h index 306f502be95e..844be8fc9b22 100644 --- a/drivers/misc/mic/card/mic_device.h +++ b/drivers/misc/mic/card/mic_device.h | |||
| @@ -30,6 +30,8 @@ | |||
| 30 | #include <linux/workqueue.h> | 30 | #include <linux/workqueue.h> |
| 31 | #include <linux/io.h> | 31 | #include <linux/io.h> |
| 32 | #include <linux/irqreturn.h> | 32 | #include <linux/irqreturn.h> |
| 33 | #include <linux/interrupt.h> | ||
| 34 | #include <linux/mic_bus.h> | ||
| 33 | 35 | ||
| 34 | /** | 36 | /** |
| 35 | * struct mic_intr_info - Contains h/w specific interrupt sources info | 37 | * struct mic_intr_info - Contains h/w specific interrupt sources info |
| @@ -70,6 +72,7 @@ struct mic_device { | |||
| 70 | * @hotplug_work: Hot plug work for adding/removing virtio devices. | 72 | * @hotplug_work: Hot plug work for adding/removing virtio devices. |
| 71 | * @irq_info: The OS specific irq information | 73 | * @irq_info: The OS specific irq information |
| 72 | * @intr_info: H/W specific interrupt information. | 74 | * @intr_info: H/W specific interrupt information. |
| 75 | * @dma_mbdev: dma device on the MIC virtual bus. | ||
| 73 | */ | 76 | */ |
| 74 | struct mic_driver { | 77 | struct mic_driver { |
| 75 | char name[20]; | 78 | char name[20]; |
| @@ -80,6 +83,7 @@ struct mic_driver { | |||
| 80 | struct work_struct hotplug_work; | 83 | struct work_struct hotplug_work; |
| 81 | struct mic_irq_info irq_info; | 84 | struct mic_irq_info irq_info; |
| 82 | struct mic_intr_info intr_info; | 85 | struct mic_intr_info intr_info; |
| 86 | struct mbus_device *dma_mbdev; | ||
| 83 | }; | 87 | }; |
| 84 | 88 | ||
| 85 | /** | 89 | /** |
| @@ -116,8 +120,9 @@ mic_mmio_write(struct mic_mw *mw, u32 val, u32 offset) | |||
| 116 | int mic_driver_init(struct mic_driver *mdrv); | 120 | int mic_driver_init(struct mic_driver *mdrv); |
| 117 | void mic_driver_uninit(struct mic_driver *mdrv); | 121 | void mic_driver_uninit(struct mic_driver *mdrv); |
| 118 | int mic_next_card_db(void); | 122 | int mic_next_card_db(void); |
| 119 | struct mic_irq *mic_request_card_irq(irqreturn_t (*func)(int irq, void *data), | 123 | struct mic_irq * |
| 120 | const char *name, void *data, int intr_src); | 124 | mic_request_card_irq(irq_handler_t handler, irq_handler_t thread_fn, |
| 125 | const char *name, void *data, int intr_src); | ||
| 121 | void mic_free_card_irq(struct mic_irq *cookie, void *data); | 126 | void mic_free_card_irq(struct mic_irq *cookie, void *data); |
| 122 | u32 mic_read_spad(struct mic_device *mdev, unsigned int idx); | 127 | u32 mic_read_spad(struct mic_device *mdev, unsigned int idx); |
| 123 | void mic_send_intr(struct mic_device *mdev, int doorbell); | 128 | void mic_send_intr(struct mic_device *mdev, int doorbell); |
