Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Skip "serial 1" on non-425e models. It's...



details:   https://anonhg.NetBSD.org/src/rev/d97e0869d291
branches:  trunk
changeset: 475087:d97e0869d291
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jul 31 21:15:20 1999 +0000

description:
Skip "serial 1" on non-425e models.  It's mapped to DCA at 9 on every
other 4xx model, and the "not configured" could be pretty annoying.

diffstat:

 sys/arch/hp300/dev/frodo.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 6be3bffb2324 -r d97e0869d291 sys/arch/hp300/dev/frodo.c
--- a/sys/arch/hp300/dev/frodo.c        Sat Jul 31 21:14:36 1999 +0000
+++ b/sys/arch/hp300/dev/frodo.c        Sat Jul 31 21:15:20 1999 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: frodo.c,v 1.4 1998/01/12 18:30:52 thorpej Exp $        */
+/*     $NetBSD: frodo.c,v 1.5 1999/07/31 21:15:20 thorpej Exp $        */
 
 /*-
- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
+ * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -199,9 +199,18 @@
        sc->sc_ih = NULL;
 
        /* ... and attach subdevices. */
-       for (i = 0; frodo_subdevs[i].fa_name != NULL; i++)
+       for (i = 0; frodo_subdevs[i].fa_name != NULL; i++) {
+               /*
+                * Skip the first serial port if we're not a 425e;
+                * it's mapped to the DCA at select code 9 on all
+                * other models.
+                */
+               if (frodo_subdevs[i].fa_offset == FRODO_APCI_OFFSET(1) &&
+                   mmuid != MMUID_425_E)
+                       continue;
                config_found_sm(self, &frodo_subdevs[i],
                    frodoprint, frodosubmatch);
+       }
 }
 
 int



Home | Main Index | Thread Index | Old Index