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
nexedi
linux
Commits
77a3013c
Commit
77a3013c
authored
Nov 17, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start of intergartion of fbcon-accel into the core fbcon code.
parent
f752fad3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
77 deletions
+34
-77
drivers/video/console/fbcon-accel.c
drivers/video/console/fbcon-accel.c
+0
-44
drivers/video/console/fbcon-accel.h
drivers/video/console/fbcon-accel.h
+0
-1
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+34
-28
drivers/video/console/fbcon.h
drivers/video/console/fbcon.h
+0
-4
No files found.
drivers/video/console/fbcon-accel.c
View file @
77a3013c
...
...
@@ -17,9 +17,6 @@
#include "fbcon.h"
#include "fbcon-accel.h"
void
fbcon_accel_setup
(
struct
display
*
p
)
{
}
void
fbcon_accel_bmove
(
struct
display
*
p
,
int
sy
,
int
sx
,
int
dy
,
int
dx
,
int
height
,
int
width
)
...
...
@@ -53,26 +50,6 @@ void fbcon_accel_clear(struct vc_data *vc, struct display *p, int sy,
info
->
fbops
->
fb_fillrect
(
info
,
&
region
);
}
void
fbcon_accel_putc
(
struct
vc_data
*
vc
,
struct
display
*
p
,
int
c
,
int
yy
,
int
xx
)
{
struct
fb_info
*
info
=
p
->
fb_info
;
unsigned
short
charmask
=
p
->
charmask
;
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
struct
fb_image
image
;
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
);
image
.
height
=
fontheight
(
p
);
image
.
depth
=
1
;
image
.
data
=
p
->
fontdata
+
(
c
&
charmask
)
*
fontheight
(
p
)
*
width
;
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
}
void
fbcon_accel_putcs
(
struct
vc_data
*
vc
,
struct
display
*
p
,
const
unsigned
short
*
s
,
int
count
,
int
yy
,
int
xx
)
{
...
...
@@ -98,21 +75,6 @@ void fbcon_accel_putcs(struct vc_data *vc, struct display *p,
}
}
void
fbcon_accel_revc
(
struct
display
*
p
,
int
xx
,
int
yy
)
{
struct
fb_info
*
info
=
p
->
fb_info
;
struct
fb_fillrect
region
;
region
.
color
=
attr_fgcol_ec
(
p
,
p
->
conp
);
region
.
dx
=
xx
*
fontwidth
(
p
);
region
.
dy
=
yy
*
fontheight
(
p
);
region
.
width
=
fontwidth
(
p
);
region
.
height
=
fontheight
(
p
);
region
.
rop
=
ROP_XOR
;
info
->
fbops
->
fb_fillrect
(
info
,
&
region
);
}
void
fbcon_accel_clear_margins
(
struct
vc_data
*
vc
,
struct
display
*
p
,
int
bottom_only
)
{
...
...
@@ -249,12 +211,9 @@ void fbcon_accel_cursor(struct display *p, int flags, int xx, int yy)
*/
struct
display_switch
fbcon_accel
=
{
.
setup
=
fbcon_accel_setup
,
.
bmove
=
fbcon_accel_bmove
,
.
clear
=
fbcon_accel_clear
,
.
putc
=
fbcon_accel_putc
,
.
putcs
=
fbcon_accel_putcs
,
.
revc
=
fbcon_accel_revc
,
.
clear_margins
=
fbcon_accel_clear_margins
,
.
cursor
=
fbcon_accel_cursor
,
.
fontwidthmask
=
FONTWIDTHRANGE
(
1
,
16
)
...
...
@@ -278,10 +237,7 @@ void cleanup_module(void)
*/
EXPORT_SYMBOL
(
fbcon_accel
);
EXPORT_SYMBOL
(
fbcon_accel_setup
);
EXPORT_SYMBOL
(
fbcon_accel_bmove
);
EXPORT_SYMBOL
(
fbcon_accel_clear
);
EXPORT_SYMBOL
(
fbcon_accel_putc
);
EXPORT_SYMBOL
(
fbcon_accel_putcs
);
EXPORT_SYMBOL
(
fbcon_accel_revc
);
EXPORT_SYMBOL
(
fbcon_accel_clear_margins
);
drivers/video/console/fbcon-accel.h
View file @
77a3013c
...
...
@@ -18,7 +18,6 @@
#endif
extern
struct
display_switch
fbcon_accel
;
extern
void
fbcon_accel_setup
(
struct
display
*
p
);
extern
void
fbcon_accel_bmove
(
struct
display
*
p
,
int
sy
,
int
sx
,
int
dy
,
int
dx
,
int
height
,
int
width
);
extern
void
fbcon_accel_clear
(
struct
vc_data
*
vc
,
struct
display
*
p
,
int
sy
,
...
...
drivers/video/console/fbcon.c
View file @
77a3013c
...
...
@@ -597,7 +597,6 @@ static int fbcon_changevar(int con)
"fbcon_set_display: type %d (aux %d, depth %d) not "
"supported
\n
"
,
info
->
fix
.
type
,
info
->
fix
.
type_aux
,
info
->
var
.
bits_per_pixel
);
p
->
dispsw
->
setup
(
p
);
if
(
vc
->
vc_cols
!=
nr_cols
||
vc
->
vc_rows
!=
nr_rows
)
vc_resize
(
con
,
nr_cols
,
nr_rows
);
...
...
@@ -827,7 +826,6 @@ static void fbcon_set_display(int con, int init, int logo)
"fbcon_set_display: type %d (aux %d, depth %d) not "
"supported
\n
"
,
info
->
fix
.
type
,
info
->
fix
.
type_aux
,
info
->
var
.
bits_per_pixel
);
p
->
dispsw
->
setup
(
p
);
if
(
!
init
)
{
if
(
vc
->
vc_cols
!=
nr_cols
||
vc
->
vc_rows
!=
nr_rows
)
...
...
@@ -945,14 +943,17 @@ static void fbcon_clear(struct vc_data *vc, int sy, int sx, int height,
static
void
fbcon_putc
(
struct
vc_data
*
vc
,
int
c
,
int
ypos
,
int
xpos
)
{
int
unit
=
vc
->
vc_num
;
struct
display
*
p
=
&
fb_display
[
unit
];
struct
display
*
p
=
&
fb_display
[
vc
->
vc_num
];
struct
fb_info
*
info
=
p
->
fb_info
;
unsigned
short
charmask
=
p
->
charmask
;
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
struct
fb_image
image
;
int
redraw_cursor
=
0
;
if
(
!
p
->
can_soft_blank
&&
console_blanked
)
return
;
if
(
vt_cons
[
unit
]
->
vc_mode
!=
KD_TEXT
)
if
(
vt_cons
[
vc
->
vc_num
]
->
vc_mode
!=
KD_TEXT
)
return
;
if
((
p
->
cursor_x
==
xpos
)
&&
(
p
->
cursor_y
==
ypos
))
{
...
...
@@ -960,7 +961,16 @@ static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos)
redraw_cursor
=
1
;
}
p
->
dispsw
->
putc
(
vc
,
p
,
c
,
real_y
(
p
,
ypos
),
xpos
);
image
.
fg_color
=
attr_fgcol
(
p
,
c
);
image
.
bg_color
=
attr_bgcol
(
p
,
c
);
image
.
dx
=
xpos
*
fontwidth
(
p
);
image
.
dy
=
real_y
(
p
,
ypos
)
*
fontheight
(
p
);
image
.
width
=
fontwidth
(
p
);
image
.
height
=
fontheight
(
p
);
image
.
depth
=
1
;
image
.
data
=
p
->
fontdata
+
(
c
&
charmask
)
*
fontheight
(
p
)
*
width
;
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
if
(
redraw_cursor
)
vbl_cursor_cnt
=
CURSOR_DRAW_DELAY
;
...
...
@@ -2636,15 +2646,11 @@ static void fbcon_dummy_op(void)
#define DUMMY (void *)fbcon_dummy_op
struct
display_switch
fbcon_dummy
=
{
.
setup
=
DUMMY
,
.
bmove
=
DUMMY
,
.
clear
=
DUMMY
,
.
putc
=
DUMMY
,
.
putcs
=
DUMMY
,
.
revc
=
DUMMY
,
};
/*
* Visible symbols for modules
*/
...
...
drivers/video/console/fbcon.h
View file @
77a3013c
...
...
@@ -25,17 +25,13 @@ struct display;
*/
struct
display_switch
{
void
(
*
setup
)(
struct
display
*
p
);
void
(
*
bmove
)(
struct
display
*
p
,
int
sy
,
int
sx
,
int
dy
,
int
dx
,
int
height
,
int
width
);
/* for clear, conp may be NULL, which means use a blanking (black) color */
void
(
*
clear
)(
struct
vc_data
*
conp
,
struct
display
*
p
,
int
sy
,
int
sx
,
int
height
,
int
width
);
void
(
*
putc
)(
struct
vc_data
*
conp
,
struct
display
*
p
,
int
c
,
int
yy
,
int
xx
);
void
(
*
putcs
)(
struct
vc_data
*
conp
,
struct
display
*
p
,
const
unsigned
short
*
s
,
int
count
,
int
yy
,
int
xx
);
void
(
*
revc
)(
struct
display
*
p
,
int
xx
,
int
yy
);
void
(
*
cursor
)(
struct
display
*
p
,
int
flags
,
int
xx
,
int
yy
);
int
(
*
set_font
)(
struct
display
*
p
,
int
width
,
int
height
);
void
(
*
clear_margins
)(
struct
vc_data
*
conp
,
struct
display
*
p
,
...
...
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