ia64/xen-unstable

view linux-2.6-xen-sparse/include/asm-ia64/hypervisor.h @ 9296:f85bb99187bf

Update interface documentation to include sched_op_new hypercall
and clean up the style a bit. Also clean up the sched_op_new
description in the sched.h public header.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Mar 15 19:19:22 2006 +0100 (2006-03-15)
parents c445d4a0dd76
children 2f4911432398
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 /* Turn jiffies into Xen system time. XXX Implement me. */
48 #define jiffies_to_st(j) 0
50 #include <asm/hypercall.h>
52 // for drivers/xen/privcmd/privcmd.c
53 #define direct_remap_pfn_range(a,b,c,d,e,f) remap_pfn_range(a,b,c,d,e)
54 #define pfn_to_mfn(x) (x)
55 #define mfn_to_pfn(x) (x)
56 #define machine_to_phys_mapping 0
58 // for drivers/xen/balloon/balloon.c
59 #ifdef CONFIG_XEN_SCRUB_PAGES
60 #define scrub_pages(_p,_n) memset((void *)(_p), 0, (_n) << PAGE_SHIFT)
61 #else
62 #define scrub_pages(_p,_n) ((void)0)
63 #endif
64 #define pte_mfn(_x) pte_pfn(_x)
65 #define INVALID_P2M_ENTRY (~0UL)
66 #define __pte_ma(_x) ((pte_t) {(_x)})
67 #define phys_to_machine_mapping_valid(_x) (1)
68 #define kmap_flush_unused() do {} while (0)
69 #define set_phys_to_machine(_x,_y) do {} while (0)
70 #define xen_machphys_update(_x,_y) do {} while (0)
71 #define pfn_pte_ma(_x,_y) __pte_ma(0)
73 #endif /* __HYPERVISOR_H__ */