mtw(4) remove misplaced DEBUG_FLAGS
[freebsd/src.git] / sys / xen / hypervisor.h
bloba3ad898e4ca7d4aa2b0a80286903a841150efd3c
1 /******************************************************************************
2 * hypervisor.h
3 *
4 * Linux-specific hypervisor handling.
5 *
6 * Copyright (c) 2002, K A Fraser
7 */
9 #ifndef __XEN_HYPERVISOR_H__
10 #define __XEN_HYPERVISOR_H__
12 #include <sys/cdefs.h>
13 #include <sys/systm.h>
14 #include <contrib/xen/xen.h>
15 #include <contrib/xen/platform.h>
16 #include <contrib/xen/event_channel.h>
17 #include <contrib/xen/physdev.h>
18 #include <contrib/xen/sched.h>
19 #include <contrib/xen/callback.h>
20 #include <contrib/xen/memory.h>
21 #include <contrib/xen/hvm/dm_op.h>
22 #include <machine/xen/hypercall.h>
24 static inline int
25 HYPERVISOR_console_write(const char *str, int count)
27 return HYPERVISOR_console_io(CONSOLEIO_write, count, str);
30 static inline int
31 HYPERVISOR_yield(void)
34 return (HYPERVISOR_sched_op(SCHEDOP_yield, NULL));
37 static inline void
38 HYPERVISOR_shutdown(unsigned int reason)
40 struct sched_shutdown sched_shutdown = {
41 .reason = reason
44 HYPERVISOR_sched_op(SCHEDOP_shutdown, &sched_shutdown);
47 #endif /* __XEN_HYPERVISOR_H__ */