summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-28 13:47:49 +1000
committerDave Airlie <airlied@redhat.com>2009-07-28 13:47:49 +1000
commit2de661a49fc6cef9e069ecbe964b520971210551 (patch)
tree1cb9bc7b3b9f9b00a1266a80f63db6dc230d3e54
parent48b614fd26484ff3390b0290f9f60630e6f959d2 (diff)
xgi: fix resources/rac rework
-rw-r--r--src/xgi_driver.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index b4558bd..c6b2dcb 100644
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -58,14 +58,16 @@
#include "xf86.h"
#include "xf86Priv.h"
#include "xf86_OSproc.h"
+#ifndef XSERVER_LIBPCIACCESS
#include "xf86Resources.h"
+#include "xf86RAC.h"
+#endif
#include "dixstruct.h"
#include "xorgVersion.h"
#include "xf86PciInfo.h"
#include "xf86Pci.h"
#include "xf86cmap.h"
#include "vgaHW.h"
-#include "xf86RAC.h"
#include "shadowfb.h"
#include "vbe.h"
@@ -2453,12 +2455,14 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
#endif /* !defined(__alpha__) */
}
+#ifndef XSERVER_LIBPCIACCESS
xf86SetOperatingState(resVgaMem, pXGI->pEnt->index, ResUnusedOpr);
/* Operations for which memory access is required */
pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
/* Operations for which I/O access is required */
pScrn->racIoFlags = RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
+#endif
/* The ramdac module should be loaded here when needed */
if (!xf86LoadSubModule(pScrn, "ramdac")) {
@@ -2930,6 +2934,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
(unsigned long) pXGI->IOAddress, pXGI->mmioSize);
pXGI->xgi_HwDevExt.bIntegratedMMEnabled = TRUE;
+#ifndef XSERVER_LIBPCIACCESS
/* Register the PCI-assigned resources. */
if (xf86RegisterResources(pXGI->pEnt->index, NULL, ResExclusive)) {
XGIErrorLog(pScrn,
@@ -2944,6 +2949,7 @@ XGIPreInit(ScrnInfoPtr pScrn, int flags)
XGIFreeRec(pScrn);
return FALSE;
}
+#endif
from = X_PROBED;
if (pXGI->pEnt->device->videoRam != 0) {