2012-03-05 11:49:30 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 ARM Ltd.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_HWCAP_H
|
|
|
|
#define __ASM_HWCAP_H
|
|
|
|
|
2012-10-11 10:05:13 +00:00
|
|
|
#include <uapi/asm/hwcap.h>
|
2012-03-05 11:49:30 +00:00
|
|
|
|
|
|
|
#define COMPAT_HWCAP_HALF (1 << 1)
|
|
|
|
#define COMPAT_HWCAP_THUMB (1 << 2)
|
|
|
|
#define COMPAT_HWCAP_FAST_MULT (1 << 4)
|
|
|
|
#define COMPAT_HWCAP_VFP (1 << 6)
|
|
|
|
#define COMPAT_HWCAP_EDSP (1 << 7)
|
|
|
|
#define COMPAT_HWCAP_NEON (1 << 12)
|
|
|
|
#define COMPAT_HWCAP_VFPv3 (1 << 13)
|
|
|
|
#define COMPAT_HWCAP_TLS (1 << 15)
|
|
|
|
#define COMPAT_HWCAP_VFPv4 (1 << 16)
|
|
|
|
#define COMPAT_HWCAP_IDIVA (1 << 17)
|
|
|
|
#define COMPAT_HWCAP_IDIVT (1 << 18)
|
|
|
|
#define COMPAT_HWCAP_IDIV (COMPAT_HWCAP_IDIVA|COMPAT_HWCAP_IDIVT)
|
2014-11-17 10:37:40 +00:00
|
|
|
#define COMPAT_HWCAP_LPAE (1 << 20)
|
2013-08-13 14:57:53 +00:00
|
|
|
#define COMPAT_HWCAP_EVTSTRM (1 << 21)
|
2012-03-05 11:49:30 +00:00
|
|
|
|
2014-03-03 07:34:46 +00:00
|
|
|
#define COMPAT_HWCAP2_AES (1 << 0)
|
|
|
|
#define COMPAT_HWCAP2_PMULL (1 << 1)
|
|
|
|
#define COMPAT_HWCAP2_SHA1 (1 << 2)
|
|
|
|
#define COMPAT_HWCAP2_SHA2 (1 << 3)
|
|
|
|
#define COMPAT_HWCAP2_CRC32 (1 << 4)
|
|
|
|
|
2012-10-04 11:10:18 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
2012-03-05 11:49:30 +00:00
|
|
|
/*
|
|
|
|
* This yields a mask that user programs can use to figure out what
|
|
|
|
* instruction set this cpu supports.
|
|
|
|
*/
|
|
|
|
#define ELF_HWCAP (elf_hwcap)
|
2013-08-13 14:57:53 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
|
|
#define COMPAT_ELF_HWCAP (compat_elf_hwcap)
|
2014-03-03 07:34:45 +00:00
|
|
|
#define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2)
|
|
|
|
extern unsigned int compat_elf_hwcap, compat_elf_hwcap2;
|
2013-08-13 14:57:53 +00:00
|
|
|
#endif
|
2012-03-05 11:49:30 +00:00
|
|
|
|
2013-09-18 15:14:28 +00:00
|
|
|
extern unsigned long elf_hwcap;
|
2012-03-05 11:49:30 +00:00
|
|
|
#endif
|
2012-10-04 11:10:18 +00:00
|
|
|
#endif
|