MIPS busdma map questions
Scott Long
scott4long at yahoo.com
Wed Aug 29 11:07:42 UTC 2012
On Aug 29, 2012, at 3:21 AM, Adrian Chadd <adrian at freebsd.org> wrote:
> On 28 August 2012 22:01, Scott Long <scott4long at yahoo.com> wrote:
>
>> There is no need to create a separate map for memory allocated via this way. It's a convenience thing.
>
> Right, but my initial question still stands - the initial map that's
> being created is completely ignored and overwritten when the
> bus_dmamem_alloc() call is made. One of the first thing that does is
> it sets *dmat = NULL; - it's totally trashing the pre-existing map.
>
>
Right. You don't create a separate map for this kind of allocation, you let bus_dmamem_alloc do that for you. The inputs to this function are the tag and the flags. The output is the map and the vaddr for the allocation. The map argument is an output, not an input. Does that make more sense?
Scott
More information about the freebsd-mips
mailing list