Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-or-later */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Firmware Assisted dump header file.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2011 IBM Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef _ASM_POWERPC_FADUMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define _ASM_POWERPC_FADUMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #ifdef CONFIG_FA_DUMP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern int crashing_cpu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) extern int is_fadump_memory_area(u64 addr, ulong size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) extern int setup_fadump(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern int is_fadump_active(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern int should_fadump_crash(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern void crash_fadump(struct pt_regs *, const char *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern void fadump_cleanup(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #else	/* CONFIG_FA_DUMP */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) static inline int is_fadump_active(void) { return 0; }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) static inline int should_fadump_crash(void) { return 0; }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) static inline void crash_fadump(struct pt_regs *regs, const char *str) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) static inline void fadump_cleanup(void) { }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #endif /* !CONFIG_FA_DUMP */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #if defined(CONFIG_FA_DUMP) || defined(CONFIG_PRESERVE_FA_DUMP)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern int early_init_dt_scan_fw_dump(unsigned long node, const char *uname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 				      int depth, void *data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern int fadump_reserve_mem(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #endif /* _ASM_POWERPC_FADUMP_H */