0001
0002
0003
0004
0005
0006
0007 #ifndef _ASM_X86_GEODE_H
0008 #define _ASM_X86_GEODE_H
0009
0010 #include <asm/processor.h>
0011 #include <linux/io.h>
0012 #include <linux/cs5535.h>
0013
0014 static inline int is_geode_gx(void)
0015 {
0016 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
0017 (boot_cpu_data.x86 == 5) &&
0018 (boot_cpu_data.x86_model == 5));
0019 }
0020
0021 static inline int is_geode_lx(void)
0022 {
0023 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
0024 (boot_cpu_data.x86 == 5) &&
0025 (boot_cpu_data.x86_model == 10));
0026 }
0027
0028 static inline int is_geode(void)
0029 {
0030 return (is_geode_gx() || is_geode_lx());
0031 }
0032
0033 #endif