ARM: shmobile: r8a7740 dtsi: Add memory-controller node
[linux/fpc-iii.git] / include / xen / xen-ops.h
blob7491ee5d81647d704a7d34ce17e107c7c374b64d
1 #ifndef INCLUDE_XEN_OPS_H
2 #define INCLUDE_XEN_OPS_H
4 #include <linux/percpu.h>
5 #include <linux/notifier.h>
6 #include <linux/efi.h>
7 #include <asm/xen/interface.h>
9 DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
11 void xen_arch_pre_suspend(void);
12 void xen_arch_post_suspend(int suspend_cancelled);
14 void xen_timer_resume(void);
15 void xen_arch_resume(void);
17 void xen_resume_notifier_register(struct notifier_block *nb);
18 void xen_resume_notifier_unregister(struct notifier_block *nb);
20 int xen_setup_shutdown_event(void);
22 extern unsigned long *xen_contiguous_bitmap;
23 int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
24 unsigned int address_bits,
25 dma_addr_t *dma_handle);
27 void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
29 struct vm_area_struct;
30 int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
31 unsigned long addr,
32 xen_pfn_t mfn, int nr,
33 pgprot_t prot, unsigned domid,
34 struct page **pages);
35 int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
36 int numpgs, struct page **pages);
38 bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
40 #ifdef CONFIG_XEN_EFI
41 extern efi_system_table_t *xen_efi_probe(void);
42 #else
43 static inline efi_system_table_t __init *xen_efi_probe(void)
45 return NULL;
47 #endif
49 #endif /* INCLUDE_XEN_OPS_H */