Using /dev/mem to read video BIOS ROM

Warren Block wblock at
Sat Oct 6 15:15:35 PDT 2007

Xorg says my video BIOS ROM is at 0xDFEC0000:

romsave = pciReadLong(Tag, PCI_MAP_ROM_REG);  (in Pci.c/handlePciBIOS)

Using /dev/mem to read the ROM works, but at offset 0xC0000.

"romsave & 0x000fffff" can't be the general way to convert from address 
to /dev/mem offset.

-Warren Block * Rapid City, South Dakota USA

More information about the freebsd-x11 mailing list