xref: /openbmc/linux/arch/x86/include/asm/vermagic.h (revision 842ed298)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _ASM_VERMAGIC_H
4 #define _ASM_VERMAGIC_H
5 
6 #ifdef CONFIG_X86_64
7 /* X86_64 does not define MODULE_PROC_FAMILY */
8 #elif defined CONFIG_M486SX
9 #define MODULE_PROC_FAMILY "486SX "
10 #elif defined CONFIG_M486
11 #define MODULE_PROC_FAMILY "486 "
12 #elif defined CONFIG_M586
13 #define MODULE_PROC_FAMILY "586 "
14 #elif defined CONFIG_M586TSC
15 #define MODULE_PROC_FAMILY "586TSC "
16 #elif defined CONFIG_M586MMX
17 #define MODULE_PROC_FAMILY "586MMX "
18 #elif defined CONFIG_MCORE2
19 #define MODULE_PROC_FAMILY "CORE2 "
20 #elif defined CONFIG_MATOM
21 #define MODULE_PROC_FAMILY "ATOM "
22 #elif defined CONFIG_M686
23 #define MODULE_PROC_FAMILY "686 "
24 #elif defined CONFIG_MPENTIUMII
25 #define MODULE_PROC_FAMILY "PENTIUMII "
26 #elif defined CONFIG_MPENTIUMIII
27 #define MODULE_PROC_FAMILY "PENTIUMIII "
28 #elif defined CONFIG_MPENTIUMM
29 #define MODULE_PROC_FAMILY "PENTIUMM "
30 #elif defined CONFIG_MPENTIUM4
31 #define MODULE_PROC_FAMILY "PENTIUM4 "
32 #elif defined CONFIG_MK6
33 #define MODULE_PROC_FAMILY "K6 "
34 #elif defined CONFIG_MK7
35 #define MODULE_PROC_FAMILY "K7 "
36 #elif defined CONFIG_MK8
37 #define MODULE_PROC_FAMILY "K8 "
38 #elif defined CONFIG_MELAN
39 #define MODULE_PROC_FAMILY "ELAN "
40 #elif defined CONFIG_MCRUSOE
41 #define MODULE_PROC_FAMILY "CRUSOE "
42 #elif defined CONFIG_MEFFICEON
43 #define MODULE_PROC_FAMILY "EFFICEON "
44 #elif defined CONFIG_MWINCHIPC6
45 #define MODULE_PROC_FAMILY "WINCHIPC6 "
46 #elif defined CONFIG_MWINCHIP3D
47 #define MODULE_PROC_FAMILY "WINCHIP3D "
48 #elif defined CONFIG_MCYRIXIII
49 #define MODULE_PROC_FAMILY "CYRIXIII "
50 #elif defined CONFIG_MVIAC3_2
51 #define MODULE_PROC_FAMILY "VIAC3-2 "
52 #elif defined CONFIG_MVIAC7
53 #define MODULE_PROC_FAMILY "VIAC7 "
54 #elif defined CONFIG_MGEODEGX1
55 #define MODULE_PROC_FAMILY "GEODEGX1 "
56 #elif defined CONFIG_MGEODE_LX
57 #define MODULE_PROC_FAMILY "GEODE "
58 #else
59 #error unknown processor family
60 #endif
61 
62 #ifdef CONFIG_X86_32
63 # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY
64 #else
65 # define MODULE_ARCH_VERMAGIC ""
66 #endif
67 
68 #endif /* _ASM_VERMAGIC_H */
69