Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Use bus_dmamap_load_mbuf() in fxp_add_rfabuf().



details:   https://anonhg.NetBSD.org/src/rev/d4a16dcd953f
branches:  trunk
changeset: 542702:d4a16dcd953f
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Feb 04 17:50:53 2003 +0000

description:
Use bus_dmamap_load_mbuf() in fxp_add_rfabuf().

diffstat:

 sys/dev/ic/i82557.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 5b326cc79a7c -r d4a16dcd953f sys/dev/ic/i82557.c
--- a/sys/dev/ic/i82557.c       Tue Feb 04 17:40:31 2003 +0000
+++ b/sys/dev/ic/i82557.c       Tue Feb 04 17:50:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i82557.c,v 1.71 2003/01/31 00:26:30 thorpej Exp $      */
+/*     $NetBSD: i82557.c,v 1.72 2003/02/04 17:50:53 thorpej Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.71 2003/01/31 00:26:30 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i82557.c,v 1.72 2003/02/04 17:50:53 thorpej Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -1841,8 +1841,8 @@
 
        M_SETCTX(m, rxmap);
 
-       error = bus_dmamap_load(sc->sc_dmat, rxmap,
-           m->m_ext.ext_buf, m->m_ext.ext_size, NULL,
+       m->m_len = m->m_pkthdr.len = m->m_ext.ext_size;
+       error = bus_dmamap_load_mbuf(sc->sc_dmat, rxmap, m,
            BUS_DMA_READ|BUS_DMA_NOWAIT);
        if (error) {
                printf("%s: can't load rx DMA map %d, error = %d\n",



Home | Main Index | Thread Index | Old Index