1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4  */
5 #ifndef _ASM_BOOTINFO_H
6 #define _ASM_BOOTINFO_H
7 
8 #include <linux/types.h>
9 #include <asm/setup.h>
10 
11 const char *get_system_type(void);
12 
13 extern void init_environ(void);
14 extern void memblock_init(void);
15 extern void platform_init(void);
16 extern void plat_swiotlb_setup(void);
17 extern int __init init_numa_memory(void);
18 
19 struct loongson_board_info {
20 	int bios_size;
21 	const char *bios_vendor;
22 	const char *bios_version;
23 	const char *bios_release_date;
24 	const char *board_name;
25 	const char *board_vendor;
26 };
27 
28 struct loongson_system_configuration {
29 	int nr_cpus;
30 	int nr_nodes;
31 	int nr_io_pics;
32 	int boot_cpu_id;
33 	int cores_per_node;
34 	int cores_per_package;
35 	const char *cpuname;
36 };
37 
38 extern u64 efi_system_table;
39 extern unsigned long fw_arg0, fw_arg1;
40 extern struct loongson_board_info b_info;
41 extern struct loongson_system_configuration loongson_sysconf;
42 
43 #endif /* _ASM_BOOTINFO_H */
44