[fpc-devel]Direct Memory Access and Iterrupts under Linux
Thu, 23 Nov 2000 16:47:18 +0200 (EET)
On Mon, 23 Oct 2000 firstname.lastname@example.org wrote:
> Ok! Iīve look at svgalib sources but itīs very hard to understannd. I
> understand that it allocate a new virtual console with some system calls and
> access your memory area (Iīm not sure, but I think is it). Iīve ask because
> when Iīm configuring my sound card it ask what is DMA address, well, itīs
> part of Linux kernel. But other programs canīt acess DMA? I donīt know other
> whay to made a graph library (I made a graph library for DOS, itīs easy).
Yes, but remember that DOS <> Linux (or other Unixes)!! Under DOS you NEED
to make your own drivers, but under Linux you have the drivers already
provided (in some form). Direct access of hardware under Linux (or other
Unix) is NOT recommended and is sometimes impossible unless implemented
on the kernel level.
What I would recommend is that you use some (already mentioned) of the
available GENERIC libraries: GGI (http://www.ggi-project.org/) and/or
Those libraries provide simple framebuffered videomemory access, where
you can easily draw (and implement functions for drawing things). They
support SVGALib & X11 and SDL also supports multiple platforms (Win32,
BeOS and MacOS)
Of course you can also use X11 or SVGALib directly.
= ccr/TNSP - email@example.com | http://www.tnsp.org/ =
= Foo is a synonym for Bar, but not vice versa. =