Are you working with a actual video card? If so what video card our you
working with? Are you familiar with fbcon ? This provides a standard
interface to mode setting video hardware. In fbcon we store both the
physical address and virtual address in a data structure (fb_info). The
physical address is what you get from the bus. Now each process has its
own virtual address space. Thats what mmap does. In order to do this you
need a ioremap function that maps the physical address to the virtual
address of the process. Usually that function is in a mmap function
defined for a driver.  

"We've all heard that a million monkeys banging on a million typewriters
 will eventually reproduce the entire works of Shakespeare. Now,
 thanks to the Internet, we know this is not true. It made something
 better, linux :)"

On Tue, 2 Nov 1999, Adam Meyerowitz wrote:

> Hello,
> 
> Lets say I have a device (like a vga card), that maps its memory into the
> processor
> address space.  Lets say the address is 0xe2000000.  How can I write to
> that address
> from a rtlinux module.  Can I simply assign a pointer to that address and
> write to
> it or do I have to do some other things?
> 
> Thanks
> Adam
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/
> 

--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to