diff options
author | Hari Bathini <hbathini@linux.ibm.com> | 2019-09-11 17:46:52 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-09-13 17:04:41 +0300 |
commit | 7f0ad11d3fb948a0d7770bd38ae17a51413c3dac (patch) | |
tree | a2b61783afd24fbd533b650a60ed4cdae5501ff5 /arch/powerpc/include/asm/fadump-internal.h | |
parent | 961cf26a98648a294de45ea6f806dc84dfc91197 (diff) | |
download | linux-7f0ad11d3fb948a0d7770bd38ae17a51413c3dac.tar.xz |
powerpc/fadump: declare helper functions in internal header file
Declare helper functions, that can be reused by multiple platforms,
in the internal header file.
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/156821320487.5656.2660730464212209984.stgit@hbathini.in.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/fadump-internal.h')
-rw-r--r-- | arch/powerpc/include/asm/fadump-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fadump-internal.h b/arch/powerpc/include/asm/fadump-internal.h index 16e2781a3e48..e004c89570b0 100644 --- a/arch/powerpc/include/asm/fadump-internal.h +++ b/arch/powerpc/include/asm/fadump-internal.h @@ -83,4 +83,12 @@ struct fw_dump { unsigned long nocma:1; }; +/* Helper functions */ +s32 fadump_setup_cpu_notes_buf(u32 num_cpus); +void fadump_free_cpu_notes_buf(void); +u32 *fadump_regs_to_elf_notes(u32 *buf, struct pt_regs *regs); +void fadump_update_elfcore_header(char *bufp); +bool is_fadump_boot_mem_contiguous(void); +bool is_fadump_reserved_mem_contiguous(void); + #endif /* _ASM_POWERPC_FADUMP_INTERNAL_H */ |