Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/podulebus Make the NE1000/NE2000 clone podule...



details:   https://anonhg.NetBSD.org/src/rev/f0fa20cc3c26
branches:  trunk
changeset: 515236:f0fa20cc3c26
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Sep 19 22:40:17 2001 +0000

description:
Make the NE1000/NE2000 clone podulebus driver a bit more verbose over the
chipset found on the card.

diffstat:

 sys/arch/arm32/podulebus/if_ne_pbus.c |  23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 15f76bc03a8b -r f0fa20cc3c26 sys/arch/arm32/podulebus/if_ne_pbus.c
--- a/sys/arch/arm32/podulebus/if_ne_pbus.c     Wed Sep 19 21:38:21 2001 +0000
+++ b/sys/arch/arm32/podulebus/if_ne_pbus.c     Wed Sep 19 22:40:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ne_pbus.c,v 1.9 2001/06/08 22:38:07 bjh21 Exp $     */
+/*     $NetBSD: if_ne_pbus.c,v 1.10 2001/09/19 22:40:17 reinoud Exp $  */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -391,6 +391,27 @@
         * from the EEPROM.
         */
        ne2000_attach(nsc, myea);
+       printf("%s: ", dsc->sc_dev.dv_xname);
+       switch (nsc->sc_type) {
+       case NE2000_TYPE_NE1000:
+               printf("NE1000");
+               break;
+       case NE2000_TYPE_NE2000:
+               printf("NE2000");
+               break;
+       case NE2000_TYPE_AX88190:
+               printf("AX88190");
+               break;
+       case NE2000_TYPE_DL10019:
+               printf("DL10019");
+               break;
+        case NE2000_TYPE_DL10022:
+               printf("DL10022");
+               break;
+       default:
+               printf("??");
+       };
+       printf(" chipset, %d Kb memory\n", dsc->mem_start/1024);
 
        /* Does the interface need a postattach call ? */
        if (ne->postattach)



Home | Main Index | Thread Index | Old Index