Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Xf86 Video Fbturbo
Commits
a2a75f4d
Commit
a2a75f4d
authored
Aug 26, 2005
by
Daniel Stone
Browse files
Numerous spelling and grammar fixes. (Branden Robinson, Debian #099n)
parent
28171378
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fbdev.c
View file @
a2a75f4d
...
@@ -443,7 +443,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -443,7 +443,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
/* We don't currently support DirectColor at > 8bpp */
/* We don't currently support DirectColor at > 8bpp */
if
(
pScrn
->
depth
>
8
&&
pScrn
->
defaultVisual
!=
TrueColor
)
{
if
(
pScrn
->
depth
>
8
&&
pScrn
->
defaultVisual
!=
TrueColor
)
{
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"
Given
default visual"
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"
requested
default visual"
" (%s) is not supported at depth %d
\n
"
,
" (%s) is not supported at depth %d
\n
"
,
xf86GetVisualName
(
pScrn
->
defaultVisual
),
pScrn
->
depth
);
xf86GetVisualName
(
pScrn
->
defaultVisual
),
pScrn
->
depth
);
return
FALSE
;
return
FALSE
;
...
@@ -462,8 +462,8 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -462,8 +462,8 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
pScrn
->
chipset
=
"fbdev"
;
pScrn
->
chipset
=
"fbdev"
;
pScrn
->
videoRam
=
fbdevHWGetVidmem
(
pScrn
);
pScrn
->
videoRam
=
fbdevHWGetVidmem
(
pScrn
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
H
ardware: %s (vid
mem: %dk)
\n
"
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
h
ardware: %s (vid
eo memory:"
fbdevHWGetName
(
pScrn
),
pScrn
->
videoRam
/
1024
);
" %dkB)
\n
"
,
fbdevHWGetName
(
pScrn
),
pScrn
->
videoRam
/
1024
);
/* handle options */
/* handle options */
xf86CollectOptions
(
pScrn
,
NULL
);
xf86CollectOptions
(
pScrn
,
NULL
);
...
@@ -484,37 +484,37 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -484,37 +484,37 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
rotate
=
FBDEV_ROTATE_CW
;
fPtr
->
rotate
=
FBDEV_ROTATE_CW
;
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"
R
otating screen clockwise
\n
"
);
"
r
otating screen clockwise
\n
"
);
}
}
else
if
(
!
xf86NameCmp
(
s
,
"CCW"
))
else
if
(
!
xf86NameCmp
(
s
,
"CCW"
))
{
{
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
rotate
=
FBDEV_ROTATE_CCW
;
fPtr
->
rotate
=
FBDEV_ROTATE_CCW
;
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"
R
otating screen counter
clockwise
\n
"
);
"
r
otating screen counter
-
clockwise
\n
"
);
}
}
else
if
(
!
xf86NameCmp
(
s
,
"UD"
))
else
if
(
!
xf86NameCmp
(
s
,
"UD"
))
{
{
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
shadowFB
=
TRUE
;
fPtr
->
rotate
=
FBDEV_ROTATE_UD
;
fPtr
->
rotate
=
FBDEV_ROTATE_UD
;
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"
R
otating screen upside
down
\n
"
);
"
r
otating screen upside
-
down
\n
"
);
}
}
else
else
{
{
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"
\"
%s
\"
is not a valid value for Option
\"
Rotate
\"\n
"
,
s
);
"
\"
%s
\"
is not a valid value for Option
\"
Rotate
\"\n
"
,
s
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
V
alid options are
\"
CW
\"
,
\"
CCW
\"
or
\"
UD
\"\n
"
);
"
v
alid options are
\"
CW
\"
,
\"
CCW
\"
and
\"
UD
\"\n
"
);
}
}
}
}
/* select video modes */
/* select video modes */
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
C
hecking
M
odes against framebuffer device...
\n
"
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
c
hecking
m
odes against framebuffer device...
\n
"
);
fbdevHWSetVideoModes
(
pScrn
);
fbdevHWSetVideoModes
(
pScrn
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
C
hecking
M
odes against monitor...
\n
"
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_INFO
,
"
c
hecking
m
odes against monitor...
\n
"
);
{
{
DisplayModePtr
mode
,
first
=
mode
=
pScrn
->
modes
;
DisplayModePtr
mode
,
first
=
mode
=
pScrn
->
modes
;
...
@@ -564,30 +564,32 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -564,30 +564,32 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
break
;
break
;
default:
default:
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"Unsupported bpp: %d"
,
pScrn
->
bitsPerPixel
);
"unsupported number of bits per pixel: %d"
,
pScrn
->
bitsPerPixel
);
return
FALSE
;
return
FALSE
;
}
}
break
;
break
;
case
FBDEVHW_INTERLEAVED_PLANES
:
case
FBDEVHW_INTERLEAVED_PLANES
:
/* Not supported yet, don't know what to do with this */
/* Not supported yet, don't know what to do with this */
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"Interleaved Planes are not supported yet by drivers/fbdev."
);
"interleaved planes are not yet supported by the "
"fbdev driver
\n
"
);
return
FALSE
;
return
FALSE
;
case
FBDEVHW_TEXT
:
case
FBDEVHW_TEXT
:
/* This should never happen ...
/* This should never happen ...
* we should check for this much much earlier ... */
* we should check for this much much earlier ... */
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"Text mode is not supprted by drivers/fbdev.
\n
"
"text mode is not supported by the fbdev driver
\n
"
);
"Why do you want to run the X in TEXT mode anyway ?"
);
return
FALSE
;
return
FALSE
;
case
FBDEVHW_VGA_PLANES
:
case
FBDEVHW_VGA_PLANES
:
/* Not supported yet */
/* Not supported yet */
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"EGA/VGA Planes are not supprted yet by drivers/fbdev."
);
"EGA/VGA planes are not yet supported by the fbdev "
"driver
\n
"
);
return
FALSE
;
return
FALSE
;
default:
default:
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"Fbdev type (%d) not supported yet.
"
,
type
);
"unrecognised fbdev hardware type (%d)
\n
"
,
type
);
return
FALSE
;
return
FALSE
;
}
}
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
...
@@ -600,7 +602,8 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -600,7 +602,8 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
/* Load shadow if needed */
/* Load shadow if needed */
if
(
fPtr
->
shadowFB
)
{
if
(
fPtr
->
shadowFB
)
{
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"Using
\"
Shadow Framebuffer
\"\n
"
);
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_CONFIG
,
"using shadow"
" framebuffer
\n
"
);
if
(
!
xf86LoadSubModule
(
pScrn
,
"shadow"
))
{
if
(
!
xf86LoadSubModule
(
pScrn
,
"shadow"
))
{
FBDevFreeRec
(
pScrn
);
FBDevFreeRec
(
pScrn
);
return
FALSE
;
return
FALSE
;
...
@@ -635,7 +638,8 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -635,7 +638,8 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
#endif
#endif
if
(
NULL
==
(
fPtr
->
fbmem
=
fbdevHWMapVidmem
(
pScrn
)))
{
if
(
NULL
==
(
fPtr
->
fbmem
=
fbdevHWMapVidmem
(
pScrn
)))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Map vid mem failed
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"mapping of video memory"
" failed
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
fPtr
->
fboff
=
fbdevHWLinearOffset
(
pScrn
);
fPtr
->
fboff
=
fbdevHWLinearOffset
(
pScrn
);
...
@@ -643,7 +647,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -643,7 +647,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fbdevHWSave
(
pScrn
);
fbdevHWSave
(
pScrn
);
if
(
!
fbdevHWModeInit
(
pScrn
,
pScrn
->
currentMode
))
{
if
(
!
fbdevHWModeInit
(
pScrn
,
pScrn
->
currentMode
))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
M
ode init failed
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
m
ode init
ialization
failed
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
fbdevHWSaveScreen
(
pScreen
,
SCREEN_SAVER_ON
);
fbdevHWSaveScreen
(
pScreen
,
SCREEN_SAVER_ON
);
...
@@ -653,19 +657,23 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -653,19 +657,23 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
miClearVisualTypes
();
miClearVisualTypes
();
if
(
pScrn
->
bitsPerPixel
>
8
)
{
if
(
pScrn
->
bitsPerPixel
>
8
)
{
if
(
!
miSetVisualTypes
(
pScrn
->
depth
,
TrueColorMask
,
pScrn
->
rgbBits
,
TrueColor
))
{
if
(
!
miSetVisualTypes
(
pScrn
->
depth
,
TrueColorMask
,
pScrn
->
rgbBits
,
TrueColor
))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Set visual types failed
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"visual type setup failed"
" for %d bits per pixel [1]
\n
"
,
pScrn
->
bitsPerPixel
);
return
FALSE
;
return
FALSE
;
}
}
}
else
{
}
else
{
if
(
!
miSetVisualTypes
(
pScrn
->
depth
,
if
(
!
miSetVisualTypes
(
pScrn
->
depth
,
miGetDefaultVisualMask
(
pScrn
->
depth
),
miGetDefaultVisualMask
(
pScrn
->
depth
),
pScrn
->
rgbBits
,
pScrn
->
defaultVisual
))
{
pScrn
->
rgbBits
,
pScrn
->
defaultVisual
))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Set visual types failed
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"visual type setup failed"
" for %d bits per pixel [2]
\n
"
,
pScrn
->
bitsPerPixel
);
return
FALSE
;
return
FALSE
;
}
}
}
}
if
(
!
miSetPixmapDepths
())
{
if
(
!
miSetPixmapDepths
())
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
Set
pixmap depth
s
failed
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"pixmap depth
setup
failed
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -688,7 +696,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -688,7 +696,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if
((
fPtr
->
shadowmem
=
shadowAlloc
(
width
,
height
,
if
((
fPtr
->
shadowmem
=
shadowAlloc
(
width
,
height
,
pScrn
->
bitsPerPixel
))
==
NULL
)
{
pScrn
->
bitsPerPixel
))
==
NULL
)
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
A
llocation of shadow memory failed
\n
"
);
"
a
llocation of shadow
framebuffer
memory failed
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -705,14 +713,15 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -705,14 +713,15 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if
(
fPtr
->
rotate
)
if
(
fPtr
->
rotate
)
{
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
I
nternal error:
R
otate not supported for afb
\n
"
);
"
i
nternal error:
r
otate not supported for afb
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
if
(
fPtr
->
shadowFB
)
if
(
fPtr
->
shadowFB
)
{
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Internal error: Shadow framebuffer not supported for afb
\n
"
);
"internal error: shadow framebuffer not supported"
" for afb
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
...
@@ -733,8 +742,9 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -733,8 +742,9 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
break
;
break
;
default:
default:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Internal error: invalid bpp (%d) in FBDevScreenInit
\n
"
,
"internal error: invalid number of bits per"
pScrn
->
bitsPerPixel
);
" pixel (%d) encountered in"
" FBDevScreenInit()
\n
"
,
pScrn
->
bitsPerPixel
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
...
@@ -743,29 +753,29 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -743,29 +753,29 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
/* This should never happen ...
/* This should never happen ...
* we should check for this much much earlier ... */
* we should check for this much much earlier ... */
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
Text mode is not supprted by drivers/fbdev.
\n
"
"i
nternal error:
interleaved planes are not yet
"
"Comment: Why do you want to run the X in TEXT mode anyway ?
"
);
"supported by the fbdev driver
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
case
FBDEVHW_TEXT
:
case
FBDEVHW_TEXT
:
/* This should never happen ...
/* This should never happen ...
* we should check for this much much earlier ... */
* we should check for this much much earlier ... */
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
T
ext mode is not supprted by
drivers/fbdev.
\n
"
"i
nternal error:
t
ext mode is not supp
o
rted by
the
"
"Comment: Why do you want to run the X in TEXT mode anyway ?
"
);
"fbdev driver
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
case
FBDEVHW_VGA_PLANES
:
case
FBDEVHW_VGA_PLANES
:
/* Not supported yet */
/* Not supported yet */
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error: EGA/VGA Planes are not
supprted
"
"i
nternal error: EGA/VGA Planes are not
yet
"
" yet by drivers/fbdev.
"
);
"supported by the fbdev driver
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
default:
default:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
fbdev type (%d) unsupported in
"
"i
nternal error:
unrecognised hardware type (%d)
"
"
FBDevScreenInit
\n
"
,
type
);
"encountered in
FBDevScreenInit
()
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
...
@@ -790,7 +800,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -790,7 +800,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
/* must be after RGB ordering fixed */
/* must be after RGB ordering fixed */
if
(
init_picture
&&
!
fbPictureInit
(
pScreen
,
NULL
,
0
))
if
(
init_picture
&&
!
fbPictureInit
(
pScreen
,
NULL
,
0
))
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_WARNING
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_WARNING
,
"R
ENDER
extension initialisation failed
.
\n
"
);
"R
ender
extension initialisation failed
\n
"
);
if
(
fPtr
->
shadowFB
&&
if
(
fPtr
->
shadowFB
&&
(
!
shadowSetup
(
pScreen
)
||
!
shadowAdd
(
pScreen
,
NULL
,
(
!
shadowSetup
(
pScreen
)
||
!
shadowAdd
(
pScreen
,
NULL
,
...
@@ -798,18 +808,20 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -798,18 +808,20 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
:
shadowUpdatePackedWeak
(),
:
shadowUpdatePackedWeak
(),
FBDevWindowLinear
,
fPtr
->
rotate
,
NULL
))
)
{
FBDevWindowLinear
,
fPtr
->
rotate
,
NULL
))
)
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"
S
hadow framebuffer initialization failed
.
\n
"
);
"
s
hadow framebuffer initialization failed
\n
"
);
return
FALSE
;
return
FALSE
;
}
}
if
(
!
fPtr
->
rotate
)
if
(
!
fPtr
->
rotate
)
FBDevDGAInit
(
pScrn
,
pScreen
);
FBDevDGAInit
(
pScrn
,
pScreen
);
else
{
else
{
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"Rotated display, disabling DGA
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"display rotated; disabling DGA
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"Enabling Driver rotation, disabling RandR
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"using driver rotation; disabling "
"XRandR
\n
"
);
xf86DisableRandR
();
xf86DisableRandR
();
if
(
pScrn
->
bitsPerPixel
==
24
)
if
(
pScrn
->
bitsPerPixel
==
24
)
xf86DrvMsg
(
scrnIndex
,
X_WARNING
,
"Rotation might be broken in 24 bpp
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_WARNING
,
"rotation might be broken at 24 "
"bits per pixel
\n
"
);
}
}
xf86SetBlackWhitePixels
(
pScreen
);
xf86SetBlackWhitePixels
(
pScreen
);
...
@@ -825,33 +837,41 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -825,33 +837,41 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
/* XXX It would be simpler to use miCreateDefColormap() in all cases. */
/* XXX It would be simpler to use miCreateDefColormap() in all cases. */
#ifdef USE_AFB
#ifdef USE_AFB
case
FBDEVHW_PLANES
:
case
FBDEVHW_PLANES
:
if
(
!
afbCreateDefColormap
(
pScreen
))
if
(
!
afbCreateDefColormap
(
pScreen
))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"internal error: afbCreateDefColormap "
"failed in FBDevScreenInit()
\n
"
);
return
FALSE
;
return
FALSE
;
}
break
;
break
;
#endif
#endif
case
FBDEVHW_PACKED_PIXELS
:
case
FBDEVHW_PACKED_PIXELS
:
if
(
!
miCreateDefColormap
(
pScreen
))
if
(
!
miCreateDefColormap
(
pScreen
))
{
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"internal error: miCreateDefColormap failed "
"in FBDevScreenInit()
\n
"
);
return
FALSE
;
return
FALSE
;
}
break
;
break
;
case
FBDEVHW_INTERLEAVED_PLANES
:
case
FBDEVHW_INTERLEAVED_PLANES
:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
invalid fbdev type (
interleaved planes
)
"
"i
nternal error: interleaved planes
are not yet
"
" in FBDevScreenInit
\n
"
);
"supported by the fbdev driver
\n
"
);
return
FALSE
;
return
FALSE
;
case
FBDEVHW_TEXT
:
case
FBDEVHW_TEXT
:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
invalid fbdev type (text)
"
"i
nternal error:
text mode is not supported by
"
" in FBDevScreenInit
\n
"
);
"the fbdev driver
\n
"
);
return
FALSE
;
return
FALSE
;
case
FBDEVHW_VGA_PLANES
:
case
FBDEVHW_VGA_PLANES
:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
invalid fbdev type (ega/vga planes)
"
"i
nternal error:
EGA/VGA planes are not yet
"
" in FBDevScreenInit
\n
"
);
"supported by the fbdev driver
\n
"
);
return
FALSE
;
return
FALSE
;
default:
default:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"I
nternal error:
invalid fbdev type (%d) in FBDevScreenInit
\n
"
,
"i
nternal error:
unrecognised fbdev hardware type "
type
);
"(%d) encountered in FBDevScreenInit()
\n
"
,
type
);
return
FALSE
;
return
FALSE
;
}
}
flags
=
CMAP_PALETTED_TRUECOLOR
;
flags
=
CMAP_PALETTED_TRUECOLOR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment