pci: Remove xf86MapDomainMemory
authorAdam Jackson <ajax@redhat.com>
Tue, 10 May 2011 21:34:23 +0000 (17:34 -0400)
committerJeremy Huddleston <jeremyhu@apple.com>
Sun, 16 Oct 2011 04:18:46 +0000 (21:18 -0700)
commit7757b8092474c4f4ec04f4ebd1272236416154c3
treebfb9877d92c1a8e50eeddcd6ee985e17149deee3
parent6f5041d0b8e11e761d6403f1f8f8bb2ba2a9626d
pci: Remove xf86MapDomainMemory

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>
configure.ac
hw/xfree86/int10/generic.c
hw/xfree86/os-support/bus/Makefile.am
hw/xfree86/os-support/bus/bsd_pci.c
hw/xfree86/os-support/bus/linuxPci.c [deleted file]
hw/xfree86/os-support/bus/xf86Pci.h
hw/xfree86/vgahw/vgaHW.c