Thanks for the quick reply.

Unfortunately, I'm still confused about what I have to do. I'll try to be
more specific about my questions.
Luckily, the I found the S3 Trio64 card that you documented to be working
with the BIOS and tried to work with it. I have tried other cards and as you
said, some require PCI BIOS call support, some require PCI mechanism I
support (such as the 3D labs). So I'm currently sticking to the S3 card.

What I think is working is the IO mapping using the SET_FWD macro in the
x86.c code, I believe that it's working correctly because there's a signal
from the VGA (specifically, reading/writing physical memory at 0x60000000 +
offset, where 0x60000000 is the base address for PCI IO space).

What I don't understand is where I map the video memory ?

I hope I'm asking the right questions ;) and yes, I have found out what a
big mess PC hardware is. Unfortunately, I have to set-up a graphical system
using the Integrator.

Thanks again,
Idan.

-----Original Message-----
From: Russell King - ARM Linux [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 6:10 PM
To: Idan Lupinsky
Cc: [EMAIL PROTECTED]
Subject: Re: Porting x86 emulator code from EBSA285 to Integrator


On Wed, Sep 12, 2001 at 05:38:12PM +0300, Idan Lupinsky wrote:
> What I understand is that the EBSA285 has ISA memory space starting at
> 0x80000000 so the character memory is set to 0x800B8000. I've tried
setting
> the charmem/scrmem variable to the PCI card (first RAM BAR base + 0xB8000)

That's not correct.

All PC video cards have "imaginary" IO and memory resources, which
correspond directly with the ISA mappings, ie, the following PCI bus
addresses:

        0x3b0   - 0x3df (io, and 1K multiples there of)
        0xa0000 - 0xbffff (memory)

These aren't specifically defined in the PCI standard (iirc), but are in
the PCI bridge standard (since bridges need to forward VGA accesses when
a control register bit is turned on).

The above resources are used irrespective of whether the BARs for the card
are setup to point elsewhere.

You need to arrange for the BIOS to have unconditional and uncontended
access to all the above regions, and some VGA BIOSes even require access
through the PCI BAR mappings.

Basically, you're finding out what a big mess PC hardware is, and all the
disgusting bachward hacks that need to be kept just to make new technologies
compatible with existing software. ;(

> 2. Should I see anything printed on the screen when the card initializes ?

Most VGA bioses display messages on initialisation.



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to