ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h @ 9265:2f4911432398

[IA64] remove warning of xen_init()

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Wed Mar 15 08:20:28 2006 -0700 (2006-03-15)
parents c445d4a0dd76
children a07e25890329
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 <xen/interface/xen.h>
38 #include <xen/interface/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 int xen_init(void);
49 /* Turn jiffies into Xen system time. XXX Implement me. */
50 #define jiffies_to_st(j) 0
52 #include <asm/hypercall.h>
54 // for drivers/xen/privcmd/privcmd.c
55 #define direct_remap_pfn_range(a,b,c,d,e,f) remap_pfn_range(a,b,c,d,e)
56 #define pfn_to_mfn(x) (x)
57 #define mfn_to_pfn(x) (x)
58 #define machine_to_phys_mapping 0
60 // for drivers/xen/balloon/balloon.c
61 #ifdef CONFIG_XEN_SCRUB_PAGES
62 #define scrub_pages(_p,_n) memset((void *)(_p), 0, (_n) << PAGE_SHIFT)
63 #else
64 #define scrub_pages(_p,_n) ((void)0)
65 #endif
66 #define pte_mfn(_x) pte_pfn(_x)
67 #define INVALID_P2M_ENTRY (~0UL)
68 #define __pte_ma(_x) ((pte_t) {(_x)})
69 #define phys_to_machine_mapping_valid(_x) (1)
70 #define kmap_flush_unused() do {} while (0)
71 #define set_phys_to_machine(_x,_y) do {} while (0)
72 #define xen_machphys_update(_x,_y) do {} while (0)
73 #define pfn_pte_ma(_x,_y) __pte_ma(0)
75 #endif /* __HYPERVISOR_H__ */