blob: 95251512e2c4cbffa40c61443a659607b90e81bd [file] [log] [blame]
Stefano Stabellini4c071ee2012-09-14 13:53:39 +00001#ifndef _ASM_ARM_XEN_HYPERVISOR_H
2#define _ASM_ARM_XEN_HYPERVISOR_H
3
Stefano Stabellini5882bfe2015-05-06 14:13:31 +00004#include <linux/init.h>
5
Stefano Stabellini4c071ee2012-09-14 13:53:39 +00006extern struct shared_info *HYPERVISOR_shared_info;
7extern struct start_info *xen_start_info;
8
9/* Lazy mode for batching updates / context switch */
10enum paravirt_lazy_mode {
11 PARAVIRT_LAZY_NONE,
12 PARAVIRT_LAZY_MMU,
13 PARAVIRT_LAZY_CPU,
14};
15
16static inline enum paravirt_lazy_mode paravirt_get_lazy_mode(void)
17{
18 return PARAVIRT_LAZY_NONE;
19}
20
Stefano Stabellini83862cc2013-10-10 13:40:44 +000021extern struct dma_map_ops *xen_dma_ops;
22
Stefano Stabellini5882bfe2015-05-06 14:13:31 +000023#ifdef CONFIG_XEN
24void __init xen_early_init(void);
25#else
26static inline void xen_early_init(void) { return; }
27#endif
28
Stefano Stabellinia314e3e2015-10-22 16:20:46 +000029#ifdef CONFIG_HOTPLUG_CPU
30static inline void xen_arch_register_cpu(int num)
31{
32}
33
34static inline void xen_arch_unregister_cpu(int num)
35{
36}
37#endif
38
Stefano Stabellini4c071ee2012-09-14 13:53:39 +000039#endif /* _ASM_ARM_XEN_HYPERVISOR_H */