This is slightly draconian, but that API is just awful. In all but one case in the callers it's used to get a map of some legacy VGA memory, and it would be cleaner for the caller to just call pci_device_map_legacy. The sole exception is in the vesa driver, which uses it to avoid having to look up which device the BAR belongs to. That's similarly trivial to fix. Having done that, Linux's PCI layer is now very small indeed. Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Tested-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Adam Jackson <ajax@redhat.com> |
||
---|---|---|
.. | ||
bsd | ||
bus | ||
hurd | ||
linux | ||
misc | ||
shared | ||
solaris | ||
int10Defines.h | ||
Makefile.am | ||
xf86_OSlib.h | ||
xf86_OSproc.h | ||
xf86OSpriv.h |