Blob Blame History Raw
diff -up xf86-video-ivtv-1.1.0/configure.ac.Xextproto71 xf86-video-ivtv-1.1.0/configure.ac
--- xf86-video-ivtv-1.1.0/configure.ac.Xextproto71	2009-10-20 22:25:07.742871233 +0200
+++ xf86-video-ivtv-1.1.0/configure.ac	2009-10-20 22:27:34.791874162 +0200
@@ -54,6 +54,11 @@ PKG_CHECK_EXISTS([xorg-server >= 1.0.99.
 PKG_CHECK_MODULES(XORG, [xorg-server xproto fontsproto $REQUIRED_MODULES])
 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
 
+PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
+ HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]),
+ HAVE_XEXTPROTO_71="no")
+AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
+
 # Checks for extensions
 XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
 XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
diff -up xf86-video-ivtv-1.1.0/src/ivtv.c.Xextproto71 xf86-video-ivtv-1.1.0/src/ivtv.c
--- xf86-video-ivtv-1.1.0/src/ivtv.c.Xextproto71	2009-10-20 22:54:20.940868205 +0200
+++ xf86-video-ivtv-1.1.0/src/ivtv.c	2009-10-20 23:28:20.961620109 +0200
@@ -51,8 +51,10 @@ in this Software without prior written a
 /* for visuals */
 #include "fb.h"
 
+#ifndef XSERVER_LIBPCIACCESS
 #include "xf86Resources.h"
 #include "xf86RAC.h"
+#endif
 
 #ifdef XvExtension
 # include "xf86xv.h"
@@ -403,6 +405,7 @@ IVTVDevPreInit(ScrnInfoPtr pScrn, int fl
 
     devPtr->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
 
+#ifndef XSERVER_LIBPCIACCESS
     pScrn->racMemFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
     /* XXX Is this right?  Can probably remove RAC_FB */
     pScrn->racIoFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
@@ -413,6 +416,13 @@ IVTVDevPreInit(ScrnInfoPtr pScrn, int fl
 	    "DevPreInit: xf86RegisterResources() found resource conflicts\n");
 	return FALSE;
     }
+#else
+    if (devPtr->pEnt->location.type == BUS_PCI ) {
+	xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+	    "DevPreInit: xf86RegisterResources() found resource conflicts\n");
+	return FALSE;
+    }
+#endif
 
     /* open device */
     if (!ivtvHWInit(pScrn, NULL,
diff -up xf86-video-ivtv-1.1.0/src/ivtv_hw.c.Xextproto71 xf86-video-ivtv-1.1.0/src/ivtv_hw.c
--- xf86-video-ivtv-1.1.0/src/ivtv_hw.c.Xextproto71	2009-10-20 22:29:13.508623060 +0200
+++ xf86-video-ivtv-1.1.0/src/ivtv_hw.c	2009-10-20 22:52:44.711622244 +0200
@@ -55,8 +55,12 @@ in this Software without prior written a
 #include "xf86cmap.h"
 
 #include "globals.h"
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
 #define DPMS_SERVER
 #include <X11/extensions/dpms.h>
+#endif
 
 #if IVTVDEBUG
 # define TRACE_ENTER(str)	ErrorF("ivtv_hw: " str " %d\n",pScrn->scrnIndex)
diff -up xf86-video-ivtv-1.1.0/src/ivtv_hw.h.Xextproto71 xf86-video-ivtv-1.1.0/src/ivtv_hw.h
diff -up xf86-video-ivtv-1.1.0/src/Makefile.am.Xextproto71 xf86-video-ivtv-1.1.0/src/Makefile.am
--- xf86-video-ivtv-1.1.0/src/Makefile.am.Xextproto71	2009-10-20 22:28:39.726904017 +0200
+++ xf86-video-ivtv-1.1.0/src/Makefile.am	2009-10-20 22:31:06.987875245 +0200
@@ -23,7 +23,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@
+AM_CFLAGS = @XORG_CFLAGS@ @XEXT_CFLAGS@
 ivtv_drv_la_LTLIBRARIES = ivtv_drv.la
 ivtv_drv_la_LDFLAGS = -module -avoid-version
 ivtv_drv_ladir = @moduledir@/drivers