diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-09-02 09:51:39 -0400 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2010-10-22 16:25:43 -0400 |
commit | 38aa66fcb79e0a46c24bba96b6f2b851a6ec2037 (patch) | |
tree | ada0747fc6a242581dc8c612bae53161f97ab14a /arch/x86/include/asm/xen/pci.h | |
parent | 6b0661a5e6fbfb159b78a39c0476905aa9b575fe (diff) |
xen: remap GSIs as pirqs when running as initial domain
Implement xen_register_gsi to setup the correct triggering and polarity
properties of a gsi.
Implement xen_register_pirq to register a particular gsi as pirq and
receive interrupts as events.
Call xen_setup_pirqs to register all the legacy ISA irqs as pirqs.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/include/asm/xen/pci.h')
-rw-r--r-- | arch/x86/include/asm/xen/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/xen/pci.h b/arch/x86/include/asm/xen/pci.h index f89a42aff284..2329b3eaf8d3 100644 --- a/arch/x86/include/asm/xen/pci.h +++ b/arch/x86/include/asm/xen/pci.h | |||
@@ -13,6 +13,13 @@ static inline int pci_xen_hvm_init(void) | |||
13 | return -1; | 13 | return -1; |
14 | } | 14 | } |
15 | #endif | 15 | #endif |
16 | #if defined(CONFIG_XEN_DOM0) | ||
17 | void __init xen_setup_pirqs(void); | ||
18 | #else | ||
19 | static inline void __init xen_setup_pirqs(void) | ||
20 | { | ||
21 | } | ||
22 | #endif | ||
16 | 23 | ||
17 | #if defined(CONFIG_PCI_MSI) | 24 | #if defined(CONFIG_PCI_MSI) |
18 | #if defined(CONFIG_PCI_XEN) | 25 | #if defined(CONFIG_PCI_XEN) |