Re: mmap RAM?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 24 Mar 1998 17:00:35 +0000 (GMT)


> I am trying to write a driver for a new device. It is an MPEG2 video
> *encoder*. The device sits on a PCI bus. It wants to DMA encoded

Tasty

> video to the host RAM.

> My driver needs at least 128kb. (I'd really like 256kb, but I guess
> that's a problem). Assume I use get_free_pages to grab 128kb. How
> can this be accessed via mmap? Are there any examples?

Please see both video4linux in 2.1.x (the at least roughly there standard
API for video capture on Linux) and the 0.5.6 bttv driver (I can never
remember the url but altavista +linux +bttv +host:.de finds it every time)
has mmap support

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu