procinfo.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * linux/include/asm-arm/procinfo.h
  3. *
  4. * Copyright (C) 1996-1999 Russell King
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_PROCINFO_H
  11. #define __ASM_PROCINFO_H
  12. #ifndef __ASSEMBLY__
  13. //struct processor;
  14. //struct cpu_user_fns;
  15. struct proc_info_item {
  16. const char *manufacturer;
  17. const char *cpu_name;
  18. };
  19. /*
  20. * Note! struct processor is always defined if we're
  21. * using MULTI_CPU, otherwise this entry is unused,
  22. * but still exists.
  23. *
  24. * NOTE! The following structure is defined by assembly
  25. * language, NOT C code. For more information, check:
  26. * arch/arm/mm/proc-*.S and arch/arm/kernel/head-armv.S
  27. */
  28. struct proc_info_list {
  29. unsigned int cpu_val;
  30. unsigned int cpu_mask;
  31. const char *arch_name;
  32. const char *elf_name;
  33. unsigned int elf_hwcap;
  34. struct proc_info_item *info;
  35. struct processor *proc;
  36. };
  37. #endif /* __ASSEMBLY__ */
  38. #define PROC_INFO_SZ 48
  39. #define HWCAP_SWP 1
  40. #define HWCAP_HALF 2
  41. #define HWCAP_THUMB 4
  42. #define HWCAP_26BIT 8 /* Play it safe */
  43. #define HWCAP_FAST_MULT 16
  44. #define HWCAP_FPA 32
  45. #define HWCAP_VFP 64
  46. #define HWCAP_EDSP 128
  47. #define HWCAP_JAVA 256
  48. #endif