On 8/31/07, Fredrik Tolf <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-08-31 at 15:26 -0400, Tom Sylla wrote:
> > [...]
> > 'setpci' is a common linux tool that will do it. You need to set bit 0
> > of offset 30h in config space for that card. Then you can read from
> > the memory location reported by lspci.
>
> I see. So it is OK the alter the PCI config behind the kernel's back, in
> other words?

As long as you don't change the address, it should be just fine.
Don't remap it.  Just enable it.

> must reasonably expect to be able to access the card through the VGA
> registers, as it cannot know where the card's PCI resources have been
> mapped, right? Therefore, I guess that the X driver has to tell the card

Check this out:

http://en.wikipedia.org/wiki/VESA_BIOS

In the card's firmware are protected mode routines that you can call
to do things with the device.  It can ask the system BIOS for the flat
address of whatever BAR it needs to access in the device.  Typically,
then, it would not use legacy VGA registers but talk to the device
through memory space.

-- 
Timothy Normand Miller
http://www.cse.ohio-state.edu/~millerti
Open Graphics Project
_______________________________________________
Open-graphics mailing list
[email protected]
http://lists.duskglow.com/mailman/listinfo/open-graphics
List service provided by Duskglow Consulting, LLC (www.duskglow.com)

Reply via email to