Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4c04536 authored by Ian Campbell's avatar Ian Campbell Committed by Jeremy Fitzhardinge
Browse files

xen: add irq_from_evtchn



Given an evtchn, return the corresponding irq.

Signed-off-by: default avatarIan Campbell <ian.campbell@citrix.com>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent 6d02c426
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);
+3 −0
Original line number Diff line number Diff line
@@ -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 */