mirror of
https://github.com/X11Libre/xf86-video-cirrus.git
synced 2026-03-24 01:24:45 +00:00
Build fix for ABI Version 12
ABI Version 12 removes support for multiple PCI domains. If you need to use this driver on a system with more than one PCI domain, you should either port this driver to using libpciaccess directly or stick with an older server. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -480,7 +480,12 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
pCir = CIRPTR(pScrn);
|
||||
pCir->pScrn = pScrn;
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
||||
pCir->PIOReg = hwp->PIOOffset + 0x3CE;
|
||||
#else
|
||||
pCir->PIOReg = 0x3CE;
|
||||
#endif
|
||||
|
||||
/* Get the entity, and make sure it is PCI. */
|
||||
pCir->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
|
||||
|
||||
@@ -21,7 +21,7 @@ typedef struct {
|
||||
CARD32 properties;
|
||||
pciVideoPtr PciInfo;
|
||||
PCITAG PciTag;
|
||||
IOADDRESS PIOReg;
|
||||
unsigned long PIOReg;
|
||||
union {
|
||||
struct lgRec *lg;
|
||||
struct alpRec *alp;
|
||||
|
||||
@@ -372,7 +372,12 @@ LgPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
|
||||
pCir = CIRPTR(pScrn);
|
||||
pCir->pScrn = pScrn;
|
||||
|
||||
#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) < 12
|
||||
pCir->PIOReg = hwp->PIOOffset + 0x3CE;
|
||||
#else
|
||||
pCir->PIOReg = 0x3CE;
|
||||
#endif
|
||||
|
||||
/* Get the entity, and make sure it is PCI. */
|
||||
pCir->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
|
||||
|
||||
Reference in New Issue
Block a user