* Fixed problem where some rev 8013EBT boards want the DCR_LS flag
authorDavid Greenman <davidg@Root.COM>
Mon, 2 Aug 1993 10:36:05 +0000 (10:36 +0000)
committerDavid Greenman <davidg@Root.COM>
Mon, 2 Aug 1993 10:36:05 +0000 (10:36 +0000)
 * set in order to work in 16bit mode.

   Seems also to improve performance by 15%! (?!) I think there might
be more to this flag than the manual says.

sys/i386/isa/if_ed.c

index 4a693ef..d42e923 100644 (file)
  * Modification history
  *
  * $Log:       if_ed.c,v $
  * Modification history
  *
  * $Log:       if_ed.c,v $
+ * Revision 1.19  93/08/02  02:57:53  davidg
+ * Fixed problem where some rev 8013EBT boards want the DCR_LS flag
+ * set in order to work in 16bit mode.
+ * 
  * Revision 1.18  93/07/27  03:41:36  davidg
  * removed unnecessary variable assignment in ed_reset()
  * 
  * Revision 1.18  93/07/27  03:41:36  davidg
  * removed unnecessary variable assignment in ed_reset()
  * 
@@ -881,14 +885,14 @@ ed_init(unit)
        if (sc->memwidth == 16) {
                /*
                 * Set FIFO threshold to 8, No auto-init Remote DMA,
        if (sc->memwidth == 16) {
                /*
                 * Set FIFO threshold to 8, No auto-init Remote DMA,
-                *      byte order=80x86, word-wide DMA xfers
+                *      byte order=80x86, word-wide DMA xfers,
                 */
                 */
-               outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_WTS);
+               outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_WTS|ED_DCR_LS);
        } else {
                /*
                 * Same as above, but byte-wide DMA xfers
                 */
        } else {
                /*
                 * Same as above, but byte-wide DMA xfers
                 */
-               outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1);
+               outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_LS);
        }
 
        /*
        }
 
        /*