summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:27:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:27:59 +0000
commita889e4a9e447d7a396e6160975f23d8bd7f49edf (patch)
treee763228a6df3d3f220cdf316e6009f4ae9c67850
parent4dc6705af38e4fdffea2a9c405a99940914c795b (diff)
from netbsd: move iobase around trickily
-rw-r--r--sys/dev/isa/ultra14f.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/isa/ultra14f.c b/sys/dev/isa/ultra14f.c
index 078dc9a34c2..a6730d21a94 100644
--- a/sys/dev/isa/ultra14f.c
+++ b/sys/dev/isa/ultra14f.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ultra14f.c,v 1.58 1995/11/10 04:42:07 mycroft Exp $ */
+/* $NetBSD: ultra14f.c,v 1.60 1995/12/26 17:16:55 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
@@ -535,8 +535,6 @@ uhaprobe(parent, match, aux)
struct uha_softc *uha = match;
struct isa_attach_args *ia = aux;
- uha->sc_iobase = ia->ia_iobase;
-
/*
* Try initialise a unit at this location
* sets up dma and bus speed, loads uha->sc_irq
@@ -911,7 +909,7 @@ u14_find(uha, ia)
struct uha_softc *uha;
struct isa_attach_args *ia;
{
- int iobase = uha->sc_iobase;
+ int iobase = ia->ia_iobase;
u_short model, config;
int resetcount = 4000; /* 4 secs? */
@@ -979,7 +977,7 @@ u14_find(uha, ia)
}
if (!resetcount) {
printf("%s: board timed out during reset\n",
- uha->sc_dev.dv_xname);
+ uha->sc_dev.dv_xname);
return ENXIO;
}
@@ -990,6 +988,7 @@ u14_find(uha, ia)
uha->intr = u14intr;
uha->init = u14_init;
+ uha->sc_iobase = iobase;
return 0;
}
@@ -1075,7 +1074,7 @@ u24_find(uha, ia)
}
if (!resetcount) {
printf("%s: board timed out during reset\n",
- uha->sc_dev.dv_xname);
+ uha->sc_dev.dv_xname);
continue;
}
@@ -1086,6 +1085,7 @@ u24_find(uha, ia)
uha->intr = u24intr;
uha->init = u24_init;
+ uha->sc_iobase = ia->ia_iobase = iobase;
return 0;
}