diff options
author | Dave Airlie <airlied@redhat.com> | 2009-07-28 13:32:37 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-07-28 13:32:37 +1000 |
commit | 9e1ebb9530bbb71be7fcab9e6f8f9a475be72efe (patch) | |
tree | 2eebfec43909a2968e0f02e0ad6f5d10fba02944 | |
parent | 59ea80738d22c69a2850fd7ff89bd75330cc310b (diff) |
sis: update for resources/RAC API removal
-rw-r--r-- | src/sis.h | 2 | ||||
-rw-r--r-- | src/sis_driver.c | 7 |
2 files changed, 9 insertions, 0 deletions
@@ -77,7 +77,9 @@ #include "xf86Pci.h" #include "xf86Priv.h" #include "xf86_OSproc.h" +#ifndef XSERVER_LIBPCIACCESS #include "xf86Resources.h" +#endif #include "xf86.h" #include "xf86PciInfo.h" #include "xf86Cursor.h" diff --git a/src/sis_driver.c b/src/sis_driver.c index a1ced97..bb11cbb 100644 --- a/src/sis_driver.c +++ b/src/sis_driver.c @@ -49,7 +49,9 @@ #include "sis.h" +#ifndef XSERVER_LIBPCIACCESS #include "xf86RAC.h" +#endif #include "dixstruct.h" #include "shadowfb.h" #include "fb.h" @@ -3552,6 +3554,7 @@ SISPreInit(ScrnInfoPtr pScrn, int flags) SiS_MapVGAMem(pScrn); #endif +#ifndef XSERVER_LIBPCIACCESS /* Set operating state */ /* 1. memory */ @@ -3581,6 +3584,8 @@ SISPreInit(ScrnInfoPtr pScrn, int flags) /* Operations for which I/O access is required */ pScrn->racIoFlags = RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT; +#endif + /* Load ramdac module */ if(!xf86LoadSubModule(pScrn, "ramdac")) { SISErrorLog(pScrn, "Could not load ramdac module\n"); @@ -4424,6 +4429,7 @@ SISPreInit(ScrnInfoPtr pScrn, int flags) xf86DrvMsg(pScrn->scrnIndex, from, "MMIO registers at 0x%lX (size %ldK)\n", (ULong)pSiS->IOAddress, pSiS->mmioSize); +#ifndef XSERVER_LIBPCIACCESS /* Register the PCI-assigned resources */ if(xf86RegisterResources(pSiS->pEnt->index, NULL, ResExclusive)) { SISErrorLog(pScrn, "PCI resource conflicts detected\n"); @@ -4435,6 +4441,7 @@ SISPreInit(ScrnInfoPtr pScrn, int flags) SISFreeRec(pScrn); return FALSE; } +#endif from = X_PROBED; if(pSiS->pEnt->device->videoRam != 0) { |