fix DIO-II mappings, NetBSD PR#3097.
authordownsj <downsj@openbsd.org>
Mon, 13 Jan 1997 18:03:53 +0000 (18:03 +0000)
committerdownsj <downsj@openbsd.org>
Mon, 13 Jan 1997 18:03:53 +0000 (18:03 +0000)
sys/arch/hp300/dev/dio.c
sys/arch/hp300/hp300/autoconf.c

index ee64e36..4662dc6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: dio.c,v 1.1 1997/01/12 15:12:25 downsj Exp $  */
+/*     $OpenBSD: dio.c,v 1.2 1997/01/13 18:03:53 downsj Exp $  */
 /*     $NetBSD: dio.c,v 1.1 1996/12/17 08:41:02 thorpej Exp $  */
 
 /*-
@@ -207,7 +207,7 @@ dio_scodetopa(scode)
        else if (DIO_ISDIO(scode))
                rval = DIO_BASE + (scode * DIO_DEVSIZE);
        else if (DIO_ISDIOII(scode))
-               rval = DIOII_BASE + (scode * DIOII_DEVSIZE);
+               rval = DIOII_BASE + ((scode - 132) * DIOII_DEVSIZE);
        else
                rval = 0;
 
index dadf64f..992565e 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: autoconf.c,v 1.7 1997/01/12 15:13:10 downsj Exp $     */
+/*     $OpenBSD: autoconf.c,v 1.8 1997/01/13 18:03:55 downsj Exp $     */
 /*     $NetBSD: autoconf.c,v 1.29 1996/12/17 08:41:19 thorpej Exp $    */
 
 /*
@@ -1892,7 +1892,7 @@ find_devs()
                /*
                 * Invalid select codes
                 */
-               if ((sc >= 32 && sc < 132) || sc > 187) /* XXX */
+               if (sc >= 32 && sc < 132)
                        continue;
 
                if (sc == -1) {