Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Bump receive buffer size up to the maximum DMA bu...



details:   https://anonhg.NetBSD.org/src/rev/d0ff328d274f
branches:  trunk
changeset: 482115:d0ff328d274f
user:      pk <pk%NetBSD.org@localhost>
date:      Mon Feb 14 17:14:28 2000 +0000

description:
Bump receive buffer size up to the maximum DMA burst boundary.

diffstat:

 sys/dev/ic/hme.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 2e766e5df8ba -r d0ff328d274f sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Mon Feb 14 17:06:45 2000 +0000
+++ b/sys/dev/ic/hme.c  Mon Feb 14 17:14:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hme.c,v 1.7 2000/02/02 17:09:47 thorpej Exp $  */
+/*     $NetBSD: hme.c,v 1.8 2000/02/14 17:14:28 pk Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -177,9 +177,13 @@
         * eg. use things as `dma_load_mbuf()' on transmit,
         *     and a pool of `EXTMEM' mbufs (with buffers DMA-mapped
         *     all the time) on the reveiver side.
+        *
+        * Note: receive buffers must be 64-byte aligned.
+        * Also, apparently, the buffers must extend to a DMA burst
+        * boundary beyond the maximum packet size.
         */
 #define _HME_NDESC     32
-#define _HME_BUFSZ     1536
+#define _HME_BUFSZ     1600
 
        /* Note: the # of descriptors must be a multiple of 16 */
        sc->sc_rb.rb_ntbuf = _HME_NDESC;



Home | Main Index | Thread Index | Old Index