1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef _ASMRISCV_SETUP_H_ 3 #define _ASMRISCV_SETUP_H_ 4 #include <libcflat.h> 5 #include <asm/processor.h> 6 7 #define NR_CPUS 16 8 extern struct thread_info cpus[NR_CPUS]; 9 extern int nr_cpus; 10 int hartid_to_cpu(unsigned long hartid); 11 12 void io_init(void); 13 void setup(const void *fdt, phys_addr_t freemem_start); 14 15 #ifdef CONFIG_EFI 16 #include <efi.h> 17 efi_status_t setup_efi(efi_bootinfo_t *efi_bootinfo); 18 #endif 19 20 #endif /* _ASMRISCV_SETUP_H_ */ 21