Subject: Re: mbufs for non scatter gather dma...
To: None <>
From: Izumi Tsutsui <>
List: tech-kern
Date: 10/06/2001 23:24:58
In article <> 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