Add check for libpciaccess on ARM

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=30619
Reviewed-by: Connor Behan <connor.behan@gmail.com>
This commit is contained in:
Tristan Plumb
2016-04-28 15:21:54 -04:00
committed by Connor Behan
parent 754628ddef
commit 923e6d6c6d

View File

@@ -2612,7 +2612,11 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
if (pXGI->Primary) {
#if defined(__arm__)
#ifdef XSERVER_LIBPCIACCESS
VGAHWPTR(pScrn)->MapPhys = pXGI->PciInfo->regions[2].base_addr + 0xf2000000;
#else
VGAHWPTR(pScrn)->MapPhys = pXGI->PciInfo->ioBase[2] + 0xf2000000;
#endif
#endif
VGAHWPTR(pScrn)->MapSize = 0x10000; /* Standard 64k VGA window */