Subject: Re: allocating physically contiguous buffers in attach?
To: Darrin B. Jewell <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 07/20/1999 10:14:03
On Tue, 20 Jul 1999 06:25:45 -0400 (EDT)
"Darrin B. Jewell" <email@example.com> wrote:
> I would like to allocate a couple of 64k buffers in the attach routine
> of an experimental next68k esp driver. These are to be used as dma
> i/o buffers and so need to be physically contigous, although it's ok
> if they are placed anywhere in memory loaded by VM_FREELIST_DEFAULT.
> What is the correct way to allocate this memory?
bus_dmamem_alloc(), and map that memory into kva space w/ bus_dmamem_map().
-- Jason R. Thorpe <firstname.lastname@example.org>