summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-28 13:32:30 +1000
committerDave Airlie <airlied@redhat.com>2009-07-28 13:42:07 +1000
commit9a3b568d62a0b48f4a42ea5377740b2df1af432a (patch)
tree4017567e78216c77cf879670b746bf79a78f8423
parent3418c6c16b108e45f67f3c868d28932266f7a0bc (diff)
intel: update for resources/RAC API removal
-rw-r--r--src/i810_driver.c8
-rw-r--r--src/i830_driver.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/src/i810_driver.c b/src/i810_driver.c
index 4b8c4590..822236a0 100644
--- a/src/i810_driver.c
+++ b/src/i810_driver.c
@@ -55,8 +55,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "xf86.h"
#include "xf86_OSproc.h"
+#ifndef XSERVER_LIBPCIACCESS
#include "xf86Resources.h"
#include "xf86RAC.h"
+#endif
#include "xf86cmap.h"
#include "compiler.h"
#include "mibstore.h"
@@ -549,10 +551,11 @@ I810PreInit(ScrnInfoPtr pScrn, int flags)
pI810->PciInfo = xf86GetPciInfoForEntity(pI810->pEnt->index);
+#ifndef XSERVER_LIBPCIACCESS
if (xf86RegisterResources(pI810->pEnt->index, NULL, ResNone))
return FALSE;
pScrn->racMemFlags = RAC_FB | RAC_COLORMAP;
-
+#endif
/* Set pScrn->monitor */
pScrn->monitor = pScrn->confScreen->monitor;
@@ -937,9 +940,10 @@ I810PreInit(ScrnInfoPtr pScrn, int flags)
/* We won't be using the VGA access after the probe */
I810SetMMIOAccess(pI810);
+#ifndef XSERVER_LIBPCIACCESS
xf86SetOperatingState(resVgaIo, pI810->pEnt->index, ResUnusedOpr);
xf86SetOperatingState(resVgaMem, pI810->pEnt->index, ResDisableOpr);
-
+#endif
return TRUE;
}
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 33079fea..f95160b2 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -51,8 +51,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "xf86.h"
#include "xf86_OSproc.h"
+#ifndef XSERVER_LIBPCIACCESS
#include "xf86Resources.h"
#include "xf86RAC.h"
+#endif
#include "xf86Priv.h"
#include "xf86cmap.h"
#include "compiler.h"
@@ -1541,12 +1543,14 @@ I830PreInit(ScrnInfoPtr pScrn, int flags)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Failed to become DRM master.\n");
+#ifndef XSERVER_LIBPCIACCESS
if (xf86RegisterResources(pI830->pEnt->index, NULL, ResNone)) {
PreInitCleanup(pScrn);
return FALSE;
}
pScrn->racMemFlags = RAC_FB | RAC_COLORMAP;
+#endif
pScrn->monitor = pScrn->confScreen->monitor;
pScrn->progClock = TRUE;
pScrn->rgbBits = 8;
@@ -1632,8 +1636,10 @@ I830PreInit(ScrnInfoPtr pScrn, int flags)
/* We won't be using the VGA access after the probe. */
I830SetMMIOAccess(pI830);
+#ifndef XSERVER_LIBPCIACCESS
xf86SetOperatingState(resVgaIo, pI830->pEnt->index, ResUnusedOpr);
xf86SetOperatingState(resVgaMem, pI830->pEnt->index, ResDisableOpr);
+#endif
}
/* Load the dri2 module if requested. */