geode.h 842 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * AMD Geode definitions
  3. * Copyright (C) 2006, Advanced Micro Devices, Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of version 2 of the GNU General Public License
  7. * as published by the Free Software Foundation.
  8. */
  9. #ifndef _ASM_X86_GEODE_H
  10. #define _ASM_X86_GEODE_H
  11. #include <asm/processor.h>
  12. #include <linux/io.h>
  13. #include <linux/cs5535.h>
  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. static inline int is_geode_lx(void)
  21. {
  22. return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
  23. (boot_cpu_data.x86 == 5) &&
  24. (boot_cpu_data.x86_model == 10));
  25. }
  26. static inline int is_geode(void)
  27. {
  28. return (is_geode_gx() || is_geode_lx());
  29. }
  30. #endif /* _ASM_X86_GEODE_H */