mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
xen: add irq_from_evtchn
Given an evtchn, return the corresponding irq. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
parent
6d02c42698
commit
d4c045364d
2 changed files with 9 additions and 0 deletions
|
@ -151,6 +151,12 @@ static unsigned int evtchn_from_irq(unsigned irq)
|
||||||
return info_for_irq(irq)->evtchn;
|
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)
|
static enum ipi_vector ipi_from_irq(unsigned irq)
|
||||||
{
|
{
|
||||||
struct irq_info *info = info_for_irq(irq);
|
struct irq_info *info = info_for_irq(irq);
|
||||||
|
|
|
@ -53,4 +53,7 @@ bool xen_test_irq_pending(int irq);
|
||||||
irq will be disabled so it won't deliver an interrupt. */
|
irq will be disabled so it won't deliver an interrupt. */
|
||||||
void xen_poll_irq(int irq);
|
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 */
|
#endif /* _XEN_EVENTS_H */
|
||||||
|
|
Loading…
Reference in a new issue