From 2a1e5244b2928b4d03fcc7afac693d937c456252 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Tue, 20 Jul 1993 01:39:24 +0000 Subject: [PATCH] Fixed to allow iosiz config parameter to override what was (for me, incorrectly) probed. This allows you more flexibility in getting weird WD 80x3 clones to work. --- sys/dev/ed/if_ed.c | 11 +++++++++-- sys/i386/isa/if_ed.c | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index b48b353739f6..c1a7ff74bc60 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -16,7 +16,10 @@ /* * Modification history * - * $Log: if_ed.c,v $ + * $Log: if_ed.c,v $ + * Revision 1.5 1993/06/27 10:28:28 davidg + * fixed bugs in the probe routine uncovered by the previous fix. + * * Revision 1.11 93/06/27 03:07:01 davidg * fixed bugs in the 3Com part of the probe routine that were uncovered by * the previous fix. @@ -297,10 +300,14 @@ type_WD80x3: } #if ED_DEBUG - printf("type=%s width=%d memsize=%d\n",sc->type_str,memwidth,memsize); + printf("type=%s width=%d memsize=%d id_msize=%d\n",sc->type_str,memwidth,memsize,isa_dev->id_msize); for (i=0; i<8; i++) printf("%x -> %x\n", i, inb(sc->asic_addr + i)); #endif + /* Allow memsize to override */ + if (isa_dev->id_msize) + memsize = isa_dev->id_msize; + /* * Check 83C584 interrupt configuration register if this board has one * XXX - we could also check the IO address register. But why diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index b48b353739f6..c1a7ff74bc60 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/if_ed.c @@ -16,7 +16,10 @@ /* * Modification history * - * $Log: if_ed.c,v $ + * $Log: if_ed.c,v $ + * Revision 1.5 1993/06/27 10:28:28 davidg + * fixed bugs in the probe routine uncovered by the previous fix. + * * Revision 1.11 93/06/27 03:07:01 davidg * fixed bugs in the 3Com part of the probe routine that were uncovered by * the previous fix. @@ -297,10 +300,14 @@ type_WD80x3: } #if ED_DEBUG - printf("type=%s width=%d memsize=%d\n",sc->type_str,memwidth,memsize); + printf("type=%s width=%d memsize=%d id_msize=%d\n",sc->type_str,memwidth,memsize,isa_dev->id_msize); for (i=0; i<8; i++) printf("%x -> %x\n", i, inb(sc->asic_addr + i)); #endif + /* Allow memsize to override */ + if (isa_dev->id_msize) + memsize = isa_dev->id_msize; + /* * Check 83C584 interrupt configuration register if this board has one * XXX - we could also check the IO address register. But why