aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers
diff options
context:
space:
mode:
authorMatthew Rezny <rezny@FreeBSD.org>2017-02-16 14:34:06 +0000
committerMatthew Rezny <rezny@FreeBSD.org>2017-02-16 14:34:06 +0000
commit12b41f27e67769749b8fcdc256080baa2a3b3ff0 (patch)
treeb1b6262bd330f344ed98e961e1bceaad9b63b162 /x11-drivers
parentfec5ccdc9b652f089c36d24450ad266bc9b4a4dd (diff)
downloadports-12b41f27e67769749b8fcdc256080baa2a3b3ff0.tar.gz
ports-12b41f27e67769749b8fcdc256080baa2a3b3ff0.zip
Notes
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/xf86-video-scfb/Makefile4
-rw-r--r--x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c44
2 files changed, 33 insertions, 15 deletions
diff --git a/x11-drivers/xf86-video-scfb/Makefile b/x11-drivers/xf86-video-scfb/Makefile
index a1d9499b5443..a13bc21dea8a 100644
--- a/x11-drivers/xf86-video-scfb/Makefile
+++ b/x11-drivers/xf86-video-scfb/Makefile
@@ -3,10 +3,10 @@
PORTNAME= xf86-video-scfb
PORTVERSION= 0.0.4
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= x11-drivers
-MAINTAINER= ray@FreeBSD.org
+MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org syscons display driver
USE_GITHUB= yes
diff --git a/x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c b/x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c
index 193b053b64e5..99a388a001d1 100644
--- a/x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c
+++ b/x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c
@@ -58,7 +58,25 @@
#endif
return mapaddr;
}
-@@ -366,8 +367,8 @@ ScfbPreInit(ScrnInfoPtr pScrn, int flags
+@@ -314,6 +315,7 @@ ScfbProbe(DriverPtr drv, int flags)
+ GDevPtr *devSections;
+ int numDevSections;
+ const char *dev;
++ struct fbtype fb;
+ Bool foundScreen = FALSE;
+
+ TRACE("probe start");
+@@ -330,7 +332,8 @@ ScfbProbe(DriverPtr drv, int flags)
+ for (i = 0; i < numDevSections; i++) {
+ ScrnInfoPtr pScrn = NULL;
+ dev = xf86FindOptionValue(devSections[i]->options, "device");
+- if ((fd = xf86Info.consoleFd) >= 0) {
++ if ((fd = xf86Info.consoleFd) >= 0 &&
++ ioctl(fd, FBIOGTYPE, &fb) != -1) {
+ entity = xf86ClaimFbSlot(drv, 0, devSections[i], TRUE);
+ pScrn = xf86ConfigFbEntity(NULL,0,entity,
+ NULL,NULL,NULL,NULL);
+@@ -366,8 +369,8 @@ ScfbPreInit(ScrnInfoPtr pScrn, int flags
struct fbtype fb;
int default_depth, wstype;
const char *dev;
@@ -69,7 +87,7 @@
Gamma zeros = {0.0, 0.0, 0.0};
DisplayModePtr mode;
-@@ -633,9 +634,9 @@ ScfbShadowInit(ScreenPtr pScreen)
+@@ -633,9 +636,9 @@ ScfbShadowInit(ScreenPtr pScreen)
}
static Bool
@@ -81,7 +99,7 @@
ScfbPtr fPtr = SCFBPTR(pScrn);
VisualPtr visual;
int ret, flags, ncolors;
-@@ -792,7 +793,7 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
+@@ -792,7 +795,7 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
"RENDER extension initialisation failed.");
}
if (fPtr->shadowFB && !ScfbShadowInit(pScreen)) {
@@ -90,7 +108,7 @@
"shadow framebuffer initialization failed\n");
return FALSE;
}
-@@ -801,20 +802,19 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
+@@ -801,20 +804,19 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
if (!fPtr->rotate)
ScfbDGAInit(pScrn, pScreen);
else
@@ -114,7 +132,7 @@
xf86SetBackingStore(pScreen);
/* Software cursor. */
-@@ -858,9 +858,9 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
+@@ -858,9 +860,9 @@ ScfbScreenInit(int scrnIndex, ScreenPtr
}
static Bool
@@ -126,7 +144,7 @@
PixmapPtr pPixmap;
ScfbPtr fPtr = SCFBPTR(pScrn);
-@@ -892,7 +892,7 @@ ScfbCloseScreen(int scrnIndex, ScreenPtr
+@@ -892,7 +894,7 @@ ScfbCloseScreen(int scrnIndex, ScreenPtr
/* Unwrap CloseScreen. */
pScreen->CloseScreen = fPtr->CloseScreen;
TRACE_EXIT("ScfbCloseScreen");
@@ -135,7 +153,7 @@
}
static void *
-@@ -907,9 +907,9 @@ ScfbWindowLinear(ScreenPtr pScreen, CARD
+@@ -907,9 +909,9 @@ ScfbWindowLinear(ScreenPtr pScreen, CARD
}
static void
@@ -147,7 +165,7 @@
ScfbPtr fPtr = SCFBPTR(pScrn);
int newX, newY;
-@@ -941,13 +941,13 @@ ScfbPointerMoved(int index, int x, int y
+@@ -941,13 +943,13 @@ ScfbPointerMoved(int index, int x, int y
}
/* Pass adjusted pointer coordinates to wrapped PointerMoved function. */
@@ -164,7 +182,7 @@
TRACE_ENTER("EnterVT");
pScrn->vtSema = TRUE;
-@@ -956,20 +956,20 @@ ScfbEnterVT(int scrnIndex, int flags)
+@@ -956,20 +958,20 @@ ScfbEnterVT(int scrnIndex, int flags)
}
static void
@@ -189,7 +207,7 @@
#endif
TRACE_ENTER("SwitchMode");
-@@ -978,10 +978,10 @@ ScfbSwitchMode(int scrnIndex, DisplayMod
+@@ -978,10 +980,10 @@ ScfbSwitchMode(int scrnIndex, DisplayMod
}
static int
@@ -202,7 +220,7 @@
#endif
TRACE_ENTER("ValidMode");
-@@ -1067,7 +1067,6 @@ static Bool
+@@ -1067,7 +1069,6 @@ static Bool
ScfbDGASetMode(ScrnInfoPtr pScrn, DGAModePtr pDGAMode)
{
DisplayModePtr pMode;
@@ -210,7 +228,7 @@
int frameX0, frameY0;
if (pDGAMode) {
-@@ -1081,9 +1080,9 @@ ScfbDGASetMode(ScrnInfoPtr pScrn, DGAMod
+@@ -1081,9 +1082,9 @@ ScfbDGASetMode(ScrnInfoPtr pScrn, DGAMod
frameY0 = pScrn->frameY0;
}
@@ -222,7 +240,7 @@
return TRUE;
}
-@@ -1091,7 +1090,7 @@ ScfbDGASetMode(ScrnInfoPtr pScrn, DGAMod
+@@ -1091,7 +1092,7 @@ ScfbDGASetMode(ScrnInfoPtr pScrn, DGAMod
static void
ScfbDGASetViewport(ScrnInfoPtr pScrn, int x, int y, int flags)
{