Re: How could I run SVGALib on RISC CPU???

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Wed 11 Oct 2000 - 18:07:58 IST


On Tue, 10 Oct 2000, rival wrote:

> My CPU accesses the vga card by memory mapping.
> And I should offset the registers to communicate the vga.
> So,when I start porting the code.
> I tried to change the skeleton.c and other src file.
> I found My graphic memory base add. is 0xaa000000.
> It's a long type.
> In vga.c,the function-port_out(int value, int port).
> Should I change the port_out and other function about register in vga.c?

You might want to look at svgalib-1.9 (latest is 1.9.6), it includes
support for all this. Your driver needs to set the correct offset, and
then call mm_io_mapio(). You can see how its done in i740.c.
You probably need to change the banked memory region (if the system
supports it at all).



-- 
Matan Ziv-Av.                         matan@svgalib.org


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST