mirror of
https://github.com/X11Libre/xf86-video-xgi.git
synced 2026-03-24 01:24:35 +00:00
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:
committed by
Connor Behan
parent
754628ddef
commit
923e6d6c6d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user