Go to the documentation of this file.
56 #ifndef _ASM_IA64_XEN_INTERFACE_H
57 #define _ASM_IA64_XEN_INTERFACE_H
59 #define __DEFINE_GUEST_HANDLE(name, type) \
60 typedef struct { type *p; } __guest_handle_ ## name
62 #define DEFINE_GUEST_HANDLE_STRUCT(name) \
63 __DEFINE_GUEST_HANDLE(name, struct name)
64 #define DEFINE_GUEST_HANDLE(name) __DEFINE_GUEST_HANDLE(name, name)
65 #define GUEST_HANDLE(name) __guest_handle_ ## name
66 #define GUEST_HANDLE_64(name) GUEST_HANDLE(name)
67 #define set_xen_guest_handle(hnd, val) do { (hnd).p = val; } while (0)
88 #define PRI_xen_pfn "lx"
92 #define VIRQ_ITC VIRQ_ARCH_0
93 #define VIRQ_MCA_CMC VIRQ_ARCH_1
94 #define VIRQ_MCA_CPE VIRQ_ARCH_2
99 #define MAX_VIRT_CPUS 64
103 #define INVALID_MFN (~0UL)
272 #include <asm/pvclock-abi.h>
276 #define XSI_SIZE (1 << XSI_SHIFT)
278 #define XMAPPEDREGS_SHIFT 12
279 #define XMAPPEDREGS_SIZE (1 << XMAPPEDREGS_SHIFT)
281 #define XMAPPEDREGS_OFS XSI_SIZE
284 #define HYPERPRIVOP_START 0x1
285 #define HYPERPRIVOP_RFI (HYPERPRIVOP_START + 0x0)
286 #define HYPERPRIVOP_RSM_DT (HYPERPRIVOP_START + 0x1)
287 #define HYPERPRIVOP_SSM_DT (HYPERPRIVOP_START + 0x2)
288 #define HYPERPRIVOP_COVER (HYPERPRIVOP_START + 0x3)
289 #define HYPERPRIVOP_ITC_D (HYPERPRIVOP_START + 0x4)
290 #define HYPERPRIVOP_ITC_I (HYPERPRIVOP_START + 0x5)
291 #define HYPERPRIVOP_SSM_I (HYPERPRIVOP_START + 0x6)
292 #define HYPERPRIVOP_GET_IVR (HYPERPRIVOP_START + 0x7)
293 #define HYPERPRIVOP_GET_TPR (HYPERPRIVOP_START + 0x8)
294 #define HYPERPRIVOP_SET_TPR (HYPERPRIVOP_START + 0x9)
295 #define HYPERPRIVOP_EOI (HYPERPRIVOP_START + 0xa)
296 #define HYPERPRIVOP_SET_ITM (HYPERPRIVOP_START + 0xb)
297 #define HYPERPRIVOP_THASH (HYPERPRIVOP_START + 0xc)
298 #define HYPERPRIVOP_PTC_GA (HYPERPRIVOP_START + 0xd)
299 #define HYPERPRIVOP_ITR_D (HYPERPRIVOP_START + 0xe)
300 #define HYPERPRIVOP_GET_RR (HYPERPRIVOP_START + 0xf)
301 #define HYPERPRIVOP_SET_RR (HYPERPRIVOP_START + 0x10)
302 #define HYPERPRIVOP_SET_KR (HYPERPRIVOP_START + 0x11)
303 #define HYPERPRIVOP_FC (HYPERPRIVOP_START + 0x12)
304 #define HYPERPRIVOP_GET_CPUID (HYPERPRIVOP_START + 0x13)
305 #define HYPERPRIVOP_GET_PMD (HYPERPRIVOP_START + 0x14)
306 #define HYPERPRIVOP_GET_EFLAG (HYPERPRIVOP_START + 0x15)
307 #define HYPERPRIVOP_SET_EFLAG (HYPERPRIVOP_START + 0x16)
308 #define HYPERPRIVOP_RSM_BE (HYPERPRIVOP_START + 0x17)
309 #define HYPERPRIVOP_GET_PSR (HYPERPRIVOP_START + 0x18)
310 #define HYPERPRIVOP_SET_RR0_TO_RR4 (HYPERPRIVOP_START + 0x19)
311 #define HYPERPRIVOP_MAX (0x1a)
314 #define __HYPERVISOR_ia64_fast_eoi __HYPERVISOR_arch_1
317 #define XENCOMM_INLINE_MASK 0xf800000000000000UL
318 #define XENCOMM_INLINE_FLAG 0x8000000000000000UL
327 #define __HYPERVISOR_opt_feature 0x700UL
329 #define XEN_IA64_OPTF_OFF 0x0
330 #define XEN_IA64_OPTF_ON 0x1
338 #define XEN_IA64_OPTF_IDENT_MAP_REG7 1
341 #define XEN_IA64_OPTF_IDENT_MAP_REG4 2
344 #define XEN_IA64_OPTF_IDENT_MAP_REG5 3
346 #define XEN_IA64_OPTF_IDENT_MAP_NOT_SET (0)