summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-06-15 23:36:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-06-15 23:36:57 +0000
commitc90fea5aae677377bfb7ca36a8045afcf24a35c5 (patch)
treea1cefe17f939b6f7185390cce753602b596542d7 /sys/arch/i386/include
parente48e502f91a9c1d5711fc8c814eef8b21d5e5650 (diff)
first parts of how C3 Esther will be handled; ok tom
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/specialreg.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/i386/include/specialreg.h b/sys/arch/i386/include/specialreg.h
index 15c87a430ab..4d0e8965e73 100644
--- a/sys/arch/i386/include/specialreg.h
+++ b/sys/arch/i386/include/specialreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.22 2004/04/02 22:28:41 tedu Exp $ */
+/* $OpenBSD: specialreg.h,v 1.23 2004/06/15 23:36:56 deraadt Exp $ */
/* $NetBSD: specialreg.h,v 1.7 1994/10/27 04:16:26 cgd Exp $ */
/*-
@@ -428,6 +428,11 @@
#define PMC6_SEG_REG_RENAMES 0xd5 /* P-II and P-III only */
#define PMC6_RET_SEG_RENAMES 0xd6 /* P-II and P-III only */
+/* VIA C3 crypto featureset: for i386_has_xcrypt */
+#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 */
+
/* VIA C3 xcrypt-* instruction context control options */
#define C3_CRYPT_CWLO_ROUND_M 0x0000000f
#define C3_CRYPT_CWLO_ALG_M 0x00000070
@@ -442,10 +447,3 @@
#define C3_CRYPT_CWLO_KEY128 0x0000000a /* 128bit, 10 rds */
#define C3_CRYPT_CWLO_KEY192 0x0000040c /* 192bit, 12 rds */
#define C3_CRYPT_CWLO_KEY256 0x0000080e /* 256bit, 15 rds */
-
-/* VIA C3 xcrypt-* opcodes */
-#define VIAC3_CRYPTOP_RNG 0xc0 /* rng */
-#define VIAC3_CRYPTOP_ECB 0xc8 /* aes-ecb */
-#define VIAC3_CRYPTOP_CBC 0xd0 /* aes-cbc */
-#define VIAC3_CRYPTOP_CFB 0xe0 /* aes-cfb */
-#define VIAC3_CRYPTOP_OFB 0xe8 /* aes-ofb */