Subject: Re: mbufs for non scatter gather dma...
To: None <ARai@rhapsodynetworks.com>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: tech-kern
Date: 10/06/2001 23:24:58
In article <45BEF1D68145D51186C100B0D0AABE6510491F@med.corp.rhapsodynetworks.com>
ARai@rhapsodynetworks.com wrote:

> I'm trying to write a driver for a card which doesnt support scatter gather
> (i.e. dma requires one "contiguous" segment). 
> I was wondering if there's anyway to use mbuf data memory for dma.
> (considering that mbuf memory could be distributed in multiple physical
> segments). _bus_dma_load_mbuf() probably woudnt work because it returns you
> an array of segments..?

Maybe you have to allocate new mbuf (which does not contain fragments)
and copy data to it. See rtk_start() in sys/dev/ic/rtl81x9.c.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp