From 1d373a94e248e3b5c9d59ee8f428c965ceb5cd89 Mon Sep 17 00:00:00 2001 From: pk Date: Mon, 14 Feb 2000 17:14:28 +0000 Subject: [PATCH] Bump receive buffer size up to the maximum DMA burst boundary. --- sys/dev/ic/hme.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index e45a91a6c7c3..74e8261b1661 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -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 @@ hme_config(sc) * 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;