1 /******************************************************************************
4 * Process command requests from domain-0 guest OS.
6 * Copyright (c) 2002-2003, B Dragovic
7 * Copyright (c) 2002-2006, K Fraser
10 #ifndef __XEN_PUBLIC_DOM0_OPS_H__
11 #define __XEN_PUBLIC_DOM0_OPS_H__
16 #if __XEN_INTERFACE_VERSION__ >= 0x00030204
17 #error "dom0_ops.h is a compatibility interface only"
20 #define DOM0_INTERFACE_VERSION XENPF_INTERFACE_VERSION
22 #define DOM0_SETTIME XENPF_settime
23 #define dom0_settime xenpf_settime
24 #define dom0_settime_t xenpf_settime_t
26 #define DOM0_ADD_MEMTYPE XENPF_add_memtype
27 #define dom0_add_memtype xenpf_add_memtype
28 #define dom0_add_memtype_t xenpf_add_memtype_t
30 #define DOM0_DEL_MEMTYPE XENPF_del_memtype
31 #define dom0_del_memtype xenpf_del_memtype
32 #define dom0_del_memtype_t xenpf_del_memtype_t
34 #define DOM0_READ_MEMTYPE XENPF_read_memtype
35 #define dom0_read_memtype xenpf_read_memtype
36 #define dom0_read_memtype_t xenpf_read_memtype_t
38 #define DOM0_MICROCODE XENPF_microcode_update
39 #define dom0_microcode xenpf_microcode_update
40 #define dom0_microcode_t xenpf_microcode_update_t
42 #define DOM0_PLATFORM_QUIRK XENPF_platform_quirk
43 #define dom0_platform_quirk xenpf_platform_quirk
44 #define dom0_platform_quirk_t xenpf_platform_quirk_t
46 typedef uint64_t cpumap_t;
48 /* Unsupported legacy operation -- defined for API compatibility. */
61 typedef struct dom0_msr dom0_msr_t;
62 DEFINE_XEN_GUEST_HANDLE(dom0_msr_t);
64 /* Unsupported legacy operation -- defined for API compatibility. */
65 #define DOM0_PHYSICAL_MEMORY_MAP 40
66 struct dom0_memory_map_entry {
68 uint32_t flags; /* reserved */
71 typedef struct dom0_memory_map_entry dom0_memory_map_entry_t;
72 DEFINE_XEN_GUEST_HANDLE(dom0_memory_map_entry_t);
76 uint32_t interface_version; /* DOM0_INTERFACE_VERSION */
79 struct dom0_settime settime;
80 struct dom0_add_memtype add_memtype;
81 struct dom0_del_memtype del_memtype;
82 struct dom0_read_memtype read_memtype;
83 struct dom0_microcode microcode;
84 struct dom0_platform_quirk platform_quirk;
85 struct dom0_memory_map_entry physical_memory_map;
89 typedef struct dom0_op dom0_op_t;
90 DEFINE_XEN_GUEST_HANDLE(dom0_op_t);
92 #endif /* __XEN_PUBLIC_DOM0_OPS_H__ */
100 * indent-tabs-mode: nil