summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-11-22 17:56:42 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-11-22 17:56:42 +0000
commit87485da18c18588903dbedec85e4fb615768c386 (patch)
treeb6a3fff8059b628b1c7ad0527abef5465f495f88
parent4dd25e0eb3d6d369bc14414d341a836b08e53fdf (diff)
Update to xf86-video-sisusb 0.9.3
-rw-r--r--driver/xf86-video-sisusb/configure.ac6
-rw-r--r--driver/xf86-video-sisusb/src/sisusb.h1
-rw-r--r--driver/xf86-video-sisusb/src/sisusb_driver.c34
3 files changed, 10 insertions, 31 deletions
diff --git a/driver/xf86-video-sisusb/configure.ac b/driver/xf86-video-sisusb/configure.ac
index daf0295b0..f2ae3625f 100644
--- a/driver/xf86-video-sisusb/configure.ac
+++ b/driver/xf86-video-sisusb/configure.ac
@@ -22,7 +22,7 @@
AC_PREREQ(2.57)
AC_INIT([xf86-video-sisusb],
- 0.9.1,
+ 0.9.3,
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
xf86-video-sisusb)
@@ -57,6 +57,10 @@ XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
# Checks for pkg-config packages
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
+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" ])
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
# Checks for libraries.
diff --git a/driver/xf86-video-sisusb/src/sisusb.h b/driver/xf86-video-sisusb/src/sisusb.h
index b5bb3adc2..b9992acb6 100644
--- a/driver/xf86-video-sisusb/src/sisusb.h
+++ b/driver/xf86-video-sisusb/src/sisusb.h
@@ -83,7 +83,6 @@
#include "compiler.h"
#include "xf86Priv.h"
#include "xf86_OSproc.h"
-#include "xf86Resources.h"
#include "xf86.h"
#include "xf86Cursor.h"
#include "xf86cmap.h"
diff --git a/driver/xf86-video-sisusb/src/sisusb_driver.c b/driver/xf86-video-sisusb/src/sisusb_driver.c
index 290764d0b..86b69f6f1 100644
--- a/driver/xf86-video-sisusb/src/sisusb_driver.c
+++ b/driver/xf86-video-sisusb/src/sisusb_driver.c
@@ -35,7 +35,6 @@
#include "sisusb.h"
-#include "xf86RAC.h"
#include "dixstruct.h"
#include "shadowfb.h"
#include "fb.h"
@@ -51,8 +50,13 @@
#include "globals.h"
+#ifdef HAVE_XEXTPROTO_71
+#include <X11/extensions/dpmsconst.h>
+#else
#define DPMS_SERVER
#include <X11/extensions/dpms.h>
+#endif
+
/*
* This is intentionally screen-independent. It indicates the binding
@@ -90,24 +94,6 @@ static SymTabRec SISUSBChipsets[] = {
{ -1, NULL }
};
-static const char *fbSymbols[] = {
- "fbPictureInit",
- "fbScreenInit",
- NULL
-};
-
-static const char *shadowSymbols[] = {
- "ShadowFBInit",
- NULL
-};
-
-static const char *ramdacSymbols[] = {
- "xf86CreateCursorInfoRec",
- "xf86DestroyCursorInfoRec",
- "xf86InitCursor",
- NULL
-};
-
#ifdef XFree86LOADER
static MODULESETUPPROTO(sisusbSetup);
@@ -143,7 +129,6 @@ sisusbSetup(pointer module, pointer opts, int *errmaj, int *errmin)
if(!setupDone) {
setupDone = TRUE;
xf86AddDriver(&SISUSB, module, SISUSB_HaveDriverFuncs);
- LoaderRefSymLists(fbSymbols, shadowSymbols, ramdacSymbols, NULL);
return (pointer)TRUE;
}
@@ -862,11 +847,6 @@ SISUSBPreInit(ScrnInfoPtr pScrn, int flags)
pScrn->chipset, pSiSUSB->sisusbversion, pSiSUSB->sisusbrevision,
pSiSUSB->sisusbpatchlevel);
- /* Operations for which memory access is required */
- /* USB2VGA: We never need memory or i/o access */
- pScrn->racMemFlags = 0;
- pScrn->racIoFlags = 0;
-
/* Load ramdac module */
if(!xf86LoadSubModule(pScrn, "ramdac")) {
SISUSBErrorLog(pScrn, "Could not load ramdac module\n");
@@ -874,8 +854,6 @@ SISUSBPreInit(ScrnInfoPtr pScrn, int flags)
return FALSE;
}
- xf86LoaderReqSymLists(ramdacSymbols, NULL);
-
/* Set pScrn->monitor */
pScrn->monitor = pScrn->confScreen->monitor;
@@ -1444,7 +1422,6 @@ SISUSBPreInit(ScrnInfoPtr pScrn, int flags)
SISUSBFreeRec(pScrn);
return FALSE;
}
- xf86LoaderReqSymLists(fbSymbols, NULL);
/* Load shadowfb (if needed) */
if(pSiSUSB->ShadowFB) {
@@ -1454,7 +1431,6 @@ SISUSBPreInit(ScrnInfoPtr pScrn, int flags)
SISUSBFreeRec(pScrn);
return FALSE;
}
- xf86LoaderReqSymLists(shadowSymbols, NULL);
}
pSiSUSB->UseVESA = 0;