mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix two typos in this driver that prevented it from working properly.
PR: kern/3776 Submitted by: flash@hway.ru
This commit is contained in:
parent
e30478ed6c
commit
9996b3a56a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26545
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user