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
db6514ce
Commit
db6514ce
authored
Jun 16, 2004
by
Eric Anholt
Browse files
DRI XFree86-4_3_99_12-merge import
parent
1e80fe1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
man/fbdev.man
View file @
db6514ce
.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.man,v 1.
2
2001/
01/27 18:20:47 dawes
Exp $
.\" $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.man,v 1.
3
2001/
10/02 15:57:32 alanh
Exp $
.\" shorthand for double quote that works everywhere.
.\" shorthand for double quote that works everywhere.
.ds q \N'34'
.ds q \N'34'
.TH FBDEV __drivermansuffix__ __vendorversion__
.TH FBDEV __drivermansuffix__ __vendorversion__
...
@@ -15,7 +15,7 @@ fbdev \- video driver for framebuffer device
...
@@ -15,7 +15,7 @@ fbdev \- video driver for framebuffer device
.fi
.fi
.SH DESCRIPTION
.SH DESCRIPTION
.B fbdev
.B fbdev
is an
__xservername__
driver for framebuffer devices. This is a non-accelerated
is an
XFree86
driver for framebuffer devices. This is a non-accelerated
driver, the following framebuffer depths are supported: 8, 15, 16, 24.
driver, the following framebuffer depths are supported: 8, 15, 16, 24.
All visual types are supported for depth 8, and TrueColor visual is
All visual types are supported for depth 8, and TrueColor visual is
supported for the other depths. Multi-head configurations are supported.
supported for the other depths. Multi-head configurations are supported.
...
@@ -27,7 +27,7 @@ fbdev uses the os-specific submodule fbdevhw(__drivermansuffix__) to talk
...
@@ -27,7 +27,7 @@ fbdev uses the os-specific submodule fbdevhw(__drivermansuffix__) to talk
to the kernel
to the kernel
device driver. Currently a fbdevhw module is available for linux.
device driver. Currently a fbdevhw module is available for linux.
.SH CONFIGURATION DETAILS
.SH CONFIGURATION DETAILS
Please refer to
__xconfigfile__
(__filemansuffix__) for general configuration
Please refer to
XF86Config
(__filemansuffix__) for general configuration
details. This section only covers configuration details specific to
details. This section only covers configuration details specific to
this driver.
this driver.
.PP
.PP
...
@@ -38,8 +38,7 @@ driver can pick up the currently used video mode from the framebuffer
...
@@ -38,8 +38,7 @@ driver can pick up the currently used video mode from the framebuffer
driver and will use it if there are no video modes configured.
driver and will use it if there are no video modes configured.
.PP
.PP
For PCI boards you might have to add a BusID line to the Device
For PCI boards you might have to add a BusID line to the Device
section. See above for a sample line. You can use \*q\__xservername__
section. See above for a sample line. You can use "XFree86 -scanpci"
-scanpci\*q
to figure out the correct values.
to figure out the correct values.
.PP
.PP
The following driver
The following driver
...
@@ -57,7 +56,7 @@ Enable rotation of the display. The supported values are "CW" (clockwise,
...
@@ -57,7 +56,7 @@ Enable rotation of the display. The supported values are "CW" (clockwise,
90 degrees), "UD" (upside down, 180 degrees) and "CCW" (counter clockwise,
90 degrees), "UD" (upside down, 180 degrees) and "CCW" (counter clockwise,
270 degrees). Implies use of the shadow framebuffer layer. Default: off.
270 degrees). Implies use of the shadow framebuffer layer. Default: off.
.SH "SEE ALSO"
.SH "SEE ALSO"
__xservername__(__appmansuffix__), __xconfigfile__
(__filemansuffix__), x
org
config(
__appmansuffix__), Xserver(__appmansuffix__
),
XFree86(1), XF86Config
(__filemansuffix__), x
f86
config(
1), Xserver(1
),
X(__miscmansuffix__), fbdevhw(__drivermansuffix__)
X(__miscmansuffix__), fbdevhw(__drivermansuffix__)
.SH AUTHORS
.SH AUTHORS
Authors include: Gerd Knorr, Michel Dänzer, Geert Uytterhoeven
Authors include: Gerd Knorr, Michel Dänzer, Geert Uytterhoeven
src/fbdev.c
View file @
db6514ce
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.4
4
2003/0
9
/2
4 02:43:21 dawes
Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.4
3
2003/0
4
/2
3 21:51:35 tsi
Exp $ */
/*
/*
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
...
@@ -186,7 +186,7 @@ static XF86ModuleVersionInfo FBDevVersRec =
...
@@ -186,7 +186,7 @@ static XF86ModuleVersionInfo FBDevVersRec =
MODULEVENDORSTRING
,
MODULEVENDORSTRING
,
MODINFOSTRING1
,
MODINFOSTRING1
,
MODINFOSTRING2
,
MODINFOSTRING2
,
X
ORG
_VERSION_CURRENT
,
X
F86
_VERSION_CURRENT
,
FBDEV_MAJOR_VERSION
,
FBDEV_MINOR_VERSION
,
0
,
FBDEV_MAJOR_VERSION
,
FBDEV_MINOR_VERSION
,
0
,
ABI_CLASS_VIDEODRV
,
ABI_CLASS_VIDEODRV
,
ABI_VIDEODRV_VERSION
,
ABI_VIDEODRV_VERSION
,
...
@@ -377,7 +377,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -377,7 +377,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
int
default_depth
,
fbbpp
;
int
default_depth
,
fbbpp
;
const
char
*
mod
=
NULL
,
*
s
;
const
char
*
mod
=
NULL
,
*
s
;
const
char
**
syms
=
NULL
;
const
char
**
syms
=
NULL
;
int
type
;
if
(
flags
&
PROBE_DETECT
)
return
FALSE
;
if
(
flags
&
PROBE_DETECT
)
return
FALSE
;
...
@@ -409,8 +408,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -409,8 +408,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
if
(
!
fbdevHWInit
(
pScrn
,
NULL
,
xf86FindOptionValue
(
fPtr
->
pEnt
->
device
->
options
,
"fbdev"
)))
if
(
!
fbdevHWInit
(
pScrn
,
NULL
,
xf86FindOptionValue
(
fPtr
->
pEnt
->
device
->
options
,
"fbdev"
)))
return
FALSE
;
return
FALSE
;
default_depth
=
fbdevHWGetDepth
(
pScrn
,
&
fbbpp
);
default_depth
=
fbdevHWGetDepth
(
pScrn
,
&
fbbpp
);
if
(
!
xf86SetDepthBpp
(
pScrn
,
default_depth
,
default_depth
,
fbbpp
,
if
(
!
xf86SetDepthBpp
(
pScrn
,
default_depth
,
default_depth
,
fbbpp
,
0
))
Support24bppFb
|
Support32bppFb
|
SupportConvert32to24
|
PreferConvert32to24
))
return
FALSE
;
return
FALSE
;
xf86PrintDepthBpp
(
pScrn
);
xf86PrintDepthBpp
(
pScrn
);
...
@@ -534,7 +532,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -534,7 +532,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
xf86SetDpi
(
pScrn
,
0
,
0
);
xf86SetDpi
(
pScrn
,
0
,
0
);
/* Load bpp-specific modules */
/* Load bpp-specific modules */
switch
(
(
type
=
fbdevHWGetType
(
pScrn
))
)
switch
(
fbdevHWGetType
(
pScrn
))
{
{
case
FBDEVHW_PLANES
:
case
FBDEVHW_PLANES
:
mod
=
"afb"
;
mod
=
"afb"
;
...
@@ -575,7 +573,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -575,7 +573,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
return
FALSE
;
return
FALSE
;
default:
default:
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
pScrn
->
scrnIndex
,
X_ERROR
,
"Fbdev type (%d) not supported yet."
,
type
);
"Fbdev type (%d) not supported yet."
);
return
FALSE
;
return
FALSE
;
}
}
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
...
@@ -608,7 +606,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -608,7 +606,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
VisualPtr
visual
;
VisualPtr
visual
;
int
init_picture
=
0
;
int
init_picture
=
0
;
int
ret
,
flags
,
width
,
height
;
int
ret
,
flags
,
width
,
height
;
int
type
;
TRACE_ENTER
(
"FBDevScreenInit"
);
TRACE_ENTER
(
"FBDevScreenInit"
);
...
@@ -686,7 +683,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -686,7 +683,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fPtr
->
fbstart
=
fPtr
->
fbmem
+
fPtr
->
fboff
;
fPtr
->
fbstart
=
fPtr
->
fbmem
+
fPtr
->
fboff
;
}
}
switch
(
(
type
=
fbdevHWGetType
(
pScrn
))
)
switch
(
fbdevHWGetType
(
pScrn
))
{
{
#ifdef USE_AFB
#ifdef USE_AFB
case
FBDEVHW_PLANES
:
case
FBDEVHW_PLANES
:
...
@@ -753,7 +750,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -753,7 +750,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
default:
default:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Internal error: fbdev type (%d) unsupported in"
"Internal error: fbdev type (%d) unsupported in"
" FBDevScreenInit
\n
"
,
type
);
" FBDevScreenInit
\n
"
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
...
@@ -793,8 +790,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -793,8 +790,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
FBDevDGAInit
(
pScrn
,
pScreen
);
FBDevDGAInit
(
pScrn
,
pScreen
);
else
{
else
{
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"Rotated display, disabling DGA
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"Rotated display, disabling DGA
\n
"
);
xf86DrvMsg
(
scrnIndex
,
X_INFO
,
"Enabling Driver rotation, disabling RandR
\n
"
);
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 in 24 bpp
\n
"
);
}
}
...
@@ -807,7 +803,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -807,7 +803,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
miDCInitialize
(
pScreen
,
xf86GetPointerScreenFuncs
());
miDCInitialize
(
pScreen
,
xf86GetPointerScreenFuncs
());
/* colormap */
/* colormap */
switch
(
(
type
=
fbdevHWGetType
(
pScrn
))
)
switch
(
fbdevHWGetType
(
pScrn
))
{
{
/* 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
...
@@ -837,8 +833,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -837,8 +833,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
return
FALSE
;
return
FALSE
;
default:
default:
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
xf86DrvMsg
(
scrnIndex
,
X_ERROR
,
"Internal error: invalid fbdev type (%d) in FBDevScreenInit
\n
"
,
"Internal error: invalid fbdev type (%d) 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