summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev/wax.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-15 20:11:30 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-09-15 20:11:30 +0000
commit4b120723e435c3a790d9d9d5bf574cf2dc30f5d7 (patch)
tree8f7073da84b1bba07ce740a93a0c5929458f1699 /sys/arch/hppa/dev/wax.c
parent2fb572f231b975f0a7c26e66c718f4c9ed2c2aa7 (diff)
scan cpu bus manually for some machines do not support that in prom
Diffstat (limited to 'sys/arch/hppa/dev/wax.c')
-rw-r--r--sys/arch/hppa/dev/wax.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/hppa/dev/wax.c b/sys/arch/hppa/dev/wax.c
index a465fbebfbb..24f24830bf7 100644
--- a/sys/arch/hppa/dev/wax.c
+++ b/sys/arch/hppa/dev/wax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wax.c,v 1.7 2004/04/07 18:24:19 mickey Exp $ */
+/* $OpenBSD: wax.c,v 1.8 2004/09/15 20:11:28 mickey Exp $ */
/*
* Copyright (c) 1998-2003 Michael Shalayeff
@@ -121,13 +121,15 @@ waxattach(parent, self, aux)
sc->sc_ic.gsc_base = sc->sc_regs;
ga.ga_ca = *ca; /* clone from us */
- 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;
+ if (!strcmp(parent->dv_xname, "mainbus0")) {
+ 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_hpamask = WAX_IOMASK;