Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Identify AES-capable chips (7955, 7956) in the d...



details:   https://anonhg.NetBSD.org/src/rev/937e34fa6b4e
branches:  trunk
changeset: 566143:937e34fa6b4e
user:      jonathan <jonathan%NetBSD.org@localhost>
date:      Thu Apr 29 01:46:06 2004 +0000

description:
Identify AES-capable chips (7955, 7956) in the driver attach message.

diffstat:

 sys/dev/pci/hifn7751.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 3c9faeb462b4 -r 937e34fa6b4e sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c    Thu Apr 29 01:30:17 2004 +0000
+++ b/sys/dev/pci/hifn7751.c    Thu Apr 29 01:46:06 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hifn7751.c,v 1.20 2003/11/16 00:22:09 jonathan Exp $   */
+/*     $NetBSD: hifn7751.c,v 1.21 2004/04/29 01:46:06 jonathan Exp $   */
 /*     $FreeBSD: hifn7751.c,v 1.5.2.7 2003/10/08 23:52:00 sam Exp $ */
 /*     $OpenBSD: hifn7751.c,v 1.140 2003/08/01 17:55:54 deraadt Exp $  */
 
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.20 2003/11/16 00:22:09 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.21 2004/04/29 01:46:06 jonathan Exp $");
 
 #include "rnd.h"
 #include "opencrypto.h"
@@ -847,7 +847,10 @@
                return ("DES");
 
        case HIFN_PUSTAT_ENA_2:
-               return ("3DES");
+               if (sc->sc_flags & HIFN_HAS_AES)
+                   return ("3DES/AES");
+               else
+                   return ("3DES");
 
        default:
                return ("disabled");



Home | Main Index | Thread Index | Old Index