diff options
| author | reinoud <reinoud@NetBSD.org> | 2004-08-25 13:06:16 +0000 |
|---|---|---|
| committer | reinoud <reinoud@NetBSD.org> | 2004-08-25 13:06:16 +0000 |
| commit | 943622e7237694bb7ff1cc335f717ba5980b2eac (patch) | |
| tree | 4ae7888fabf3b21d7ca803f9dfcfe4c9867eb793 /sys/dev | |
| parent | 3a8954928b0f77dec6f4d0995de0c5dd70a1ec49 (diff) | |
Delay initialisation of shadow registers. Tested on a Shark.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ofisa/wdc_ofisa.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ofisa/wdc_ofisa.c b/sys/dev/ofisa/wdc_ofisa.c index abf7d5a0a27..f62d162bf2f 100644 --- a/sys/dev/ofisa/wdc_ofisa.c +++ b/sys/dev/ofisa/wdc_ofisa.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc_ofisa.c,v 1.23 2004/08/20 06:39:38 thorpej Exp $ */ +/* $NetBSD: wdc_ofisa.c,v 1.24 2004/08/25 13:06:16 reinoud Exp $ */ /* * Copyright 1997, 1998 @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.23 2004/08/20 06:39:38 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc_ofisa.c,v 1.24 2004/08/25 13:06:16 reinoud Exp $"); #include <sys/param.h> #include <sys/device.h> @@ -148,7 +148,6 @@ wdc_ofisa_attach(struct device *parent, struct device *self, void *aux) return; } } - wdc_init_shadow_regs(&sc->sc_channel); sc->sc_ih = isa_intr_establish(aa->ic, intr.irq, intr.share, IPL_BIO, wdcintr, &sc->sc_channel); @@ -162,6 +161,8 @@ wdc_ofisa_attach(struct device *parent, struct device *self, void *aux) sc->sc_channel.ch_atac = &sc->sc_wdcdev.sc_atac; sc->sc_channel.ch_queue = &sc->sc_chqueue; + wdc_init_shadow_regs(&sc->sc_channel); + wdcattach(&sc->sc_channel); #if 0 |
