lkml.org 
[lkml]   [1997]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to get a 64k DMA buffer for a user program?

On Wed, 2 Apr 1997, Harald Koenig wrote:

> is there a simple hack for Linux 2.0.X that the kernel allocates a
> contigous 64k area of memory which then can be mmaped by a user program
> which is going to use this as DMA buffer then ?
>
> using a full kernel driver is no option (at least right now for first tests)
> and having this 64k locked, contiguous area seems to be enough for now
> (it's a PCI card, so there is no need for <16MB addresses).

allocating 64K in the kernel (get_free_pages is supposed to work up to
128K, if done early enough ... if not then start a clean-sweeper RT task
which cleans out user-space memory, frees it up and then triggers the
allocation). Then announce the physical address somehow to user-space,
then mmap /dev/kmem?

btw, who's gonna ACK the DMA interrupts ... or is the hw not using irqs?

-- mingo


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.033 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site