But if the card is attached through PCI, it would make more sense to create .ma file matching the device in a similar way as, for example, [uhci].
You don't know how the VGA card is attached if you only access it via the VESA BIOS. You have to treat it as a legacy device with fixed I/O ports, etc. Thus, rootpc_add_functions() is probably the best solution.
Of course, once you have a specific GPU driver, then you need to do some nasty arbitration between the generic VESA driver (which knows nothing about the physical hardware hierarchy) and the specific driver (which knows and cares nothing about the BIOS).
If you have multiple GPUs in your machine, this gets even more interesting, because you need to remap the legacy I/O ranges, etc. See [1] for more details about how pleasant this might get :)
[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/vgaarbiter.txt
M.D. _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/listinfo/helenos-devel
