mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Make sure to set the DMA transfer length register, plus one
small style fix. Submitted by: Thomas Nystrom <thn@saeab.se>
This commit is contained in:
parent
42a389ac3e
commit
aff8da7074
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101375
@ -1406,8 +1406,13 @@ static void vr_init(xsc)
|
||||
*/
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
CSR_WRITE_1(sc, VR_PAR0 + i, sc->arpcom.ac_enaddr[i]);
|
||||
|
||||
/* Set DMA size */
|
||||
VR_CLRBIT(sc, VR_BCR0, VR_BCR0_DMA_LENGTH);
|
||||
VR_SETBIT(sc, VR_BCR0, VR_BCR0_DMA_STORENFWD);
|
||||
|
||||
/* BCR0 and BCR1 can override the RXCFG and TXCFG registers,
|
||||
/*
|
||||
* BCR0 and BCR1 can override the RXCFG and TXCFG registers,
|
||||
* so we must set both.
|
||||
*/
|
||||
VR_CLRBIT(sc, VR_BCR0, VR_BCR0_RX_THRESH);
|
||||
|
@ -1406,8 +1406,13 @@ static void vr_init(xsc)
|
||||
*/
|
||||
for (i = 0; i < ETHER_ADDR_LEN; i++)
|
||||
CSR_WRITE_1(sc, VR_PAR0 + i, sc->arpcom.ac_enaddr[i]);
|
||||
|
||||
/* Set DMA size */
|
||||
VR_CLRBIT(sc, VR_BCR0, VR_BCR0_DMA_LENGTH);
|
||||
VR_SETBIT(sc, VR_BCR0, VR_BCR0_DMA_STORENFWD);
|
||||
|
||||
/* BCR0 and BCR1 can override the RXCFG and TXCFG registers,
|
||||
/*
|
||||
* BCR0 and BCR1 can override the RXCFG and TXCFG registers,
|
||||
* so we must set both.
|
||||
*/
|
||||
VR_CLRBIT(sc, VR_BCR0, VR_BCR0_RX_THRESH);
|
||||
|
Loading…
Reference in New Issue
Block a user