Re: accessing ROM on Rage 128 chips in aty128fb

From: Jon Burgess (jburgess@uklinux.net)
Date: Mon Mar 31 2003 - 13:17:16 EST


  Martin Murray (mmurray@deepthought.org) wrote:

> Why does the linux PCI code not set up a mapping for the ROM
> automatically?

It expects the BIOS to do it. You can force it to try with the option
"pci=rom"

Assuming this is the active grahpics card, then you should be able to
access the rom via the legacy VGA address range 0xc0000...0xc7fff which
should be shown in /proc/iomem.

Try:
dd if=/dev/mem skip=768 bs=1k | od -x | more

In these days of integrated peripherals the graphics bios might not even
be attached to the VGA controller. The VGA device in my i810 system
doesn't even report an expansion rom.

> and found that the X driver maps the ROM through configuration
> space.

I'm fairly sure the XFree code falls back to the VGA region as well if
it can't find anything else. I think this is true on my machine, the X
log says:
... Primary V_BIOS Segment is 0xc000

        Jon

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:37 EST