Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm64 / include / asm / hwcap.h
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
19 /*
20 * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
21 */
22 #define HWCAP_FP (1 << 0)
23 #define HWCAP_ASIMD (1 << 1)
24
25 #define COMPAT_HWCAP_HALF (1 << 1)
26 #define COMPAT_HWCAP_THUMB (1 << 2)
27 #define COMPAT_HWCAP_FAST_MULT (1 << 4)
28 #define COMPAT_HWCAP_VFP (1 << 6)
29 #define COMPAT_HWCAP_EDSP (1 << 7)
30 #define COMPAT_HWCAP_NEON (1 << 12)
31 #define COMPAT_HWCAP_VFPv3 (1 << 13)
32 #define COMPAT_HWCAP_TLS (1 << 15)
33 #define COMPAT_HWCAP_VFPv4 (1 << 16)
34 #define COMPAT_HWCAP_IDIVA (1 << 17)
35 #define COMPAT_HWCAP_IDIVT (1 << 18)
36 #define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT)
37
38 #ifdef __KERNEL__
39 #ifndef __ASSEMBLY__
40 /*
41 * This yields a mask that user programs can use to figure out what
42 * instruction set this cpu supports.
43 */
44 #define ELF_HWCAP (elf_hwcap)
45 #define COMPAT_ELF_HWCAP (COMPAT_HWCAP_HALF|COMPAT_HWCAP_THUMB|\
46 COMPAT_HWCAP_FAST_MULT|COMPAT_HWCAP_EDSP|\
47 COMPAT_HWCAP_TLS|COMPAT_HWCAP_VFP|\
48 COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
49 COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV)
50
51 extern unsigned int elf_hwcap;
52 #endif
53 #endif
54
55 #endif