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
48e31aae
Commit
48e31aae
authored
Nov 25, 2003
by
Kaleb Keithley
Browse files
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folks
parent
3a00d913
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fbdev.c
View file @
48e31aae
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.4
2
200
2/10/10 01:35
:2
0
dawes Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.4
4
200
3/09/24 02:43
:2
1
dawes Exp $ */
/*
/*
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
...
@@ -29,9 +29,7 @@
...
@@ -29,9 +29,7 @@
#include "fbdevhw.h"
#include "fbdevhw.h"
#ifdef XvExtension
#include "xf86xv.h"
#include "xf86xv.h"
#endif
#define DEBUG 0
#define DEBUG 0
...
@@ -379,6 +377,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -379,6 +377,7 @@ 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
;
...
@@ -534,7 +533,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -534,7 +533,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
xf86SetDpi
(
pScrn
,
0
,
0
);
xf86SetDpi
(
pScrn
,
0
,
0
);
/* Load bpp-specific modules */
/* Load bpp-specific modules */
switch
(
fbdevHWGetType
(
pScrn
))
switch
(
(
type
=
fbdevHWGetType
(
pScrn
))
)
{
{
case
FBDEVHW_PLANES
:
case
FBDEVHW_PLANES
:
mod
=
"afb"
;
mod
=
"afb"
;
...
@@ -575,7 +574,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
...
@@ -575,7 +574,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."
);
"Fbdev type (%d) not supported yet."
,
type
);
return
FALSE
;
return
FALSE
;
}
}
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
if
(
mod
&&
xf86LoadSubModule
(
pScrn
,
mod
)
==
NULL
)
{
...
@@ -608,6 +607,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -608,6 +607,7 @@ 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"
);
...
@@ -685,7 +685,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -685,7 +685,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fPtr
->
fbstart
=
fPtr
->
fbmem
+
fPtr
->
fboff
;
fPtr
->
fbstart
=
fPtr
->
fbmem
+
fPtr
->
fboff
;
}
}
switch
(
fbdevHWGetType
(
pScrn
))
switch
(
(
type
=
fbdevHWGetType
(
pScrn
))
)
{
{
#ifdef USE_AFB
#ifdef USE_AFB
case
FBDEVHW_PLANES
:
case
FBDEVHW_PLANES
:
...
@@ -752,7 +752,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -752,7 +752,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
"
);
" FBDevScreenInit
\n
"
,
type
);
ret
=
FALSE
;
ret
=
FALSE
;
break
;
break
;
}
}
...
@@ -805,7 +805,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -805,7 +805,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
miDCInitialize
(
pScreen
,
xf86GetPointerScreenFuncs
());
miDCInitialize
(
pScreen
,
xf86GetPointerScreenFuncs
());
/* colormap */
/* colormap */
switch
(
fbdevHWGetType
(
pScrn
))
switch
(
(
type
=
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
...
@@ -835,7 +835,8 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -835,7 +835,8 @@ 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
;
...
@@ -850,7 +851,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -850,7 +851,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
fPtr
->
CloseScreen
=
pScreen
->
CloseScreen
;
fPtr
->
CloseScreen
=
pScreen
->
CloseScreen
;
pScreen
->
CloseScreen
=
FBDevCloseScreen
;
pScreen
->
CloseScreen
=
FBDevCloseScreen
;
#ifdef XvExtension
{
{
XF86VideoAdaptorPtr
*
ptr
;
XF86VideoAdaptorPtr
*
ptr
;
...
@@ -859,7 +859,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
...
@@ -859,7 +859,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
xf86XVScreenInit
(
pScreen
,
ptr
,
n
);
xf86XVScreenInit
(
pScreen
,
ptr
,
n
);
}
}
}
}
#endif
TRACE_EXIT
(
"FBDevScreenInit"
);
TRACE_EXIT
(
"FBDevScreenInit"
);
...
...
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