Module Name:    src
Committed By:   sborrill
Date:           Fri Feb  7 12:32:55 UTC 2014

Modified Files:
        src/sys/arch/hp700/dev [netbsd-6]: lasi.c

Log Message:
Pull up the following revisions(s) (requested by skrll in ticket #1018):
        sys/arch/hp700/dev/lasi.c:      revision 1.25

Fix HP715/100 cpu and device detection.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.21.8.1 src/sys/arch/hp700/dev/lasi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp700/dev/lasi.c
diff -u src/sys/arch/hp700/dev/lasi.c:1.21 src/sys/arch/hp700/dev/lasi.c:1.21.8.1
--- src/sys/arch/hp700/dev/lasi.c:1.21	Fri Jul  1 18:33:09 2011
+++ src/sys/arch/hp700/dev/lasi.c	Fri Feb  7 12:32:55 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: lasi.c,v 1.21 2011/07/01 18:33:09 dyoung Exp $	*/
+/*	$NetBSD: lasi.c,v 1.21.8.1 2014/02/07 12:32:55 sborrill Exp $	*/
 
 /*	$OpenBSD: lasi.c,v 1.4 2001/06/09 03:57:19 mickey Exp $	*/
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lasi.c,v 1.21 2011/07/01 18:33:09 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lasi.c,v 1.21.8.1 2014/02/07 12:32:55 sborrill Exp $");
 
 #undef LASIDEBUG
 
@@ -197,6 +197,15 @@ lasiattach(device_t parent, device_t sel
 
 	/* Attach the GSC bus. */
 	ga.ga_ca = *ca;	/* clone from us */
+	if (strcmp(device_xname(parent), "mainbus0") == 0) {
+		ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1];
+		ga.ga_dp.dp_bc[1] = ga.ga_dp.dp_bc[2];
+		ga.ga_dp.dp_bc[2] = ga.ga_dp.dp_bc[3];
+		ga.ga_dp.dp_bc[3] = ga.ga_dp.dp_bc[4];
+		ga.ga_dp.dp_bc[4] = ga.ga_dp.dp_bc[5];
+		ga.ga_dp.dp_bc[5] = ga.ga_dp.dp_mod;
+		ga.ga_dp.dp_mod = 0;
+	}
 
 	ga.ga_name = "gsc";
 	ga.ga_ir = &sc->sc_ir;

Reply via email to