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.                         [EMAIL PROTECTED]


------------------------------------------------------------------
Unsubscribe:  To:   [EMAIL PROTECTED]
              Body: unsubscribe linux-svgalib

Reply via email to