aboutsummaryrefslogtreecommitdiff
path: root/hw/xen.h
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2010-07-16 14:55:39 +0100
committerAlexander Graf <agraf@suse.de>2011-05-08 10:10:00 +0200
commit4144530012793e6cd479eaa90cceb1aef0de8158 (patch)
tree03d74f1bff6a92cd502a1752aaf34780f268a44f /hw/xen.h
parent1611977c3d8fdbdac6090cbd1f5555cee4aed6d9 (diff)
piix_pci: Introduces Xen specific call for irq.
This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Alexander Graf <agraf@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/xen.h')
-rw-r--r--hw/xen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xen.h b/hw/xen.h
index bb4dcb5d19..a4096cadfd 100644
--- a/hw/xen.h
+++ b/hw/xen.h
@@ -8,6 +8,8 @@
*/
#include <inttypes.h>
+#include "qemu-common.h"
+
/* xen-machine.c */
enum xen_mode {
XEN_EMULATE = 0, // xen emulation, using xenner (default)
@@ -29,6 +31,10 @@ static inline int xen_enabled(void)
#endif
}
+int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);
+void xen_piix3_set_irq(void *opaque, int irq_num, int level);
+void xen_piix_pci_write_config_client(uint32_t address, uint32_t val, int len);
+
int xen_init(void);
int xen_hvm_init(void);
void xen_vcpu_init(void);