hwcap.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __ASMARM_HWCAP_H
  2. #define __ASMARM_HWCAP_H
  3. /*
  4. * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
  5. */
  6. #define HWCAP_SWP (1 << 0)
  7. #define HWCAP_HALF (1 << 1)
  8. #define HWCAP_THUMB (1 << 2)
  9. #define HWCAP_26BIT (1 << 3) /* Play it safe */
  10. #define HWCAP_FAST_MULT (1 << 4)
  11. #define HWCAP_FPA (1 << 5)
  12. #define HWCAP_VFP (1 << 6)
  13. #define HWCAP_EDSP (1 << 7)
  14. #define HWCAP_JAVA (1 << 8)
  15. #define HWCAP_IWMMXT (1 << 9)
  16. #define HWCAP_CRUNCH (1 << 10)
  17. #define HWCAP_THUMBEE (1 << 11)
  18. #define HWCAP_NEON (1 << 12)
  19. #define HWCAP_VFPv3 (1 << 13)
  20. #define HWCAP_VFPv3D16 (1 << 14) /* also set for VFPv4-D16 */
  21. #define HWCAP_TLS (1 << 15)
  22. #define HWCAP_VFPv4 (1 << 16)
  23. #define HWCAP_IDIVA (1 << 17)
  24. #define HWCAP_IDIVT (1 << 18)
  25. #define HWCAP_VFPD32 (1 << 19) /* set if VFP has 32 regs (not 16) */
  26. #define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT)
  27. #define HWCAP_LPAE (1 << 20)
  28. #define HWCAP_EVTSTRM (1 << 21)
  29. #if defined(__KERNEL__)
  30. #if !defined(__ASSEMBLY__)
  31. /*
  32. * This yields a mask that user programs can use to figure out what
  33. * instruction set this cpu supports.
  34. */
  35. #define ELF_HWCAP (elf_hwcap)
  36. extern unsigned int elf_hwcap;
  37. #endif
  38. #endif
  39. #endif