root / hw / xen_common.h @ f7b4f61f
History | View | Annotate | Download (789 Bytes)
1 | d94f9486 | aliguori | #ifndef QEMU_HW_XEN_COMMON_H
|
---|---|---|---|
2 | d94f9486 | aliguori | #define QEMU_HW_XEN_COMMON_H 1 |
3 | d94f9486 | aliguori | |
4 | d94f9486 | aliguori | #include <stddef.h> |
5 | d94f9486 | aliguori | #include <inttypes.h> |
6 | d94f9486 | aliguori | |
7 | d94f9486 | aliguori | #include <xenctrl.h> |
8 | d94f9486 | aliguori | #include <xs.h> |
9 | d94f9486 | aliguori | #include <xen/io/xenbus.h> |
10 | d94f9486 | aliguori | |
11 | d94f9486 | aliguori | #include "hw.h" |
12 | d94f9486 | aliguori | #include "xen.h" |
13 | d94f9486 | aliguori | #include "sys-queue.h" /* BSD list implementation */ |
14 | d94f9486 | aliguori | |
15 | d94f9486 | aliguori | /*
|
16 | d94f9486 | aliguori | * tweaks needed to build with different xen versions
|
17 | d94f9486 | aliguori | * 0x00030205 -> 3.1.0
|
18 | d94f9486 | aliguori | * 0x00030207 -> 3.2.0
|
19 | d94f9486 | aliguori | * 0x00030208 -> unstable
|
20 | d94f9486 | aliguori | */
|
21 | d94f9486 | aliguori | #include <xen/xen-compat.h> |
22 | d94f9486 | aliguori | #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00030205 |
23 | d94f9486 | aliguori | # define evtchn_port_or_error_t int |
24 | d94f9486 | aliguori | #endif
|
25 | d94f9486 | aliguori | #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00030207 |
26 | d94f9486 | aliguori | # define xc_map_foreign_pages xc_map_foreign_batch
|
27 | d94f9486 | aliguori | #endif
|
28 | d94f9486 | aliguori | #if __XEN_LATEST_INTERFACE_VERSION__ < 0x00030208 |
29 | d94f9486 | aliguori | # define xen_mb() mb()
|
30 | d94f9486 | aliguori | # define xen_rmb() rmb()
|
31 | d94f9486 | aliguori | # define xen_wmb() wmb()
|
32 | d94f9486 | aliguori | #endif
|
33 | d94f9486 | aliguori | |
34 | d94f9486 | aliguori | #endif /* QEMU_HW_XEN_COMMON_H */ |