/arch/arm/include/asm/procinfo.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase · C++ Header · 49 lines · 27 code · 4 blank · 18 comment · 0 complexity · 3a09b5eb3af9a32c310d2902ee0d573c MD5 · raw file

  1. /*
  2. * arch/arm/include/asm/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. #ifdef __KERNEL__
  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_mm_mmu_flags; /* used by head.S */
  30. unsigned long __cpu_io_mmu_flags; /* used by head.S */
  31. unsigned long __cpu_flush; /* used by head.S */
  32. const char *arch_name;
  33. const char *elf_name;
  34. unsigned int elf_hwcap;
  35. const char *cpu_name;
  36. struct processor *proc;
  37. struct cpu_tlb_fns *tlb;
  38. struct cpu_user_fns *user;
  39. struct cpu_cache_fns *cache;
  40. };
  41. #else /* __KERNEL__ */
  42. #include <asm/elf.h>
  43. #warning "Please include asm/elf.h instead"
  44. #endif /* __KERNEL__ */
  45. #endif