Subject: vgahw
To: netbsd-macppc <port-macppc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 07/20/2004 00:35:41
Hello,

ok, XFree works for me now. Sort of. It doesn't properly restore the 
console on exit and it probably only works on Macs with their graphics 
board in a slot controlled by the first bandit - but, well, now we know 
how to do it. XFree needs to know where the PCI host bridge maps IO 
registers - in my case 0xf2000000 but it may be different on other Macs 
and it will be different for the 2nd bandit in a 9x00 or grackle or... 
- well, we need a way to find the PCI IO space in a generic way. Linux 
does it with some /proc/pci/whatever, maybe a sysctl() or an ioctl() on 
/dev/pci would be the right thing.

Question to the gurus - is there already a way to find this address in 
a rather painless way?

have fun
Michael