summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-02-26 21:48:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-02-26 21:48:33 +0000
commitecb2abfdae3441a8e6632a2590409d2e4d969c7b (patch)
tree7e5994d4c9b74fd4596542c4e2a32c242129ca32 /sys/dev
parentae56810df86b530f2e6d2d234cc0b191a4bf451b (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.c4
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);