aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-02-24 14:20:12 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-04-14 11:17:55 -0400
commite6197acc726ab3baa60375a5891d58c2ee87e0f3 (patch)
tree8403be98a0c6a3e2e845c30a4a028be2391a20e7 /include/xen
parentc7c2c3a28657cfdcef50c02b18ccca3761209e17 (diff)
xen/irq: Export 'xen_pirq_from_irq' function.
We need this to find the real Xen PIRQ value for a device that requests an MSI or MSI-X. In the past we used 'xen_gsi_from_irq' since that function would return an Xen PIRQ or GSI depending on the provided IRQ. Now that we have seperated that we need to use the correct function. [v2: Deal with rebase on stable/irq.cleanup] Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/events.h3
1 files changed, 3 insertions, 0 deletions
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