xen-ops.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef XEN_OPS_H
  2. #define XEN_OPS_H
  3. #include <linux/init.h>
  4. #include <linux/irqreturn.h>
  5. #include <xen/xen-ops.h>
  6. /* These are code, but not functions. Defined in entry.S */
  7. extern const char xen_hypervisor_callback[];
  8. extern const char xen_failsafe_callback[];
  9. struct trap_info;
  10. void xen_copy_trap_info(struct trap_info *traps);
  11. DECLARE_PER_CPU(unsigned long, xen_cr3);
  12. DECLARE_PER_CPU(unsigned long, xen_current_cr3);
  13. extern struct start_info *xen_start_info;
  14. extern struct shared_info xen_dummy_shared_info;
  15. extern struct shared_info *HYPERVISOR_shared_info;
  16. void xen_setup_mfn_list_list(void);
  17. void xen_setup_shared_info(void);
  18. char * __init xen_memory_setup(void);
  19. void __init xen_arch_setup(void);
  20. void __init xen_init_IRQ(void);
  21. void xen_enable_sysenter(void);
  22. void xen_enable_syscall(void);
  23. void xen_vcpu_restore(void);
  24. void __init xen_build_dynamic_phys_to_machine(void);
  25. void xen_setup_timer(int cpu);
  26. void xen_setup_cpu_clockevents(void);
  27. unsigned long xen_tsc_khz(void);
  28. void __init xen_time_init(void);
  29. unsigned long xen_get_wallclock(void);
  30. int xen_set_wallclock(unsigned long time);
  31. unsigned long long xen_sched_clock(void);
  32. irqreturn_t xen_debug_interrupt(int irq, void *dev_id);
  33. bool xen_vcpu_stolen(int vcpu);
  34. void xen_mark_init_mm_pinned(void);
  35. void __init xen_setup_vcpu_info_placement(void);
  36. #ifdef CONFIG_SMP
  37. void xen_smp_init(void);
  38. extern cpumask_t xen_cpu_initialized_map;
  39. #else
  40. static inline void xen_smp_init(void) {}
  41. #endif
  42. /* Declare an asm function, along with symbols needed to make it
  43. inlineable */
  44. #define DECL_ASM(ret, name, ...) \
  45. ret name(__VA_ARGS__); \
  46. extern char name##_end[]; \
  47. extern char name##_reloc[] \
  48. DECL_ASM(void, xen_irq_enable_direct, void);
  49. DECL_ASM(void, xen_irq_disable_direct, void);
  50. DECL_ASM(unsigned long, xen_save_fl_direct, void);
  51. DECL_ASM(void, xen_restore_fl_direct, unsigned long);
  52. /* These are not functions, and cannot be called normally */
  53. void xen_iret(void);
  54. void xen_sysexit(void);
  55. void xen_sysret32(void);
  56. void xen_sysret64(void);
  57. void xen_adjust_exception_frame(void);
  58. #endif /* XEN_OPS_H */