1 /* $NetBSD: dom0_ops.h,v 1.3.28.1 2007/10/03 19:26:06 garbled Exp $ */
2 /******************************************************************************
5 * Process command requests from domain-0 guest OS.
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to
9 * deal in the Software without restriction, including without limitation the
10 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11 * sell copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
25 * Copyright (c) 2002-2003, B Dragovic
26 * Copyright (c) 2002-2006, K Fraser
29 #ifndef __XEN_PUBLIC_DOM0_OPS_H__
30 #define __XEN_PUBLIC_DOM0_OPS_H__
35 #if __XEN_INTERFACE_VERSION__ >= 0x00030204
36 #error "dom0_ops.h is a compatibility interface only"
39 #define DOM0_INTERFACE_VERSION XENPF_INTERFACE_VERSION
41 #define DOM0_SETTIME XENPF_settime
42 #define dom0_settime xenpf_settime
43 #define dom0_settime_t xenpf_settime_t
45 #define DOM0_ADD_MEMTYPE XENPF_add_memtype
46 #define dom0_add_memtype xenpf_add_memtype
47 #define dom0_add_memtype_t xenpf_add_memtype_t
49 #define DOM0_DEL_MEMTYPE XENPF_del_memtype
50 #define dom0_del_memtype xenpf_del_memtype
51 #define dom0_del_memtype_t xenpf_del_memtype_t
53 #define DOM0_READ_MEMTYPE XENPF_read_memtype
54 #define dom0_read_memtype xenpf_read_memtype
55 #define dom0_read_memtype_t xenpf_read_memtype_t
57 #define DOM0_MICROCODE XENPF_microcode_update
58 #define dom0_microcode xenpf_microcode_update
59 #define dom0_microcode_t xenpf_microcode_update_t
61 #define DOM0_PLATFORM_QUIRK XENPF_platform_quirk
62 #define dom0_platform_quirk xenpf_platform_quirk
63 #define dom0_platform_quirk_t xenpf_platform_quirk_t
65 typedef uint64_t cpumap_t
;
67 /* Unsupported legacy operation -- defined for API compatibility. */
80 typedef struct dom0_msr dom0_msr_t
;
81 DEFINE_XEN_GUEST_HANDLE(dom0_msr_t
);
83 /* Unsupported legacy operation -- defined for API compatibility. */
84 #define DOM0_PHYSICAL_MEMORY_MAP 40
85 struct dom0_memory_map_entry
{
87 uint32_t flags
; /* reserved */
90 typedef struct dom0_memory_map_entry dom0_memory_map_entry_t
;
91 DEFINE_XEN_GUEST_HANDLE(dom0_memory_map_entry_t
);
95 uint32_t interface_version
; /* DOM0_INTERFACE_VERSION */
98 struct dom0_settime settime
;
99 struct dom0_add_memtype add_memtype
;
100 struct dom0_del_memtype del_memtype
;
101 struct dom0_read_memtype read_memtype
;
102 struct dom0_microcode microcode
;
103 struct dom0_platform_quirk platform_quirk
;
104 struct dom0_memory_map_entry physical_memory_map
;
108 typedef struct dom0_op dom0_op_t
;
109 DEFINE_XEN_GUEST_HANDLE(dom0_op_t
);
111 #endif /* __XEN_PUBLIC_DOM0_OPS_H__ */
119 * indent-tabs-mode: nil