xen-ops.h 1.3 KB
Newer Older
1 2 3 4
#ifndef INCLUDE_XEN_OPS_H
#define INCLUDE_XEN_OPS_H

#include <linux/percpu.h>
5
#include <linux/notifier.h>
D
Daniel Kiper 已提交
6
#include <linux/efi.h>
7
#include <asm/xen/interface.h>
8 9 10

DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);

11 12
void xen_arch_pre_suspend(void);
void xen_arch_post_suspend(int suspend_cancelled);
13

14 15 16
void xen_timer_resume(void);
void xen_arch_resume(void);

17 18 19
void xen_resume_notifier_register(struct notifier_block *nb);
void xen_resume_notifier_unregister(struct notifier_block *nb);

20 21
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 25
				unsigned int address_bits,
				dma_addr_t *dma_handle);
26

27
void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
28

29
struct vm_area_struct;
30 31
int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
			       unsigned long addr,
32
			       xen_pfn_t mfn, int nr,
33 34 35 36
			       pgprot_t prot, unsigned domid,
			       struct page **pages);
int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
			       int numpgs, struct page **pages);
37

38
bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
D
Daniel Kiper 已提交
39 40 41 42 43 44 45 46 47 48

#ifdef CONFIG_XEN_EFI
extern efi_system_table_t *xen_efi_probe(void);
#else
static efi_system_table_t __init *xen_efi_probe(void)
{
	return NULL;
}
#endif

49
#endif /* INCLUDE_XEN_OPS_H */