xen: add irq_from_evtchn
[firefly-linux-kernel-4.4.55.git] / include / xen / events.h
index 4680ff3fbc91c569990e2c48bec8183ffe7888f3..e68d59a90ca88b73c21b431c3cf538165916d5a7 100644 (file)
@@ -46,9 +46,14 @@ extern void xen_irq_resume(void);
 
 /* Clear an irq's pending state, in preparation for polling on it */
 void xen_clear_irq_pending(int irq);
+void xen_set_irq_pending(int irq);
+bool xen_test_irq_pending(int irq);
 
 /* Poll waiting for an irq to become pending.  In the usual case, the
    irq will be disabled so it won't deliver an interrupt. */
 void xen_poll_irq(int irq);
 
+/* Determine the IRQ which is bound to an event channel */
+unsigned irq_from_evtchn(unsigned int evtchn);
+
 #endif /* _XEN_EVENTS_H */