Linux Audio

Check our new training course

Loading...
v3.5.6
 1#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
 8void xen_arch_pre_suspend(void);
 9void xen_arch_post_suspend(int suspend_cancelled);
10void xen_arch_hvm_post_suspend(int suspend_cancelled);
11
12void xen_mm_pin_all(void);
13void xen_mm_unpin_all(void);
14
15void xen_timer_resume(void);
16void xen_arch_resume(void);
17
 
 
 
18int xen_setup_shutdown_event(void);
19
20extern 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
26struct vm_area_struct;
27int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
28			       unsigned long addr,
29			       unsigned long mfn, int nr,
30			       pgprot_t prot, unsigned domid);
 
 
 
31
 
32#endif /* INCLUDE_XEN_OPS_H */
v3.15
 1#ifndef INCLUDE_XEN_OPS_H
 2#define INCLUDE_XEN_OPS_H
 3
 4#include <linux/percpu.h>
 5#include <linux/notifier.h>
 6#include <asm/xen/interface.h>
 7
 8DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
 9
10void xen_arch_pre_suspend(void);
11void xen_arch_post_suspend(int suspend_cancelled);
12void xen_arch_hvm_post_suspend(int suspend_cancelled);
13
14void xen_mm_pin_all(void);
15void xen_mm_unpin_all(void);
16
17void xen_timer_resume(void);
18void xen_arch_resume(void);
19
20void xen_resume_notifier_register(struct notifier_block *nb);
21void xen_resume_notifier_unregister(struct notifier_block *nb);
22
23int xen_setup_shutdown_event(void);
24
25extern unsigned long *xen_contiguous_bitmap;
26int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
27				unsigned int address_bits,
28				dma_addr_t *dma_handle);
29
30void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
31
32struct vm_area_struct;
33int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
34			       unsigned long addr,
35			       xen_pfn_t mfn, int nr,
36			       pgprot_t prot, unsigned domid,
37			       struct page **pages);
38int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
39			       int numpgs, struct page **pages);
40
41bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
42#endif /* INCLUDE_XEN_OPS_H */