aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/xen/events.c6
-rw-r--r--include/xen/events.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 0ac7a149e7f2..e4e8e9a745bf 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -763,6 +763,12 @@ out:
763 return irq; 763 return irq;
764} 764}
765 765
766
767int xen_pirq_from_irq(unsigned irq)
768{
769 return pirq_from_irq(irq);
770}
771EXPORT_SYMBOL_GPL(xen_pirq_from_irq);
766int bind_evtchn_to_irq(unsigned int evtchn) 772int bind_evtchn_to_irq(unsigned int evtchn)
767{ 773{
768 int irq; 774 int irq;
diff --git a/include/xen/events.h b/include/xen/events.h
index 932e54051d3e..9af21e19545a 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -95,6 +95,9 @@ int xen_destroy_irq(int irq);
95/* Return irq from pirq */ 95/* Return irq from pirq */
96int xen_irq_from_pirq(unsigned pirq); 96int xen_irq_from_pirq(unsigned pirq);
97 97
98/* Return the pirq allocated to the irq. */
99int xen_pirq_from_irq(unsigned irq);
100
98/* Determine whether to ignore this IRQ if it is passed to a guest. */ 101/* Determine whether to ignore this IRQ if it is passed to a guest. */
99int xen_test_irq_shared(int irq); 102int xen_test_irq_shared(int irq);
100 103