Module Name: xsrc
Committed By: macallan
Date: Fri Sep 23 20:51:57 UTC 2016
Modified Files:
xsrc/external/mit/xf86-video-suntcx/dist/src: tcx_driver.c
Log Message:
provide driverFunc()
now this works with xorg 1.18
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c
diff -u xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.11 xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.12
--- xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c:1.11 Wed Sep 7 17:10:18 2016
+++ xsrc/external/mit/xf86-video-suntcx/dist/src/tcx_driver.c Fri Sep 23 20:51:57 2016
@@ -65,6 +65,9 @@ static ModeStatus TCXValidMode(SCRN_ARG_
void TCXSync(ScrnInfoPtr pScrn);
+static Bool TCXDriverFunc(ScrnInfoPtr, xorgDriverFuncOp, pointer);
+
+
#define TCX_VERSION 4000
#define TCX_NAME "SUNTCX"
#define TCX_DRIVER_NAME "suntcx"
@@ -87,7 +90,8 @@ _X_EXPORT DriverRec SUNTCX = {
TCXProbe,
TCXAvailableOptions,
NULL,
- 0
+ 0,
+ TCXDriverFunc
};
typedef enum {
@@ -128,7 +132,7 @@ tcxSetup(pointer module, pointer opts, i
if (!setupDone) {
setupDone = TRUE;
- xf86AddDriver(&SUNTCX, module, 0);
+ xf86AddDriver(&SUNTCX, module, HaveDriverFuncs);
/*
* Modules that this driver always requires can be loaded here
@@ -879,3 +883,19 @@ TCXInitCplane24(ScrnInfoPtr pScrn)
for (q = pTcx->cplane + size; p != q; p++)
*p = (*p & 0xffffff) | TCX_CPLANE_MODE;
}
+
+static Bool
+TCXDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op,
+ pointer ptr)
+{
+ xorgHWFlags *flag;
+
+ switch (op) {
+ case GET_REQUIRED_HW_INTERFACES:
+ flag = (CARD32*)ptr;
+ (*flag) = HW_MMIO;
+ return TRUE;
+ default:
+ return FALSE;
+ }
+}