blob: 03c85d7387fb7be265dad680dd50ba13b5425341 [file] [log] [blame]
Isaku Yamahatae04d0d02008-04-02 10:53:55 -07001#ifndef INCLUDE_XEN_OPS_H
2#define INCLUDE_XEN_OPS_H
3
4#include <linux/percpu.h>
5
6DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
7
Ian Campbell03c81422011-02-17 11:04:20 +00008void xen_arch_pre_suspend(void);
9void xen_arch_post_suspend(int suspend_cancelled);
10void xen_arch_hvm_post_suspend(int suspend_cancelled);
Jeremy Fitzhardinge0e913982008-05-26 23:31:27 +010011
12void xen_mm_pin_all(void);
13void xen_mm_unpin_all(void);
14
Isaku Yamahataad55db92008-07-08 15:06:32 -070015void xen_timer_resume(void);
16void xen_arch_resume(void);
17
Stefano Stabellini016b6f52010-05-14 12:45:07 +010018int xen_setup_shutdown_event(void);
19
Alex Nixon08bbc9d2009-02-09 12:05:46 -080020extern unsigned long *xen_contiguous_bitmap;
21int xen_create_contiguous_region(unsigned long vstart, unsigned int order,
22 unsigned int address_bits);
23
24void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order);
25
Ian Campbellde1ef202009-05-21 10:09:46 +010026int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
27 unsigned long addr,
28 unsigned long mfn, int nr,
29 pgprot_t prot, unsigned domid);
30
Isaku Yamahatae04d0d02008-04-02 10:53:55 -070031#endif /* INCLUDE_XEN_OPS_H */