1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef _ASMRISCV_SETUP_H_ 3 #define _ASMRISCV_SETUP_H_ 4 #include <libcflat.h> 5 6 #define NR_CPUS 16 7 extern unsigned long cpus[NR_CPUS]; /* per-cpu IDs (hartids) */ 8 extern int nr_cpus; 9 int hartid_to_cpu(unsigned long hartid); 10 11 void io_init(void); 12 void setup(const void *fdt, phys_addr_t freemem_start); 13 14 #endif /* _ASMRISCV_SETUP_H_ */ 15