ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-xen/asm-ia64/hypervisor.h @ 8534:da7873110bbb

Tiny bootstrap cleanup.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Mon Jan 09 19:46:46 2006 +0100 (2006-01-09)
parents a08aef9f1c8e
children
line source
1 /******************************************************************************
2 * hypervisor.h
3 *
4 * Linux-specific hypervisor handling.
5 *
6 * Copyright (c) 2002-2004, K A Fraser
7 *
8 * This file may be distributed separately from the Linux kernel, or
9 * incorporated into other software packages, subject to the following license:
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this source file (the "Software"), to deal in the Software without
13 * restriction, including without limitation the rights to use, copy, modify,
14 * merge, publish, distribute, sublicense, and/or sell copies of the Software,
15 * and to permit persons to whom the Software is furnished to do so, subject to
16 * the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
27 * IN THE SOFTWARE.
28 */
30 #ifndef __HYPERVISOR_H__
31 #define __HYPERVISOR_H__
33 #include <linux/config.h>
34 #include <linux/types.h>
35 #include <linux/kernel.h>
36 #include <linux/version.h>
37 #include <asm-xen/xen-public/xen.h>
38 #include <asm-xen/xen-public/dom0_ops.h>
39 #include <asm/ptrace.h>
40 #include <asm/page.h>
42 extern shared_info_t *HYPERVISOR_shared_info;
43 extern start_info_t *xen_start_info;
45 void force_evtchn_callback(void);
47 #include <asm/hypercall.h>
49 // for drivers/xen/privcmd/privcmd.c
50 #define direct_remap_pfn_range(a,b,c,d,e,f) remap_pfn_range(a,b,c,d,e)
51 #define pfn_to_mfn(x) (x)
52 #define mfn_to_pfn(x) (x)
53 #define machine_to_phys_mapping 0
55 // for drivers/xen/balloon/balloon.c
56 #ifdef CONFIG_XEN_SCRUB_PAGES
57 #define scrub_pages(_p,_n) memset((void *)(_p), 0, (_n) << PAGE_SHIFT)
58 #else
59 #define scrub_pages(_p,_n) ((void)0)
60 #endif
61 #define pte_mfn(_x) pte_pfn(_x)
62 #define INVALID_P2M_ENTRY (~0UL)
63 #define __pte_ma(_x) ((pte_t) {(_x)})
64 #define phys_to_machine_mapping_valid(_x) (1)
65 #define kmap_flush_unused() do {} while (0)
66 #define set_phys_to_machine(_x,_y) do {} while (0)
67 #define xen_machphys_update(_x,_y) do {} while (0)
68 #define pfn_pte_ma(_x,_y) __pte_ma(0)
70 #endif /* __HYPERVISOR_H__ */