Hi, El 15/8/22 a les 20:20, Samuel Thibault ha escrit:
Sorry, I meant: why can't we do that for ROMs? Does libpciaccess not provide a way to map ROMs?
That's the problem: it doesn't. It only provides the function pci_device_read_rom() which copies the entire ROM to a given pointer. But it doesn't provide the ROM physical address, which I would need to map it in the arbiter space though pci_device_map_range(), like in
http://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/pci-arbiter/device_map.c#n41