diff options
-rw-r--r-- | drivers/xen/events.c | 6 | ||||
-rw-r--r-- | include/xen/events.h | 3 |
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 | |||
767 | int xen_pirq_from_irq(unsigned irq) | ||
768 | { | ||
769 | return pirq_from_irq(irq); | ||
770 | } | ||
771 | EXPORT_SYMBOL_GPL(xen_pirq_from_irq); | ||
766 | int bind_evtchn_to_irq(unsigned int evtchn) | 772 | int 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 */ |
96 | int xen_irq_from_pirq(unsigned pirq); | 96 | int xen_irq_from_pirq(unsigned pirq); |
97 | 97 | ||
98 | /* Return the pirq allocated to the irq. */ | ||
99 | int 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. */ |
99 | int xen_test_irq_shared(int irq); | 102 | int xen_test_irq_shared(int irq); |
100 | 103 | ||