Merge branch 'work.splice_read' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / arch / powerpc / include / asm / asm-prototypes.h
1 #ifndef _ASM_POWERPC_ASM_PROTOTYPES_H
2 #define _ASM_POWERPC_ASM_PROTOTYPES_H
3 /*
4  * This file is for prototypes of C functions that are only called
5  * from asm, and any associated variables.
6  *
7  * Copyright 2016, Daniel Axtens, IBM Corporation.
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  */
14
15 #include <linux/threads.h>
16 #include <linux/kprobes.h>
17
18 /* SMP */
19 extern struct thread_info *current_set[NR_CPUS];
20 extern struct thread_info *secondary_ti;
21 void start_secondary(void *unused);
22
23 /* kexec */
24 struct paca_struct;
25 struct kimage;
26 extern struct paca_struct kexec_paca;
27 void kexec_copy_flush(struct kimage *image);
28
29 /* pseries hcall tracing */
30 extern struct static_key hcall_tracepoint_key;
31 void __trace_hcall_entry(unsigned long opcode, unsigned long *args);
32 void __trace_hcall_exit(long opcode, unsigned long retval,
33                         unsigned long *retbuf);
34 /* OPAL tracing */
35 #ifdef HAVE_JUMP_LABEL
36 extern struct static_key opal_tracepoint_key;
37 #endif
38
39 void __trace_opal_entry(unsigned long opcode, unsigned long *args);
40 void __trace_opal_exit(long opcode, unsigned long retval);
41
42 /* VMX copying */
43 int enter_vmx_usercopy(void);
44 int exit_vmx_usercopy(void);
45 int enter_vmx_copy(void);
46 void * exit_vmx_copy(void *dest);
47
48 /* Traps */
49 long machine_check_early(struct pt_regs *regs);
50 long hmi_exception_realmode(struct pt_regs *regs);
51 void SMIException(struct pt_regs *regs);
52 void handle_hmi_exception(struct pt_regs *regs);
53 void instruction_breakpoint_exception(struct pt_regs *regs);
54 void RunModeException(struct pt_regs *regs);
55 void __kprobes single_step_exception(struct pt_regs *regs);
56 void __kprobes program_check_exception(struct pt_regs *regs);
57 void alignment_exception(struct pt_regs *regs);
58 void StackOverflow(struct pt_regs *regs);
59 void nonrecoverable_exception(struct pt_regs *regs);
60 void kernel_fp_unavailable_exception(struct pt_regs *regs);
61 void altivec_unavailable_exception(struct pt_regs *regs);
62 void vsx_unavailable_exception(struct pt_regs *regs);
63 void fp_unavailable_tm(struct pt_regs *regs);
64 void altivec_unavailable_tm(struct pt_regs *regs);
65 void vsx_unavailable_tm(struct pt_regs *regs);
66 void facility_unavailable_exception(struct pt_regs *regs);
67 void TAUException(struct pt_regs *regs);
68 void altivec_assist_exception(struct pt_regs *regs);
69 void unrecoverable_exception(struct pt_regs *regs);
70 void kernel_bad_stack(struct pt_regs *regs);
71 void system_reset_exception(struct pt_regs *regs);
72 void machine_check_exception(struct pt_regs *regs);
73 void __kprobes emulation_assist_interrupt(struct pt_regs *regs);
74
75 #endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */