I have not a PowerPC platform for testing, so I can't write any code at
the moment. But your proposal looks very ugly and I don't want to go
this way for 2.4. I will wait until the firmware stuff is accepted by
Linus and then try to port the current driver to the new architecture.
It is quite ugly, though not as ugly as hard coding the IO ports like
some ppl do ;) It's also the only proper way to access the IO ports
from userland regardless which PCI host bus they are on. We added this
syscall for the sake of XFree initially.
Ben.