1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
5 #ifndef _ASM_BOOTINFO_H
6 #define _ASM_BOOTINFO_H
8 #include <linux/types.h>
11 const char *get_system_type(void);
13 extern void init_environ(void);
14 extern void memblock_init(void);
15 extern void platform_init(void);
16 extern int __init init_numa_memory(void);
18 struct loongson_board_info {
20 const char *bios_vendor;
21 const char *bios_version;
22 const char *bios_release_date;
23 const char *board_name;
24 const char *board_vendor;
27 struct loongson_system_configuration {
32 int cores_per_package;
33 unsigned long cores_io_master;
34 unsigned long suspend_addr;
38 extern u64 efi_system_table;
39 extern unsigned long fw_arg0, fw_arg1, fw_arg2;
40 extern struct loongson_board_info b_info;
41 extern struct loongson_system_configuration loongson_sysconf;
43 static inline bool io_master(int cpu)
45 return test_bit(cpu, &loongson_sysconf.cores_io_master);
48 #endif /* _ASM_BOOTINFO_H */