xref: /openbmc/linux/arch/mips/include/asm/vermagic.h (revision 48cc39c3)
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_TX39XX
26 #define MODULE_PROC_FAMILY "TX39XX "
27 #elif defined CONFIG_CPU_VR41XX
28 #define MODULE_PROC_FAMILY "VR41XX "
29 #elif defined CONFIG_CPU_R4300
30 #define MODULE_PROC_FAMILY "R4300 "
31 #elif defined CONFIG_CPU_R4X00
32 #define MODULE_PROC_FAMILY "R4X00 "
33 #elif defined CONFIG_CPU_TX49XX
34 #define MODULE_PROC_FAMILY "TX49XX "
35 #elif defined CONFIG_CPU_R5000
36 #define MODULE_PROC_FAMILY "R5000 "
37 #elif defined CONFIG_CPU_R5500
38 #define MODULE_PROC_FAMILY "R5500 "
39 #elif defined CONFIG_CPU_NEVADA
40 #define MODULE_PROC_FAMILY "NEVADA "
41 #elif defined CONFIG_CPU_R10000
42 #define MODULE_PROC_FAMILY "R10000 "
43 #elif defined CONFIG_CPU_RM7000
44 #define MODULE_PROC_FAMILY "RM7000 "
45 #elif defined CONFIG_CPU_SB1
46 #define MODULE_PROC_FAMILY "SB1 "
47 #elif defined CONFIG_CPU_LOONGSON32
48 #define MODULE_PROC_FAMILY "LOONGSON32 "
49 #elif defined CONFIG_CPU_LOONGSON2EF
50 #define MODULE_PROC_FAMILY "LOONGSON2EF "
51 #elif defined CONFIG_CPU_LOONGSON64
52 #define MODULE_PROC_FAMILY "LOONGSON64 "
53 #elif defined CONFIG_CPU_CAVIUM_OCTEON
54 #define MODULE_PROC_FAMILY "OCTEON "
55 #elif defined CONFIG_CPU_P5600
56 #define MODULE_PROC_FAMILY "P5600 "
57 #elif defined CONFIG_CPU_XLR
58 #define MODULE_PROC_FAMILY "XLR "
59 #elif defined CONFIG_CPU_XLP
60 #define MODULE_PROC_FAMILY "XLP "
61 #else
62 #error MODULE_PROC_FAMILY undefined for your processor configuration
63 #endif
64 
65 #ifdef CONFIG_32BIT
66 #define MODULE_KERNEL_TYPE "32BIT "
67 #elif defined CONFIG_64BIT
68 #define MODULE_KERNEL_TYPE "64BIT "
69 #endif
70 
71 #define MODULE_ARCH_VERMAGIC \
72 	MODULE_PROC_FAMILY MODULE_KERNEL_TYPE
73 
74 #endif /* _ASM_VERMAGIC_H */
75