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
ece1c8ef
Commit
ece1c8ef
authored
Nov 26, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C99 fixes. Framebuffer console fix.
parent
0dc1531b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
80 deletions
+82
-80
drivers/video/console/fbcon.c
drivers/video/console/fbcon.c
+4
-1
drivers/video/g364fb.c
drivers/video/g364fb.c
+21
-21
drivers/video/maxinefb.c
drivers/video/maxinefb.c
+18
-15
drivers/video/pmag-ba-fb.c
drivers/video/pmag-ba-fb.c
+21
-23
drivers/video/pmagb-b-fb.c
drivers/video/pmagb-b-fb.c
+18
-20
No files found.
drivers/video/console/fbcon.c
View file @
ece1c8ef
...
...
@@ -681,7 +681,6 @@ static void fbcon_deinit(struct vc_data *vc)
p
->
conp
=
0
;
}
#define fontwidthvalid(p,w) ((p)->fontwidthmask & FONTWIDTH(w))
static
int
fbcon_changevar
(
int
con
)
...
...
@@ -734,12 +733,14 @@ static int fbcon_changevar(int con)
p
->
fontdata
=
font
->
data
;
}
#ifdef FBCON_FONTWIDTH8_ONLY
if
(
!
fontwidthvalid
(
p
,
vc
->
vc_font
.
width
))
{
/* ++Geert: changed from panic() to `correct and continue' */
printk
(
KERN_ERR
"fbcon_set_display: No support for fontwidth %d
\n
"
,
vc
->
vc_font
.
width
);
}
#endif
updatescrollmode
(
p
,
vc
);
old_cols
=
vc
->
vc_cols
;
...
...
@@ -878,12 +879,14 @@ static void fbcon_set_display(int con, int init, int logo)
p
->
fontdata
=
font
->
data
;
}
#ifdef FBCON_FONTWIDTH8_ONLY
if
(
!
fontwidthvalid
(
p
,
vc
->
vc_font
.
width
))
{
/* ++Geert: changed from panic() to `correct and continue' */
printk
(
KERN_ERR
"fbcon_set_display: No support for fontwidth %d
\n
"
,
vc
->
vc_font
.
width
);
}
#endif
updatescrollmode
(
p
,
vc
);
old_cols
=
vc
->
vc_cols
;
...
...
drivers/video/g364fb.c
View file @
ece1c8ef
...
...
@@ -84,21 +84,21 @@ static struct fb_fix_screeninfo fb_fix __initdata = {
};
static
struct
fb_var_screeninfo
fb_var
__initdata
=
{
.
bits_per_pixel
=
8
,
.
bits_per_pixel
=
8
,
.
red
=
{
0
,
8
,
0
},
green:
{
0
,
8
,
0
},
blue:
{
0
,
8
,
0
},
activate:
FB_ACTIVATE_NOW
,
height:
-
1
,
width:
-
1
,
pixclock:
39722
,
left_margin:
40
,
right_margin:
24
,
upper_margin:
32
,
lower_margin:
11
,
hsync_len:
96
,
vsync_len:
2
,
vmode:
FB_VMODE_NONINTERLACED
,
.
green
=
{
0
,
8
,
0
},
.
blue
=
{
0
,
8
,
0
},
.
activate
=
FB_ACTIVATE_NOW
,
.
height
=
-
1
,
.
width
=
-
1
,
.
pixclock
=
39722
,
.
left_margin
=
40
,
.
right_margin
=
24
,
.
upper_margin
=
32
,
.
lower_margin
=
11
,
.
hsync_len
=
96
,
.
vsync_len
=
2
,
.
vmode
=
FB_VMODE_NONINTERLACED
,
};
/*
...
...
drivers/video/maxinefb.c
View file @
ece1c8ef
...
...
@@ -47,7 +47,10 @@ static struct fb_var_screeninfo maxinefb_defined = {
.
yres
=
768
,
.
xres_virtual
=
1024
,
.
yres_virtual
=
768
,
.
bits_per_pixel
=
8
,
.
bits_per_pixel
=
8
,
.
red
.
length
=
8
,
.
green
.
length
=
8
,
.
blue
.
length
=
8
,
.
activate
=
FB_ACTIVATE_NOW
,
.
height
=
-
1
,
.
width
=
-
1
,
...
...
@@ -60,7 +63,7 @@ static struct fb_fix_screeninfo maxinefb_fix = {
.
type
=
FB_TYPE_PACKED_PIXELS
,
.
visual
=
FB_VISUAL_PSEUDOCOLOR
,
.
line_length
=
1024
,
}
}
;
/* Reference to machine type set in arch/mips/dec/prom/identify.c, KM */
extern
unsigned
long
mips_machtype
;
...
...
drivers/video/pmag-ba-fb.c
View file @
ece1c8ef
...
...
@@ -56,13 +56,16 @@ static struct fb_var_screeninfo pmagbafb_defined = {
.
yres
=
864
,
.
xres_virtual
=
1024
,
.
yres_virtual
=
864
,
.
bits_per_pixel
=
8
,
.
bits_per_pixel
=
8
,
.
red
.
length
=
8
,
.
green
.
length
=
8
,
.
blue
.
length
=
8
,
.
activate
=
FB_ACTIVATE_NOW
,
.
height
=
274
,
.
width
=
195
,
.
accel
=
FB_ACCEL_NONE
,
.
vmode
=
FB_VMODE_NONINTERLACED
,
}
}
;
static
struct
fb_fix_screeninfo
pmagbafb_fix
=
{
.
id
=
"PMAG-BA"
,
...
...
@@ -70,7 +73,7 @@ static struct fb_fix_screeninfo pmagbafb_fix = {
.
type
=
FB_TYPE_PACKED_PIXELS
,
.
visual
=
FB_VISUAL_PSEUDOCOLOR
,
.
line_length
=
1024
,
}
}
;
/*
* Turn hardware cursor off
...
...
@@ -113,7 +116,7 @@ static struct fb_ops pmagbafb_ops = {
.
fb_copyarea
=
cfb_copyarea
,
.
fb_imageblit
=
cfb_imageblit
,
.
fb_cursor
=
soft_cursor
,
}
}
;
int
__init
pmagbafb_init_one
(
int
slot
)
{
...
...
@@ -170,9 +173,4 @@ int __init pmagbafb_init(void)
}
}
int
__init
pmagbafb_setup
(
char
*
options
)
{
return
0
;
}
MODULE_LICENSE
(
"GPL"
);
drivers/video/pmagb-b-fb.c
View file @
ece1c8ef
...
...
@@ -59,7 +59,10 @@ static struct fb_var_screeninfo pmagbbfb_defined = {
.
yres
=
1024
,
.
xres_virtual
=
1280
,
.
yres_virtual
=
1024
,
.
bits_per_pixel
=
8
,
.
bits_per_pixel
=
8
,
.
red
.
length
=
8
,
.
green
.
length
=
8
,
.
blue
.
length
=
8
,
.
activate
=
FB_ACTIVATE_NOW
,
.
height
=
274
,
.
width
=
195
,
...
...
@@ -173,9 +176,4 @@ int __init pmagbbfb_init(void)
}
}
int
__init
pmagbbfb_setup
(
char
*
options
)
{
return
0
;
}
MODULE_LICENSE
(
"GPL"
);
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