> So you'd suggest having search utilities (as with platform_bus)
That seems a bad idea to me
Far better I think that pci_ functions that take BAR values end up as
wrappers of the form
pci_iomap(pdev, bar)
return dev_iomap_resource(&pdev->resource[bar]);
-