Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107420735
D9629.id25263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D9629.id25263.diff
View Options
Index: x11-drivers/xf86-video-scfb/Makefile
===================================================================
--- x11-drivers/xf86-video-scfb/Makefile
+++ 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
Index: x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c
===================================================================
--- x11-drivers/xf86-video-scfb/files/patch-src_scfb__driver.c
+++ 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)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 10:20 PM (3 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15801667
Default Alt Text
D9629.id25263.diff (4 KB)
Attached To
Mode
D9629: Fix scfb to only attach the device if it can drive it.
Attached
Detach File
Event Timeline
Log In to Comment