Commit | Line | Data |
---|---|---|
5ead97c8 JF |
1 | #ifndef XEN_OPS_H |
2 | #define XEN_OPS_H | |
3 | ||
4 | #include <linux/init.h> | |
ee523ca1 | 5 | #include <linux/irqreturn.h> |
e04d0d07 | 6 | #include <xen/xen-ops.h> |
5ead97c8 | 7 | |
f87e4cac JF |
8 | /* These are code, but not functions. Defined in entry.S */ |
9 | extern const char xen_hypervisor_callback[]; | |
10 | extern const char xen_failsafe_callback[]; | |
11 | ||
0e91398f | 12 | struct trap_info; |
f87e4cac JF |
13 | void xen_copy_trap_info(struct trap_info *traps); |
14 | ||
5ead97c8 | 15 | DECLARE_PER_CPU(unsigned long, xen_cr3); |
9f79991d | 16 | DECLARE_PER_CPU(unsigned long, xen_current_cr3); |
5ead97c8 JF |
17 | |
18 | extern struct start_info *xen_start_info; | |
a0d695c8 | 19 | extern struct shared_info xen_dummy_shared_info; |
5ead97c8 JF |
20 | extern struct shared_info *HYPERVISOR_shared_info; |
21 | ||
d5edbc1f | 22 | void xen_setup_mfn_list_list(void); |
0e91398f | 23 | void xen_setup_shared_info(void); |
d5edbc1f | 24 | |
5ead97c8 JF |
25 | char * __init xen_memory_setup(void); |
26 | void __init xen_arch_setup(void); | |
27 | void __init xen_init_IRQ(void); | |
e2a81baf | 28 | void xen_enable_sysenter(void); |
9c7a7942 | 29 | void xen_vcpu_restore(void); |
5ead97c8 | 30 | |
d451bb7a JF |
31 | void __init xen_build_dynamic_phys_to_machine(void); |
32 | ||
f87e4cac JF |
33 | void xen_setup_timer(int cpu); |
34 | void xen_setup_cpu_clockevents(void); | |
e93ef949 | 35 | unsigned long xen_tsc_khz(void); |
5ead97c8 JF |
36 | void __init xen_time_init(void); |
37 | unsigned long xen_get_wallclock(void); | |
38 | int xen_set_wallclock(unsigned long time); | |
ab550288 | 39 | unsigned long long xen_sched_clock(void); |
d07af1f0 | 40 | void xen_timer_resume(void); |
5ead97c8 | 41 | |
ee523ca1 JF |
42 | irqreturn_t xen_debug_interrupt(int irq, void *dev_id); |
43 | ||
f0d73394 JF |
44 | bool xen_vcpu_stolen(int vcpu); |
45 | ||
f4f97b3e JF |
46 | void xen_mark_init_mm_pinned(void); |
47 | ||
f87e4cac JF |
48 | void __init xen_fill_possible_map(void); |
49 | ||
60223a32 | 50 | void __init xen_setup_vcpu_info_placement(void); |
f87e4cac JF |
51 | void xen_smp_prepare_boot_cpu(void); |
52 | void xen_smp_prepare_cpus(unsigned int max_cpus); | |
53 | int xen_cpu_up(unsigned int cpu); | |
54 | void xen_smp_cpus_done(unsigned int max_cpus); | |
55 | ||
56 | void xen_smp_send_stop(void); | |
57 | void xen_smp_send_reschedule(int cpu); | |
58 | int xen_smp_call_function (void (*func) (void *info), void *info, int nonatomic, | |
59 | int wait); | |
60 | int xen_smp_call_function_single(int cpu, void (*func) (void *info), void *info, | |
61 | int nonatomic, int wait); | |
62 | ||
63 | int xen_smp_call_function_mask(cpumask_t mask, void (*func)(void *), | |
64 | void *info, int wait); | |
5ead97c8 | 65 | |
0e91398f JF |
66 | extern cpumask_t xen_cpu_initialized_map; |
67 | ||
6487673b JF |
68 | |
69 | /* Declare an asm function, along with symbols needed to make it | |
70 | inlineable */ | |
71 | #define DECL_ASM(ret, name, ...) \ | |
72 | ret name(__VA_ARGS__); \ | |
73 | extern char name##_end[]; \ | |
74 | extern char name##_reloc[] \ | |
75 | ||
76 | DECL_ASM(void, xen_irq_enable_direct, void); | |
77 | DECL_ASM(void, xen_irq_disable_direct, void); | |
78 | DECL_ASM(unsigned long, xen_save_fl_direct, void); | |
79 | DECL_ASM(void, xen_restore_fl_direct, unsigned long); | |
80 | ||
81e103f1 | 81 | void xen_iret(void); |
e2a81baf JF |
82 | void xen_sysexit(void); |
83 | ||
5ead97c8 | 84 | #endif /* XEN_OPS_H */ |