ia64/xen-unstable

view extras/mini-os/include/hypervisor.h @ 16520:a583f3a7eafc

Revert 16498:d2bef6551c1263e457aef75ce403ba53652a803f.
author Keir Fraser <keir.fraser@citrix.com>
date Tue Dec 04 22:54:58 2007 +0000 (2007-12-04)
parents ee519207734f
children e35a379e7fe9
line source
1 /******************************************************************************
2 * hypervisor.h
3 *
4 * Hypervisor handling.
5 *
6 *
7 * Copyright (c) 2002, K A Fraser
8 * Copyright (c) 2005, Grzegorz Milos
9 * Updates: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
10 * Updates: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> for ia64
11 */
13 #ifndef _HYPERVISOR_H_
14 #define _HYPERVISOR_H_
16 #include <types.h>
17 #include <xen/xen.h>
18 #if defined(__i386__)
19 #include <hypercall-x86_32.h>
20 #elif defined(__x86_64__)
21 #include <hypercall-x86_64.h>
22 #elif defined(__ia64__)
23 #include <hypercall-ia64.h>
24 #else
25 #error "Unsupported architecture"
26 #endif
28 /*
29 * a placeholder for the start of day information passed up from the hypervisor
30 */
31 union start_info_union
32 {
33 start_info_t start_info;
34 char padding[512];
35 };
36 extern union start_info_union start_info_union;
37 #define start_info (start_info_union.start_info)
39 /* hypervisor.c */
40 //void do_hypervisor_callback(struct pt_regs *regs);
41 void mask_evtchn(u32 port);
42 void unmask_evtchn(u32 port);
43 void clear_evtchn(u32 port);
45 extern int in_callback;
47 #endif /* __HYPERVISOR_H__ */