Commit | Line | Data |
---|---|---|
e04d0d07 IY |
1 | #ifndef INCLUDE_XEN_OPS_H |
2 | #define INCLUDE_XEN_OPS_H | |
3 | ||
4 | #include <linux/percpu.h> | |
cd979883 | 5 | #include <linux/notifier.h> |
7892f692 | 6 | #include <asm/xen/interface.h> |
e04d0d07 IY |
7 | |
8 | DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu); | |
9 | ||
03c8142b IC |
10 | void xen_arch_pre_suspend(void); |
11 | void xen_arch_post_suspend(int suspend_cancelled); | |
12 | void xen_arch_hvm_post_suspend(int suspend_cancelled); | |
0e91398f JF |
13 | |
14 | void xen_mm_pin_all(void); | |
15 | void xen_mm_unpin_all(void); | |
16 | ||
ad55db9f IY |
17 | void xen_timer_resume(void); |
18 | void xen_arch_resume(void); | |
19 | ||
cd979883 SG |
20 | void xen_resume_notifier_register(struct notifier_block *nb); |
21 | void xen_resume_notifier_unregister(struct notifier_block *nb); | |
22 | ||
016b6f5f SS |
23 | int xen_setup_shutdown_event(void); |
24 | ||
08bbc9da | 25 | extern unsigned long *xen_contiguous_bitmap; |
1b65c4e5 | 26 | int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order, |
69908907 SS |
27 | unsigned int address_bits, |
28 | dma_addr_t *dma_handle); | |
08bbc9da | 29 | |
1b65c4e5 | 30 | void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order); |
08bbc9da | 31 | |
c140d879 | 32 | struct vm_area_struct; |
de1ef206 IC |
33 | int xen_remap_domain_mfn_range(struct vm_area_struct *vma, |
34 | unsigned long addr, | |
7892f692 | 35 | xen_pfn_t mfn, int nr, |
9a032e39 IC |
36 | pgprot_t prot, unsigned domid, |
37 | struct page **pages); | |
38 | int xen_unmap_domain_mfn_range(struct vm_area_struct *vma, | |
39 | int numpgs, struct page **pages); | |
de1ef206 | 40 | |
394b40f6 | 41 | bool xen_running_on_version_or_later(unsigned int major, unsigned int minor); |
e04d0d07 | 42 | #endif /* INCLUDE_XEN_OPS_H */ |