diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-02-26 21:48:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-02-26 21:48:33 +0000 |
commit | ecb2abfdae3441a8e6632a2590409d2e4d969c7b (patch) | |
tree | 7e5994d4c9b74fd4596542c4e2a32c242129ca32 /sys/dev | |
parent | ae56810df86b530f2e6d2d234cc0b191a4bf451b (diff) |
An ethernet driver works much better if you program the Tx descriptor ring
size in the right bits of the appropriate register.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_cas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_cas.c b/sys/dev/pci/if_cas.c index 02e292948ed..30d7dd79da4 100644 --- a/sys/dev/pci/if_cas.c +++ b/sys/dev/pci/if_cas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cas.c,v 1.2 2007/02/25 21:54:52 kettenis Exp $ */ +/* $OpenBSD: if_cas.c,v 1.3 2007/02/26 21:48:32 kettenis Exp $ */ /* * @@ -966,7 +966,7 @@ cas_init(struct ifnet *ifp) /* step 9. ETX Configuration: use mostly default values */ /* Enable DMA */ - v = cas_ringsize(CAS_NTXDESC /*XXX*/) << 13; + v = cas_ringsize(CAS_NTXDESC /*XXX*/) << 10; bus_space_write_4(t, h, CAS_TX_CONFIG, v|CAS_TX_CONFIG_TXDMA_EN|(1<<24)|(1<<29)); bus_space_write_4(t, h, CAS_TX_KICK, 0); |