~cfuhrman/+junk/netbsd-src-netbsd-0-9

« back to all changes in this revision

Viewing changes to sys/arch/i386/isa/if_ed.c

  • Committer: cgd
  • Date: 1993-08-25 23:58:34 UTC
  • Revision ID: svn-v4:f0e3167a-6671-4593-9d55-d04f135c1913:branches/netbsd-0-9:2536
PATCH 1:
add device ed1 so people with 3c503's can use them:
> device ed1 at isa? port 0x250 net irq 9 iomem 0xd8000 vector edintr
also, bring if_ed to DG's 1.19 rev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 */
15
15
 
16
16
/*
17
 
 *      $Id: if_ed.c,v 1.2.2.5 1993-07-27 06:00:45 cgd Exp $
 
17
 *      $Id: if_ed.c,v 1.2.2.6 1993-08-25 23:58:34 cgd Exp $
18
18
 */
19
19
 
20
20
#include "ed.h"
809
809
        if (sc->memwidth == 16) {
810
810
                /*
811
811
                 * Set FIFO threshold to 8, No auto-init Remote DMA,
812
 
                 *      byte order=80x86, word-wide DMA xfers
 
812
                 *      byte order=80x86, word-wide DMA xfers,
813
813
                 */
814
 
                outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_WTS);
 
814
                outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_WTS|ED_DCR_LS);
815
815
        } else {
816
816
                /*
817
817
                 * Same as above, but byte-wide DMA xfers
818
818
                 */
819
 
                outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1);
 
819
                outb(sc->nic_addr + ED_P0_DCR, ED_DCR_FT1|ED_DCR_LS);
820
820
        }
821
821
 
822
822
        /*