Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
00df6d0f
Commit
00df6d0f
authored
Aug 14, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Petr fix to make old api driver to work.
parent
808563e9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
39 deletions
+40
-39
drivers/video/fbcon-accel.c
drivers/video/fbcon-accel.c
+3
-2
drivers/video/fbcon-cfb16.c
drivers/video/fbcon-cfb16.c
+1
-1
drivers/video/fbcon-cfb32.c
drivers/video/fbcon-cfb32.c
+1
-1
drivers/video/fbcon-cfb4.c
drivers/video/fbcon-cfb4.c
+1
-1
drivers/video/fbcon-cfb8.c
drivers/video/fbcon-cfb8.c
+1
-1
drivers/video/fbcon-vga-planes.c
drivers/video/fbcon-vga-planes.c
+22
-22
drivers/video/fbcon.c
drivers/video/fbcon.c
+11
-11
No files found.
drivers/video/fbcon-accel.c
View file @
00df6d0f
...
...
@@ -82,9 +82,10 @@ void fbcon_accel_putcs(struct vc_data *vc, struct display *p,
unsigned
short
charmask
=
p
->
charmask
;
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
struct
fb_image
image
;
u16
c
=
scr_readw
(
s
);
image
.
fg_color
=
attr_fgcol
(
p
,
*
s
);
image
.
bg_color
=
attr_bgcol
(
p
,
*
s
);
image
.
fg_color
=
attr_fgcol
(
p
,
c
);
image
.
bg_color
=
attr_bgcol
(
p
,
c
);
image
.
dx
=
xx
*
fontwidth
(
p
);
image
.
dy
=
yy
*
fontheight
(
p
);
image
.
width
=
fontwidth
(
p
);
...
...
drivers/video/fbcon-cfb16.c
View file @
00df6d0f
...
...
@@ -36,7 +36,7 @@ static u32 tab_cfb16[] = {
void
fbcon_cfb16_setup
(
struct
display
*
p
)
{
p
->
next_line
=
p
->
line_length
?
p
->
line_length
:
p
->
var
.
xres_virtual
<<
1
;
p
->
next_line
=
p
->
fb_info
->
fix
.
line_length
?
p
->
fb_info
->
fix
.
line_length
:
p
->
var
.
xres_virtual
<<
1
;
p
->
next_plane
=
0
;
}
...
...
drivers/video/fbcon-cfb32.c
View file @
00df6d0f
...
...
@@ -25,7 +25,7 @@
void
fbcon_cfb32_setup
(
struct
display
*
p
)
{
p
->
next_line
=
p
->
line_length
?
p
->
line_length
:
p
->
var
.
xres_virtual
<<
2
;
p
->
next_line
=
p
->
fb_info
->
fix
.
line_length
?
p
->
fb_info
->
fix
.
line_length
:
p
->
var
.
xres_virtual
<<
2
;
p
->
next_plane
=
0
;
}
...
...
drivers/video/fbcon-cfb4.c
View file @
00df6d0f
...
...
@@ -50,7 +50,7 @@ static u16 nibbletab_cfb4[] = {
void
fbcon_cfb4_setup
(
struct
display
*
p
)
{
p
->
next_line
=
p
->
line_length
?
p
->
line_length
:
p
->
var
.
xres_virtual
>>
1
;
p
->
next_line
=
p
->
fb_info
->
fix
.
line_length
?
p
->
fb_info
->
fix
.
line_length
:
p
->
var
.
xres_virtual
>>
1
;
p
->
next_plane
=
0
;
}
...
...
drivers/video/fbcon-cfb8.c
View file @
00df6d0f
...
...
@@ -41,7 +41,7 @@ static u32 nibbletab_cfb8[] = {
void
fbcon_cfb8_setup
(
struct
display
*
p
)
{
p
->
next_line
=
p
->
line_length
?
p
->
line_length
:
p
->
var
.
xres_virtual
;
p
->
next_line
=
p
->
fb_info
->
fix
.
line_length
?
p
->
fb_info
->
fix
.
line_length
:
p
->
var
.
xres_virtual
;
p
->
next_plane
=
0
;
}
...
...
drivers/video/fbcon-vga-planes.c
View file @
00df6d0f
...
...
@@ -119,9 +119,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
height
*=
fontheight
(
p
);
if
(
dy
<
sy
||
(
dy
==
sy
&&
dx
<
sx
))
{
line_ofs
=
p
->
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
dy
*
p
->
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
sy
*
p
->
line_length
;
line_ofs
=
p
->
fb_info
.
fix
.
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
dy
*
p
->
fb_info
->
fix
.
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
sy
*
p
->
fb_info
->
fix
.
line_length
;
while
(
height
--
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
readb
(
src
);
...
...
@@ -133,9 +133,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
dest
+=
line_ofs
;
}
}
else
{
line_ofs
=
p
->
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
width
+
(
dy
+
height
-
1
)
*
p
->
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
width
+
(
sy
+
height
-
1
)
*
p
->
line_length
;
line_ofs
=
p
->
fb_info
->
fix
.
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
width
+
(
dy
+
height
-
1
)
*
p
->
fb_info
->
fix
.
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
width
+
(
sy
+
height
-
1
)
*
p
->
fb_info
->
fix
.
line_length
;
while
(
height
--
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
dest
--
;
...
...
@@ -152,7 +152,7 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
void
fbcon_vga_planes_clear
(
struct
vc_data
*
conp
,
struct
display
*
p
,
int
sy
,
int
sx
,
int
height
,
int
width
)
{
int
line_ofs
=
p
->
line_length
-
width
;
int
line_ofs
=
p
->
fb_info
->
fix
.
line_length
-
width
;
char
*
where
;
int
x
;
...
...
@@ -167,7 +167,7 @@ void fbcon_vga_planes_clear(struct vc_data *conp, struct display *p, int sy, int
sy
*=
fontheight
(
p
);
height
*=
fontheight
(
p
);
where
=
p
->
fb_info
->
screen_base
+
sx
+
sy
*
p
->
line_length
;
where
=
p
->
fb_info
->
screen_base
+
sx
+
sy
*
p
->
fb_info
->
fix
.
line_length
;
while
(
height
--
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
writeb
(
0
,
where
);
...
...
@@ -184,7 +184,7 @@ void fbcon_ega_planes_putc(struct vc_data *conp, struct display *p, int c, int y
int
y
;
u8
*
cdat
=
p
->
fontdata
+
(
c
&
p
->
charmask
)
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
line_length
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
setmode
(
0
);
setop
(
0
);
...
...
@@ -193,13 +193,13 @@ void fbcon_ega_planes_putc(struct vc_data *conp, struct display *p, int c, int y
selectmask
();
setmask
(
0xff
);
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
line_length
)
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
rmw
(
where
);
where
-=
p
->
line_length
*
y
;
where
-=
p
->
fb_info
->
fix
.
line_length
*
y
;
setcolor
(
fg
);
selectmask
();
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
line_length
)
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
if
(
cdat
[
y
])
{
setmask
(
cdat
[
y
]);
rmw
(
where
);
...
...
@@ -213,7 +213,7 @@ void fbcon_vga_planes_putc(struct vc_data *conp, struct display *p, int c, int y
int
y
;
u8
*
cdat
=
p
->
fontdata
+
(
c
&
p
->
charmask
)
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
line_length
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
setmode
(
2
);
setop
(
0
);
...
...
@@ -227,7 +227,7 @@ void fbcon_vga_planes_putc(struct vc_data *conp, struct display *p, int c, int y
readb
(
where
);
/* fill latches */
setmode
(
3
);
wmb
();
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
line_length
)
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
writeb
(
cdat
[
y
],
where
);
wmb
();
}
...
...
@@ -248,7 +248,7 @@ void fbcon_ega_planes_putcs(struct vc_data *conp, struct display *p, const unsig
selectmask
();
setmask
(
0xff
);
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
line_length
*
fontheight
(
p
);
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
writeb
(
bg
,
where
);
rmb
();
readb
(
where
);
/* fill latches */
...
...
@@ -263,9 +263,9 @@ void fbcon_ega_planes_putcs(struct vc_data *conp, struct display *p, const unsig
outb
(
*
cdat
++
,
GRAPHICS_DATA_REG
);
wmb
();
writeb
(
fg
,
where
);
where
+=
p
->
line_length
;
where
+=
p
->
fb_info
->
fix
.
line_length
;
}
where
+=
1
-
p
->
line_length
*
fontheight
(
p
);
where
+=
1
-
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
}
wmb
();
...
...
@@ -289,7 +289,7 @@ void fbcon_vga_planes_putcs(struct vc_data *conp, struct display *p, const unsig
selectmask
();
setmask
(
0xff
);
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
line_length
*
fontheight
(
p
);
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
writeb
(
bg
,
where
);
rmb
();
readb
(
where
);
/* fill latches */
...
...
@@ -302,9 +302,9 @@ void fbcon_vga_planes_putcs(struct vc_data *conp, struct display *p, const unsig
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
cdat
++
)
{
writeb
(
*
cdat
,
where
);
where
+=
p
->
line_length
;
where
+=
p
->
fb_info
->
fix
.
line_length
;
}
where
+=
1
-
p
->
line_length
*
fontheight
(
p
);
where
+=
1
-
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
}
wmb
();
...
...
@@ -312,7 +312,7 @@ void fbcon_vga_planes_putcs(struct vc_data *conp, struct display *p, const unsig
void
fbcon_vga_planes_revc
(
struct
display
*
p
,
int
xx
,
int
yy
)
{
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
line_length
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
int
y
;
setmode
(
0
);
...
...
@@ -324,7 +324,7 @@ void fbcon_vga_planes_revc(struct display *p, int xx, int yy)
setmask
(
0xff
);
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
)
{
rmw
(
where
);
where
+=
p
->
line_length
;
where
+=
p
->
fb_info
->
fix
.
line_length
;
}
}
...
...
drivers/video/fbcon.c
View file @
00df6d0f
...
...
@@ -2306,7 +2306,7 @@ static int __init fbcon_show_logo( void )
}
#endif
#if defined(CONFIG_FBCON_CFB4)
if
(
depth
==
4
&&
p
->
type
==
FB_TYPE_PACKED_PIXELS
)
{
if
(
depth
==
4
&&
info
->
fix
.
type
==
FB_TYPE_PACKED_PIXELS
)
{
src
=
logo
;
for
(
y1
=
0
;
y1
<
LOGO_H
;
y1
++
)
{
dst
=
fb
+
y1
*
line
+
x
/
2
;
...
...
@@ -2320,7 +2320,7 @@ static int __init fbcon_show_logo( void )
}
#endif
#if defined(CONFIG_FBCON_CFB8) || defined(CONFIG_FB_SBUS)
if
(
depth
==
8
&&
p
->
type
==
FB_TYPE_PACKED_PIXELS
)
{
if
(
depth
==
8
&&
info
->
fix
.
type
==
FB_TYPE_PACKED_PIXELS
)
{
/* depth 8 or more, packed, with color registers */
src
=
logo
;
...
...
@@ -2335,8 +2335,8 @@ static int __init fbcon_show_logo( void )
#if defined(CONFIG_FBCON_AFB) || defined(CONFIG_FBCON_ILBM) || \
defined(CONFIG_FBCON_IPLAN2P2) || defined(CONFIG_FBCON_IPLAN2P4) || \
defined(CONFIG_FBCON_IPLAN2P8)
if
(
depth
>=
2
&&
(
p
->
type
==
FB_TYPE_PLANES
||
p
->
type
==
FB_TYPE_INTERLEAVED_PLANES
))
{
if
(
depth
>=
2
&&
(
info
->
fix
.
type
==
FB_TYPE_PLANES
||
info
->
fix
.
type
==
FB_TYPE_INTERLEAVED_PLANES
))
{
/* planes (normal or interleaved), with color registers */
int
bit
;
unsigned
char
val
,
mask
;
...
...
@@ -2344,7 +2344,7 @@ static int __init fbcon_show_logo( void )
#if defined(CONFIG_FBCON_IPLAN2P2) || defined(CONFIG_FBCON_IPLAN2P4) || \
defined(CONFIG_FBCON_IPLAN2P8)
int
line_length
=
p
->
line_length
;
int
line_length
=
info
->
fix
.
line_length
;
/* for support of Atari interleaved planes */
#define MAP_X(x) (line_length ? (x) : ((x) & ~1)*depth + ((x) & 1))
...
...
@@ -2388,15 +2388,15 @@ static int __init fbcon_show_logo( void )
#if defined(CONFIG_FBCON_MFB) || defined(CONFIG_FBCON_AFB) || \
defined(CONFIG_FBCON_ILBM) || defined(CONFIG_FBCON_HGA)
if
(
depth
==
1
&&
(
p
->
type
==
FB_TYPE_PACKED_PIXELS
||
p
->
type
==
FB_TYPE_PLANES
||
p
->
type
==
FB_TYPE_INTERLEAVED_PLANES
))
{
if
(
depth
==
1
&&
(
info
->
fix
.
type
==
FB_TYPE_PACKED_PIXELS
||
info
->
fix
.
type
==
FB_TYPE_PLANES
||
info
->
fix
.
type
==
FB_TYPE_INTERLEAVED_PLANES
))
{
/* monochrome */
unsigned
char
inverse
=
p
->
inverse
||
p
->
visual
==
FB_VISUAL_MONO01
unsigned
char
inverse
=
p
->
inverse
||
info
->
fix
.
visual
==
FB_VISUAL_MONO01
?
0x00
:
0xff
;
int
is_hga
=
!
strncmp
(
p
->
fb_
info
->
modename
,
"HGA"
,
3
);
int
is_hga
=
!
strncmp
(
info
->
modename
,
"HGA"
,
3
);
/* can't use simply memcpy because need to apply inverse */
for
(
y1
=
0
;
y1
<
LOGO_H
;
y1
++
)
{
src
=
logo
+
y1
*
LOGO_LINE
;
...
...
@@ -2411,7 +2411,7 @@ static int __init fbcon_show_logo( void )
}
#endif
#if defined(CONFIG_FBCON_VGA_PLANES)
if
(
depth
==
4
&&
p
->
type
==
FB_TYPE_VGA_PLANES
)
{
if
(
depth
==
4
&&
info
->
fix
.
type
==
FB_TYPE_VGA_PLANES
)
{
outb_p
(
1
,
0x3ce
);
outb_p
(
0xf
,
0x3cf
);
outb_p
(
3
,
0x3ce
);
outb_p
(
0
,
0x3cf
);
outb_p
(
5
,
0x3ce
);
outb_p
(
0
,
0x3cf
);
...
...
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