From 000ba112518cbed36cb9dc875bee95468903bf1c Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sat, 25 Sep 1993 01:50:15 +0000 Subject: [PATCH] * Revision 1.30 93/09/24 18:43:31 davidg * fix bug where Compex boards ident themselves as 8003E's and the * 16bit override wasn't working --- sys/i386/isa/if_ed.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index eccee0f152..6f940f966e 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/if_ed.c @@ -14,12 +14,16 @@ */ /* - * $Id: if_ed.c,v 1.29 93/09/12 04:43:31 davidg Exp Locker: davidg $ + * $Id: if_ed.c,v 1.30 93/09/24 18:43:31 davidg Exp Locker: davidg $ */ /* * Modification history * + * Revision 1.30 93/09/24 18:43:31 davidg + * fix bug where Compex boards ident themselves as 8003E's and the + * 16bit override wasn't working + * * Revision 1.29 93/09/12 04:43:31 davidg * cleaned-up probe routine to make it easier to add future board types * @@ -407,15 +411,13 @@ ed_probe_WD80x3(isa_dev) /* * Set upper address bits and 8/16 bit access to shared memory */ - if ((sc->type & ED_WD_SOFTCONFIG) || (sc->type == ED_TYPE_WD8013EBT)) { - if (isa16bit) { - outb(sc->asic_addr + ED_WD_LAAR, (sc->wd_laar_proto = - ED_WD_LAAR_L16EN | ED_WD_LAAR_M16EN | - ((kvtop(sc->smem_start) >> 19) & ED_WD_LAAR_ADDRHI))); - } else { - outb(sc->asic_addr + ED_WD_LAAR, (sc->wd_laar_proto = + if (isa16bit) { + outb(sc->asic_addr + ED_WD_LAAR, (sc->wd_laar_proto = + ED_WD_LAAR_L16EN | ED_WD_LAAR_M16EN | ((kvtop(sc->smem_start) >> 19) & ED_WD_LAAR_ADDRHI))); - } + } else { + outb(sc->asic_addr + ED_WD_LAAR, (sc->wd_laar_proto = + ((kvtop(sc->smem_start) >> 19) & ED_WD_LAAR_ADDRHI))); } /* -- 2.20.1