summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-06-26 19:24:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-06-26 19:24:23 +0000
commit4b81f396a3433d227d2d99ac4266ba783067ab76 (patch)
treeb517b5acb14b9cabef43a5b2ce01ea075e62876d /sys/arch/i386/include
parent4fbf025e14c5bf2e91ab7bb75cb6c59f66c44f13 (diff)
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
on fancy new VIA C3 Esther (aka C7) cpus
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/specialreg.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/i386/include/specialreg.h b/sys/arch/i386/include/specialreg.h
index 850ca2249ad..b3c90521454 100644
--- a/sys/arch/i386/include/specialreg.h
+++ b/sys/arch/i386/include/specialreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.24 2004/06/25 01:02:53 tom Exp $ */
+/* $OpenBSD: specialreg.h,v 1.25 2005/06/26 19:24:22 deraadt Exp $ */
/* $NetBSD: specialreg.h,v 1.7 1994/10/27 04:16:26 cgd Exp $ */
/*-
@@ -433,6 +433,19 @@
#define C3_HAS_AES 1 /* cpu has AES */
#define C3_HAS_SHA 2 /* cpu has SHA1 & SHA256 */
#define C3_HAS_MM 4 /* cpu has RSA instructions */
+#define C3_HAS_AESCTR 8 /* cpu has AES-CTR instructions */
+
+/* Centaur Extended Feature flags */
+#define C3_CPUID_HAS_RNG 0x000004
+#define C3_CPUID_DO_RNG 0x000008
+#define C3_CPUID_HAS_ACE 0x000040
+#define C3_CPUID_DO_ACE 0x000080
+#define C3_CPUID_HAS_ACE2 0x000100
+#define C3_CPUID_DO_ACE2 0x000200
+#define C3_CPUID_HAS_PHE 0x000400
+#define C3_CPUID_DO_PHE 0x000800
+#define C3_CPUID_HAS_PMM 0x001000
+#define C3_CPUID_DO_PMM 0x002000
/* VIA C3 xcrypt-* instruction context control options */
#define C3_CRYPT_CWLO_ROUND_M 0x0000000f