pci: Port xf86MapLegacyIO to pciaccess
authorAdam Jackson <ajax@redhat.com>
Fri, 16 Sep 2011 17:33:04 +0000 (13:33 -0400)
committerJeremy Huddleston <jeremyhu@apple.com>
Sun, 16 Oct 2011 04:18:46 +0000 (21:18 -0700)
commit858fbbb40d7c69540cd1fb5315cebf811c6e7b3f
treed71e30fe12d2156af7203169ada24bdb05bfb3a7
parent6d9efdce0d06df6b85f0681bea306c0b1e851502
pci: Port xf86MapLegacyIO to pciaccess

Per-domain I/O is now something drivers must manually request, and must
keep track of within their own state rather than in the ScrnInfoRec.
It's not really possible to split that into two steps without an
additional intermediate ABI break, so don't even try.  Drivers that want
source compatibility should ifdef on the presence of xf86UnmapLegacyIO.

As a fringe benefit, domain-aware I/O is now OS-independent, relying
only on support in pciaccess.  Simplify OS PCI setup to reflect this.

The IOADDRESS type is kept around to help drivers through the API
transition and will be removed at some point in the future.

Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Tested-by: Jeremy Huddleston <jeremyhu@apple.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
hw/xfree86/common/xf86Bus.c
hw/xfree86/common/xf86Bus.h
hw/xfree86/common/xf86pciBus.c
hw/xfree86/common/xf86str.h
hw/xfree86/os-support/bus/Pci.c
hw/xfree86/os-support/bus/Pci.h
hw/xfree86/os-support/bus/bsd_pci.c
hw/xfree86/os-support/bus/linuxPci.c
hw/xfree86/os-support/bus/xf86Pci.h