]> Pileus Git - ~andy/linux/blob - include/xen/xen-ops.h
Input: don't modify the id of ioctl-provided ff effect on upload failure
[~andy/linux] / include / xen / xen-ops.h
1 #ifndef INCLUDE_XEN_OPS_H
2 #define INCLUDE_XEN_OPS_H
3
4 #include <linux/percpu.h>
5 #include <asm/xen/interface.h>
6
7 DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
8
9 void xen_arch_pre_suspend(void);
10 void xen_arch_post_suspend(int suspend_cancelled);
11 void xen_arch_hvm_post_suspend(int suspend_cancelled);
12
13 void xen_mm_pin_all(void);
14 void xen_mm_unpin_all(void);
15
16 void xen_timer_resume(void);
17 void xen_arch_resume(void);
18
19 int xen_setup_shutdown_event(void);
20
21 extern unsigned long *xen_contiguous_bitmap;
22 int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
23                                 unsigned int address_bits,
24                                 dma_addr_t *dma_handle);
25
26 void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
27
28 struct vm_area_struct;
29 int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
30                                unsigned long addr,
31                                xen_pfn_t mfn, int nr,
32                                pgprot_t prot, unsigned domid,
33                                struct page **pages);
34 int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
35                                int numpgs, struct page **pages);
36
37 bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
38 #endif /* INCLUDE_XEN_OPS_H */