hwcap.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2012 ARM Ltd.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef __ASM_HWCAP_H
  17. #define __ASM_HWCAP_H
  18. #include <uapi/asm/hwcap.h>
  19. #define COMPAT_HWCAP_HALF (1 << 1)
  20. #define COMPAT_HWCAP_THUMB (1 << 2)
  21. #define COMPAT_HWCAP_FAST_MULT (1 << 4)
  22. #define COMPAT_HWCAP_VFP (1 << 6)
  23. #define COMPAT_HWCAP_EDSP (1 << 7)
  24. #define COMPAT_HWCAP_NEON (1 << 12)
  25. #define COMPAT_HWCAP_VFPv3 (1 << 13)
  26. #define COMPAT_HWCAP_TLS (1 << 15)
  27. #define COMPAT_HWCAP_VFPv4 (1 << 16)
  28. #define COMPAT_HWCAP_IDIVA (1 << 17)
  29. #define COMPAT_HWCAP_IDIVT (1 << 18)
  30. #define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT)
  31. #ifndef __ASSEMBLY__
  32. /*
  33. * This yields a mask that user programs can use to figure out what
  34. * instruction set this cpu supports.
  35. */
  36. #define ELF_HWCAP (elf_hwcap)
  37. #define COMPAT_ELF_HWCAP (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
  38. COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\
  39. COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\
  40. COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
  41. COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV)
  42. extern unsigned int elf_hwcap;
  43. #endif
  44. #endif