summaryrefslogtreecommitdiff
path: root/arch/arm64/include/uapi/asm/hwcap.h
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@linaro.org>2013-12-17 01:04:36 +0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-12-19 21:44:08 +0400
commit4bff28ccda2b7a3fbdf8e80aef7a599284681dc6 (patch)
tree3291ace36bb2b611521874f81581d8cb1fa7fb90 /arch/arm64/include/uapi/asm/hwcap.h
parent148eb0a1db8e37a5966afe98223cefe0c1837c26 (diff)
downloadlinux-4bff28ccda2b7a3fbdf8e80aef7a599284681dc6.tar.xz
arm64: Add hwcaps for crypto and CRC32 extensions.
Advertise the optional cryptographic and CRC32 instructions to user space where present. Several hwcap bits [3-7] are allocated. Signed-off-by: Steve Capper <steve.capper@linaro.org> [bit 2 is taken now so use bits 3-7 instead] Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm/hwcap.h')
-rw-r--r--arch/arm64/include/uapi/asm/hwcap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
index 9b12476e9c85..73cf0f54d57c 100644
--- a/arch/arm64/include/uapi/asm/hwcap.h
+++ b/arch/arm64/include/uapi/asm/hwcap.h
@@ -22,6 +22,10 @@
#define HWCAP_FP (1 << 0)
#define HWCAP_ASIMD (1 << 1)
#define HWCAP_EVTSTRM (1 << 2)
-
+#define HWCAP_AES (1 << 3)
+#define HWCAP_PMULL (1 << 4)
+#define HWCAP_SHA1 (1 << 5)
+#define HWCAP_SHA2 (1 << 6)
+#define HWCAP_CRC32 (1 << 7)
#endif /* _UAPI__ASM_HWCAP_H */