Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus Make `sun4m DMA not supported yet' message prin...



details:   https://anonhg.NetBSD.org/src/rev/b71fc54b8f7a
branches:  trunk
changeset: 467798:b71fc54b8f7a
user:      cjs <cjs%NetBSD.org@localhost>
date:      Mon Mar 29 12:04:43 1999 +0000

description:
Make `sun4m DMA not supported yet' message print only for this device,
rather than every sbus device probed.

diffstat:

 sys/dev/sbus/if_en.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 3927a3ff8f02 -r b71fc54b8f7a sys/dev/sbus/if_en.c
--- a/sys/dev/sbus/if_en.c      Mon Mar 29 11:48:01 1999 +0000
+++ b/sys/dev/sbus/if_en.c      Mon Mar 29 12:04:43 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_en.c,v 1.7 1998/08/20 11:44:58 pk Exp $     */
+/*     $NetBSD: if_en.c,v 1.8 1999/03/29 12:04:43 cjs Exp $    */
 
 /*
  *
@@ -110,13 +110,18 @@
 {
        struct sbus_attach_args *sa = aux;
 
-       if (CPU_ISSUN4M) {
+       if (strcmp("ENI-155s", sa->sa_name) == 0)  {
+               if (CPU_ISSUN4M) {
 #ifdef DEBUG
-               printf("%s: sun4m DMA not supported yet\n", sa->sa_name);
+                       printf("%s: sun4m DMA not supported yet\n",
+                           sa->sa_name);
 #endif
+                       return (0);
+               }
+               return (1);
+       } else {
                return (0);
        }
-       return (strcmp("ENI-155s", sa->sa_name) == 0);
 }
 
 



Home | Main Index | Thread Index | Old Index