|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 14/24] xen: add irq_from_evtchn
From: Ian Campbell <ian.campbell@xxxxxxxxxx>
Given an evtchn, return the corresponding irq.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
drivers/xen/events.c | 6 ++++++
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 30963af..1cd2a0e 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -151,6 +151,12 @@ static unsigned int evtchn_from_irq(unsigned irq)
return info_for_irq(irq)->evtchn;
}
+unsigned irq_from_evtchn(unsigned int evtchn)
+{
+ return evtchn_to_irq[evtchn];
+}
+EXPORT_SYMBOL_GPL(irq_from_evtchn);
+
static enum ipi_vector ipi_from_irq(unsigned irq)
{
struct irq_info *info = info_for_irq(irq);
diff --git a/include/xen/events.h b/include/xen/events.h
index 0d5f1ad..e68d59a 100644
--- a/include/xen/events.h
+++ b/include/xen/events.h
@@ -53,4 +53,7 @@ bool xen_test_irq_pending(int irq);
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 */
--
1.6.0.6
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 10/24] xen: mask XSAVE from cpuid, (continued)
[Xen-devel] [PATCH 13/24] Xen: Add virt_to_pfn helper function, Jeremy Fitzhardinge
[Xen-devel] [PATCH 11/24] xen: add FIX_TEXT_POKE to fixmap, Jeremy Fitzhardinge
[Xen-devel] [PATCH 14/24] xen: add irq_from_evtchn,
Jeremy Fitzhardinge <=
[Xen-devel] [PATCH 18/24] xen: add "capabilities" file, Jeremy Fitzhardinge
[Xen-devel] [PATCH 17/24] xen/dev-evtchn: clean up locking in evtchn, Jeremy Fitzhardinge
[Xen-devel] [PATCH 16/24] xen: export ioctl headers to userspace, Jeremy Fitzhardinge
[Xen-devel] [PATCH 15/24] xen: add /dev/xen/evtchn driver, Jeremy Fitzhardinge
[Xen-devel] [PATCH 21/24] xen: drop kexec bits from /sys/hypervisor since kexec isn't implemented yet, Jeremy Fitzhardinge
[Xen-devel] [PATCH 20/24] xen/sys/hypervisor: change writable_pt to features, Jeremy Fitzhardinge
[Xen-devel] [PATCH 19/24] xen: add /sys/hypervisor support, Jeremy Fitzhardinge
[Xen-devel] [PATCH 24/24] xen/xenbus: export xenbus_dev_changed, Jeremy Fitzhardinge
[Xen-devel] [PATCH 23/24] xen: use device model for suspending xenbus devices, Jeremy Fitzhardinge
|
|
|
|
|