mirror of
https://gitee.com/open-loongarch/linux-5.10.git
synced 2026-10-27 13:37:12 +08:00
33 lines
769 B
C
33 lines
769 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020 Loongson Technology Co., Ltd.
|
|
*/
|
|
|
|
#ifndef _LOONGARCH_SETUP_H
|
|
#define _LOONGARCH_SETUP_H
|
|
|
|
#include <linux/types.h>
|
|
#include <uapi/asm/setup.h>
|
|
|
|
#define VECSIZE 0x200
|
|
|
|
extern unsigned long eentry;
|
|
extern unsigned long tlbrentry;
|
|
extern void cpu_cache_init(void);
|
|
extern void per_cpu_trap_init(int cpu);
|
|
extern void set_handler(unsigned long offset, void *addr, unsigned long len);
|
|
extern void set_merr_handler(unsigned long offset, void *addr, unsigned long len);
|
|
|
|
#ifdef CONFIG_USE_OF
|
|
|
|
struct boot_param_header;
|
|
|
|
extern void __dt_setup_arch(void *bph);
|
|
extern void device_tree_init(void);
|
|
|
|
#else /* CONFIG_OF */
|
|
static inline void device_tree_init(void) { }
|
|
#endif /* CONFIG_OF */
|
|
|
|
#endif /* __SETUP_H */
|