diff options
author | gibbs <gibbs@FreeBSD.org> | 1997-06-10 16:07:22 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1997-06-10 16:07:22 +0000 |
commit | d9c6d21f9822964fa2a003c003b3fbb08abb5fff (patch) | |
tree | a6725e4bc07024260064bc8de930e0efd55550a1 /sys/i386/isa/if_ex.c | |
parent | a5d7fa9daa1e559f8eb03a0e305b3f7c2debe017 (diff) | |
download | FreeBSD-src-d9c6d21f9822964fa2a003c003b3fbb08abb5fff.zip FreeBSD-src-d9c6d21f9822964fa2a003c003b3fbb08abb5fff.tar.gz |
Fix two typos in this driver that prevented it from working properly.
PR: kern/3776
Submitted by: flash@hway.ru
Diffstat (limited to 'sys/i386/isa/if_ex.c')
-rw-r--r-- | sys/i386/isa/if_ex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/if_ex.c b/sys/i386/isa/if_ex.c index 4038414..5b38afb 100644 --- a/sys/i386/isa/if_ex.c +++ b/sys/i386/isa/if_ex.c @@ -317,7 +317,7 @@ void ex_init(void *xsc) */ outb(iobase + REG1, inb(iobase + REG1) | Tx_Chn_Int_Md | Tx_Chn_ErStp | Disc_Bad_Fr); outb(iobase + REG2, inb(iobase + REG2) | No_SA_Ins | RX_CRC_InMem); - outb(iobase + REG3, inb(iobase + REG3) | 0x3f /* XXX constants. */ ); + outb(iobase + REG3, inb(iobase + REG3) & 0x3f /* XXX constants. */ ); outb(iobase + CMD_REG, Bank1_Sel); outb(iobase + INT_NO_REG, (inb(iobase + INT_NO_REG) & 0xf8) | irq2eemap[sc->irq_no]); @@ -350,7 +350,7 @@ void ex_init(void *xsc) */ outw(iobase + RCV_BAR, sc->rx_lower_limit); sc->rx_head = sc->rx_lower_limit; - outw(iobase + RCV_STOP_REG, sc->rx_upper_limit & 0xfe); + outw(iobase + RCV_STOP_REG, sc->rx_upper_limit | 0xfe); outw(iobase + XMT_BAR, sc->tx_lower_limit); sc->tx_head = sc->tx_tail = sc->tx_lower_limit; |