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
de7519da
Commit
de7519da
authored
Nov 06, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixes!!
parent
ae2fad86
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
35 deletions
+33
-35
drivers/video/console/Kconfig
drivers/video/console/Kconfig
+1
-1
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+5
-3
drivers/video/fbgen.c
drivers/video/fbgen.c
+0
-26
drivers/video/fbmem.c
drivers/video/fbmem.c
+27
-5
No files found.
drivers/video/console/Kconfig
View file @
de7519da
...
@@ -228,7 +228,7 @@ config FONT_8x8
...
@@ -228,7 +228,7 @@ config FONT_8x8
config FONT_8x16
config FONT_8x16
bool "VGA 8x16 font" if FBCON_FONTS
bool "VGA 8x16 font" if FBCON_FONTS
depends on FB
&&
SGI_NEWPORT_CONSOLE=y
depends on FB
||
SGI_NEWPORT_CONSOLE=y
default y if !SPARC32 && !SPARC64 && !FBCON_FONTS
default y if !SPARC32 && !SPARC64 && !FBCON_FONTS
help
help
This is the "high resolution" font for the VGA frame buffer (the one
This is the "high resolution" font for the VGA frame buffer (the one
...
...
drivers/video/console/fbcon.c
View file @
de7519da
...
@@ -232,9 +232,9 @@ static void fbcon_vbl_detect(int irq, void *dummy, struct pt_regs *fp)
...
@@ -232,9 +232,9 @@ static void fbcon_vbl_detect(int irq, void *dummy, struct pt_regs *fp)
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
);
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
);
static
struct
timer_list
cursor_timer
=
{
function:
cursor_timer_handler
static
struct
timer_list
cursor_timer
=
}
;
TIMER_INITIALIZER
(
cursor_timer_handler
,
0
,
0
)
;
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
)
static
void
cursor_timer_handler
(
unsigned
long
dev_addr
)
{
{
...
@@ -1534,6 +1534,8 @@ static int fbcon_switch(struct vc_data *vc)
...
@@ -1534,6 +1534,8 @@ static int fbcon_switch(struct vc_data *vc)
scrollback_max
=
0
;
scrollback_max
=
0
;
scrollback_current
=
0
;
scrollback_current
=
0
;
update_var
(
unit
,
info
);
if
(
p
->
dispsw
->
clear_margins
&&
vt_cons
[
unit
]
->
vc_mode
==
KD_TEXT
)
if
(
p
->
dispsw
->
clear_margins
&&
vt_cons
[
unit
]
->
vc_mode
==
KD_TEXT
)
p
->
dispsw
->
clear_margins
(
vc
,
p
,
0
);
p
->
dispsw
->
clear_margins
(
vc
,
p
,
0
);
if
(
logo_shown
==
-
2
)
{
if
(
logo_shown
==
-
2
)
{
...
...
drivers/video/fbgen.c
View file @
de7519da
...
@@ -61,31 +61,6 @@ int cfb_cursor(struct fb_info *info, struct fbcursor *cursor)
...
@@ -61,31 +61,6 @@ int cfb_cursor(struct fb_info *info, struct fbcursor *cursor)
return
0
;
return
0
;
}
}
int
fb_pan_display
(
struct
fb_var_screeninfo
*
var
,
struct
fb_info
*
info
)
{
int
xoffset
=
var
->
xoffset
;
int
yoffset
=
var
->
yoffset
;
int
err
;
if
(
xoffset
<
0
||
yoffset
<
0
||
xoffset
+
info
->
var
.
xres
>
info
->
var
.
xres_virtual
||
yoffset
+
info
->
var
.
yres
>
info
->
var
.
yres_virtual
)
return
-
EINVAL
;
if
(
info
->
fbops
->
fb_pan_display
)
{
if
((
err
=
info
->
fbops
->
fb_pan_display
(
var
,
info
)))
return
err
;
else
return
-
EINVAL
;
}
info
->
var
.
xoffset
=
var
->
xoffset
;
info
->
var
.
yoffset
=
var
->
yoffset
;
if
(
var
->
vmode
&
FB_VMODE_YWRAP
)
info
->
var
.
vmode
|=
FB_VMODE_YWRAP
;
else
info
->
var
.
vmode
&=
~
FB_VMODE_YWRAP
;
return
0
;
}
int
fb_blank
(
int
blank
,
struct
fb_info
*
info
)
int
fb_blank
(
int
blank
,
struct
fb_info
*
info
)
{
{
struct
fb_cmap
cmap
;
struct
fb_cmap
cmap
;
...
@@ -116,7 +91,6 @@ int fb_blank(int blank, struct fb_info *info)
...
@@ -116,7 +91,6 @@ int fb_blank(int blank, struct fb_info *info)
/* generic frame buffer operations */
/* generic frame buffer operations */
EXPORT_SYMBOL
(
cfb_cursor
);
EXPORT_SYMBOL
(
cfb_cursor
);
EXPORT_SYMBOL
(
fb_pan_display
);
EXPORT_SYMBOL
(
fb_blank
);
EXPORT_SYMBOL
(
fb_blank
);
MODULE_LICENSE
(
"GPL"
);
MODULE_LICENSE
(
"GPL"
);
drivers/video/fbmem.c
View file @
de7519da
...
@@ -464,6 +464,31 @@ static void try_to_load(int fb)
...
@@ -464,6 +464,31 @@ static void try_to_load(int fb)
}
}
#endif
/* CONFIG_KMOD */
#endif
/* CONFIG_KMOD */
int
fb_pan_display
(
struct
fb_var_screeninfo
*
var
,
struct
fb_info
*
info
)
{
int
xoffset
=
var
->
xoffset
;
int
yoffset
=
var
->
yoffset
;
int
err
;
if
(
xoffset
<
0
||
yoffset
<
0
||
xoffset
+
info
->
var
.
xres
>
info
->
var
.
xres_virtual
||
yoffset
+
info
->
var
.
yres
>
info
->
var
.
yres_virtual
)
return
-
EINVAL
;
if
(
info
->
fbops
->
fb_pan_display
)
{
if
((
err
=
info
->
fbops
->
fb_pan_display
(
var
,
info
)))
return
err
;
else
return
-
EINVAL
;
}
info
->
var
.
xoffset
=
var
->
xoffset
;
info
->
var
.
yoffset
=
var
->
yoffset
;
if
(
var
->
vmode
&
FB_VMODE_YWRAP
)
info
->
var
.
vmode
|=
FB_VMODE_YWRAP
;
else
info
->
var
.
vmode
&=
~
FB_VMODE_YWRAP
;
return
0
;
}
int
fb_set_var
(
struct
fb_var_screeninfo
*
var
,
struct
fb_info
*
info
)
int
fb_set_var
(
struct
fb_var_screeninfo
*
var
,
struct
fb_info
*
info
)
{
{
int
err
;
int
err
;
...
@@ -483,8 +508,7 @@ int fb_set_var(struct fb_var_screeninfo *var, struct fb_info *info)
...
@@ -483,8 +508,7 @@ int fb_set_var(struct fb_var_screeninfo *var, struct fb_info *info)
if
(
info
->
fbops
->
fb_set_par
)
if
(
info
->
fbops
->
fb_set_par
)
info
->
fbops
->
fb_set_par
(
info
);
info
->
fbops
->
fb_set_par
(
info
);
if
(
info
->
fbops
->
fb_pan_display
)
fb_pan_display
(
&
info
->
var
,
info
);
info
->
fbops
->
fb_pan_display
(
&
info
->
var
,
info
);
fb_set_cmap
(
&
info
->
cmap
,
1
,
info
);
fb_set_cmap
(
&
info
->
cmap
,
1
,
info
);
}
}
...
@@ -534,9 +558,7 @@ fb_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -534,9 +558,7 @@ fb_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
case
FBIOPAN_DISPLAY
:
case
FBIOPAN_DISPLAY
:
if
(
copy_from_user
(
&
var
,
(
void
*
)
arg
,
sizeof
(
var
)))
if
(
copy_from_user
(
&
var
,
(
void
*
)
arg
,
sizeof
(
var
)))
return
-
EFAULT
;
return
-
EFAULT
;
if
(
fb
->
fb_pan_display
==
NULL
)
if
((
i
=
fb_pan_display
(
&
var
,
info
)))
return
(
var
.
xoffset
||
var
.
yoffset
)
?
-
EINVAL
:
0
;
if
((
i
=
fb
->
fb_pan_display
(
&
var
,
info
)))
return
i
;
return
i
;
if
(
copy_to_user
((
void
*
)
arg
,
&
var
,
sizeof
(
var
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
var
,
sizeof
(
var
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
...
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