summaryrefslogtreecommitdiff
path: root/include/linux/irq_poll.h
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2015-12-23 01:03:15 +0300
committerDoug Ledford <dledford@redhat.com>2015-12-23 01:03:15 +0300
commit882f3b3b916a01c703bf7516800a0dca741cd3e7 (patch)
tree3a67f04a2b31985bb8044d39f0f5ebd9858658ae /include/linux/irq_poll.h
parent182a2da0c768a9ec64abb0d6009667057f1c06af (diff)
parentc6333f9f9f7646e311248a09e8ed96126a97aba8 (diff)
downloadlinux-882f3b3b916a01c703bf7516800a0dca741cd3e7.tar.xz
Merge branches '4.5/Or-cleanup' and '4.5/rdma-cq' into k.o/for-4.5
Signed-off-by: Doug Ledford <dledford@redhat.com> Conflicts: drivers/infiniband/ulp/iser/iser_verbs.c
Diffstat (limited to 'include/linux/irq_poll.h')
-rw-r--r--include/linux/irq_poll.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/irq_poll.h b/include/linux/irq_poll.h
new file mode 100644
index 000000000000..3e8c1b8fb9be
--- /dev/null
+++ b/include/linux/irq_poll.h
@@ -0,0 +1,25 @@
+#ifndef IRQ_POLL_H
+#define IRQ_POLL_H
+
+struct irq_poll;
+typedef int (irq_poll_fn)(struct irq_poll *, int);
+
+struct irq_poll {
+ struct list_head list;
+ unsigned long state;
+ int weight;
+ irq_poll_fn *poll;
+};
+
+enum {
+ IRQ_POLL_F_SCHED = 0,
+ IRQ_POLL_F_DISABLE = 1,
+};
+
+extern void irq_poll_sched(struct irq_poll *);
+extern void irq_poll_init(struct irq_poll *, int, irq_poll_fn *);
+extern void irq_poll_complete(struct irq_poll *);
+extern void irq_poll_enable(struct irq_poll *);
+extern void irq_poll_disable(struct irq_poll *);
+
+#endif