This source file includes following definitions.
- is_geode_gx
- is_geode_lx
- is_geode
1
2
3
4
5
6
7 #ifndef _ASM_X86_GEODE_H
8 #define _ASM_X86_GEODE_H
9
10 #include <asm/processor.h>
11 #include <linux/io.h>
12 #include <linux/cs5535.h>
13
14 static inline int is_geode_gx(void)
15 {
16 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
17 (boot_cpu_data.x86 == 5) &&
18 (boot_cpu_data.x86_model == 5));
19 }
20
21 static inline int is_geode_lx(void)
22 {
23 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
24 (boot_cpu_data.x86 == 5) &&
25 (boot_cpu_data.x86_model == 10));
26 }
27
28 static inline int is_geode(void)
29 {
30 return (is_geode_gx() || is_geode_lx());
31 }
32
33 #endif