1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright (C) 2020 Loongson Technology Co., Ltd. 4 */ 5 6 #ifndef _LOONGARCH_SETUP_H 7 #define _LOONGARCH_SETUP_H 8 9 #include <linux/types.h> 10 #include <uapi/asm/setup.h> 11 12 #define VECSIZE 0x200 13 14 extern unsigned long eentry; 15 extern unsigned long tlbrentry; 16 extern void tlb_init(int cpu); 17 extern void cpu_cache_init(void); 18 extern void cache_error_setup(void); 19 extern void per_cpu_trap_init(int cpu); 20 extern void set_handler(unsigned long offset, void *addr, unsigned long len); 21 extern void set_merr_handler(unsigned long offset, void *addr, unsigned long len); 22 23 #ifdef CONFIG_USE_OF 24 25 struct boot_param_header; 26 27 extern void device_tree_init(void); 28 29 #else /* CONFIG_OF */ device_tree_init(void)30static inline void device_tree_init(void) { } 31 #endif /* CONFIG_OF */ 32 33 #endif /* __SETUP_H */ 34