xref: /openbmc/linux/arch/mips/include/asm/vermagic.h (revision 47010c04)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_VERMAGIC_H
3 #define _ASM_VERMAGIC_H
4 
5 #ifdef CONFIG_CPU_BMIPS
6 #define MODULE_PROC_FAMILY "BMIPS "
7 #elif defined CONFIG_CPU_MIPS32_R1
8 #define MODULE_PROC_FAMILY "MIPS32_R1 "
9 #elif defined CONFIG_CPU_MIPS32_R2
10 #define MODULE_PROC_FAMILY "MIPS32_R2 "
11 #elif defined CONFIG_CPU_MIPS32_R5
12 #define MODULE_PROC_FAMILY "MIPS32_R5 "
13 #elif defined CONFIG_CPU_MIPS32_R6
14 #define MODULE_PROC_FAMILY "MIPS32_R6 "
15 #elif defined CONFIG_CPU_MIPS64_R1
16 #define MODULE_PROC_FAMILY "MIPS64_R1 "
17 #elif defined CONFIG_CPU_MIPS64_R2
18 #define MODULE_PROC_FAMILY "MIPS64_R2 "
19 #elif defined CONFIG_CPU_MIPS64_R5
20 #define MODULE_PROC_FAMILY "MIPS64_R5 "
21 #elif defined CONFIG_CPU_MIPS64_R6
22 #define MODULE_PROC_FAMILY "MIPS64_R6 "
23 #elif defined CONFIG_CPU_R3000
24 #define MODULE_PROC_FAMILY "R3000 "
25 #elif defined CONFIG_CPU_VR41XX
26 #define MODULE_PROC_FAMILY "VR41XX "
27 #elif defined CONFIG_CPU_R4300
28 #define MODULE_PROC_FAMILY "R4300 "
29 #elif defined CONFIG_CPU_R4X00
30 #define MODULE_PROC_FAMILY "R4X00 "
31 #elif defined CONFIG_CPU_TX49XX
32 #define MODULE_PROC_FAMILY "TX49XX "
33 #elif defined CONFIG_CPU_R5000
34 #define MODULE_PROC_FAMILY "R5000 "
35 #elif defined CONFIG_CPU_R5500
36 #define MODULE_PROC_FAMILY "R5500 "
37 #elif defined CONFIG_CPU_NEVADA
38 #define MODULE_PROC_FAMILY "NEVADA "
39 #elif defined CONFIG_CPU_R10000
40 #define MODULE_PROC_FAMILY "R10000 "
41 #elif defined CONFIG_CPU_RM7000
42 #define MODULE_PROC_FAMILY "RM7000 "
43 #elif defined CONFIG_CPU_SB1
44 #define MODULE_PROC_FAMILY "SB1 "
45 #elif defined CONFIG_CPU_LOONGSON32
46 #define MODULE_PROC_FAMILY "LOONGSON32 "
47 #elif defined CONFIG_CPU_LOONGSON2EF
48 #define MODULE_PROC_FAMILY "LOONGSON2EF "
49 #elif defined CONFIG_CPU_LOONGSON64
50 #define MODULE_PROC_FAMILY "LOONGSON64 "
51 #elif defined CONFIG_CPU_CAVIUM_OCTEON
52 #define MODULE_PROC_FAMILY "OCTEON "
53 #elif defined CONFIG_CPU_P5600
54 #define MODULE_PROC_FAMILY "P5600 "
55 #else
56 #error MODULE_PROC_FAMILY undefined for your processor configuration
57 #endif
58 
59 #ifdef CONFIG_32BIT
60 #define MODULE_KERNEL_TYPE "32BIT "
61 #elif defined CONFIG_64BIT
62 #define MODULE_KERNEL_TYPE "64BIT "
63 #endif
64 
65 #define MODULE_ARCH_VERMAGIC \
66 	MODULE_PROC_FAMILY MODULE_KERNEL_TYPE
67 
68 #endif /* _ASM_VERMAGIC_H */
69