xen-ops.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef INCLUDE_XEN_OPS_H
  2. #define INCLUDE_XEN_OPS_H
  3. #include <linux/percpu.h>
  4. #include <asm/xen/interface.h>
  5. DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
  6. void xen_arch_pre_suspend(void);
  7. void xen_arch_post_suspend(int suspend_cancelled);
  8. void xen_arch_hvm_post_suspend(int suspend_cancelled);
  9. void xen_mm_pin_all(void);
  10. void xen_mm_unpin_all(void);
  11. void xen_timer_resume(void);
  12. void xen_arch_resume(void);
  13. int xen_setup_shutdown_event(void);
  14. extern unsigned long *xen_contiguous_bitmap;
  15. int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order,
  16. unsigned int address_bits,
  17. dma_addr_t *dma_handle);
  18. void xen_destroy_contiguous_region(phys_addr_t pstart, unsigned int order);
  19. struct vm_area_struct;
  20. int xen_remap_domain_mfn_range(struct vm_area_struct *vma,
  21. unsigned long addr,
  22. xen_pfn_t mfn, int nr,
  23. pgprot_t prot, unsigned domid,
  24. struct page **pages);
  25. int xen_unmap_domain_mfn_range(struct vm_area_struct *vma,
  26. int numpgs, struct page **pages);
  27. bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
  28. #endif /* INCLUDE_XEN_OPS_H */