procinfo.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 cpu_tlb_fns;
  14. struct cpu_user_fns;
  15. struct cpu_cache_fns;
  16. struct processor;
  17. /*
  18. * Note! struct processor is always defined if we're
  19. * using MULTI_CPU, otherwise this entry is unused,
  20. * but still exists.
  21. *
  22. * NOTE! The following structure is defined by assembly
  23. * language, NOT C code. For more information, check:
  24. * arch/arm/mm/proc-*.S and arch/arm/kernel/head.S
  25. */
  26. struct proc_info_list {
  27. unsigned int cpu_val;
  28. unsigned int cpu_mask;
  29. unsigned long __cpu_mmu_flags; /* used by head.S */
  30. unsigned long __cpu_flush; /* used by head.S */
  31. const char *arch_name;
  32. const char *elf_name;
  33. unsigned int elf_hwcap;
  34. const char *cpu_name;
  35. struct processor *proc;
  36. struct cpu_tlb_fns *tlb;
  37. struct cpu_user_fns *user;
  38. struct cpu_cache_fns *cache;
  39. };
  40. extern unsigned int elf_hwcap;
  41. #endif /* __ASSEMBLY__ */
  42. #define PROC_INFO_SZ 48
  43. #define HWCAP_SWP 1
  44. #define HWCAP_HALF 2
  45. #define HWCAP_THUMB 4
  46. #define HWCAP_26BIT 8 /* Play it safe */
  47. #define HWCAP_FAST_MULT 16
  48. #define HWCAP_FPA 32
  49. #define HWCAP_VFP 64
  50. #define HWCAP_EDSP 128
  51. #define HWCAP_JAVA 256
  52. #endif