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