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
115f4504
Commit
115f4504
authored
Oct 08, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed currcon and other console related code. Very little is now left.
parent
5916159c
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
708 additions
and
639 deletions
+708
-639
drivers/video/anakinfb.c
drivers/video/anakinfb.c
+0
-2
drivers/video/clps711xfb.c
drivers/video/clps711xfb.c
+1
-4
drivers/video/dnfb.c
drivers/video/dnfb.c
+0
-2
drivers/video/fbcon-vga-planes.c
drivers/video/fbcon-vga-planes.c
+49
-155
drivers/video/fbmem.c
drivers/video/fbmem.c
+1
-0
drivers/video/fm2fb.c
drivers/video/fm2fb.c
+0
-2
drivers/video/g364fb.c
drivers/video/g364fb.c
+0
-2
drivers/video/hitfb.c
drivers/video/hitfb.c
+0
-2
drivers/video/hpfb.c
drivers/video/hpfb.c
+0
-3
drivers/video/offb.c
drivers/video/offb.c
+0
-2
drivers/video/pmag-ba-fb.c
drivers/video/pmag-ba-fb.c
+0
-2
drivers/video/q40fb.c
drivers/video/q40fb.c
+0
-2
drivers/video/sgivwfb.c
drivers/video/sgivwfb.c
+0
-2
drivers/video/skeletonfb.c
drivers/video/skeletonfb.c
+0
-9
drivers/video/tdfxfb.c
drivers/video/tdfxfb.c
+0
-5
drivers/video/tx3912fb.c
drivers/video/tx3912fb.c
+0
-2
drivers/video/vesafb.c
drivers/video/vesafb.c
+0
-1
drivers/video/vfb.c
drivers/video/vfb.c
+0
-3
drivers/video/vga16fb.c
drivers/video/vga16fb.c
+657
-437
include/linux/fb.h
include/linux/fb.h
+0
-2
No files found.
drivers/video/anakinfb.c
View file @
115f4504
...
@@ -75,13 +75,11 @@ anakinfb_init(void)
...
@@ -75,13 +75,11 @@ anakinfb_init(void)
memset
(
&
fb_info
,
0
,
sizeof
(
struct
fb_info
));
memset
(
&
fb_info
,
0
,
sizeof
(
struct
fb_info
));
fb_info
.
node
=
NODEV
;
fb_info
.
node
=
NODEV
;
fb_info
.
currcon
=
-
1
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
fbops
=
&
anakinfb_ops
;
fb_info
.
fbops
=
&
anakinfb_ops
;
fb_info
.
var
=
anakinfb_var
;
fb_info
.
var
=
anakinfb_var
;
fb_info
.
fix
=
anakinfb_fix
;
fb_info
.
fix
=
anakinfb_fix
;
strcpy
(
fb_info
.
fontname
,
"VGA8x16"
);
strcpy
(
fb_info
.
fontname
,
"VGA8x16"
);
fb_info
.
updatevar
=
gen_update_var
;
if
(
!
(
request_mem_region
(
VGA_START
,
VGA_SIZE
,
"vga"
)))
if
(
!
(
request_mem_region
(
VGA_START
,
VGA_SIZE
,
"vga"
)))
return
-
ENOMEM
;
return
-
ENOMEM
;
if
(
fb_info
.
screen_base
=
ioremap
(
VGA_START
,
VGA_SIZE
))
{
if
(
fb_info
.
screen_base
=
ioremap
(
VGA_START
,
VGA_SIZE
))
{
...
...
drivers/video/clps711xfb.c
View file @
115f4504
...
@@ -264,13 +264,11 @@ int __init clps711xfb_init(void)
...
@@ -264,13 +264,11 @@ int __init clps711xfb_init(void)
memset
(
cfb
,
0
,
sizeof
(
*
cfb
));
memset
(
cfb
,
0
,
sizeof
(
*
cfb
));
memset
((
void
*
)
PAGE_OFFSET
,
0
,
0x14000
);
memset
((
void
*
)
PAGE_OFFSET
,
0
,
0x14000
);
cfb
->
currcon
=
-
1
;
strcpy
(
cfb
->
fix
.
id
,
"clps7111"
);
strcpy
(
cfb
->
fix
.
id
,
"clps7111"
);
cfb
->
screen_base
=
(
void
*
)
PAGE_OFFSET
;
cfb
->
screen_base
=
(
void
*
)
PAGE_OFFSET
;
cfb
->
fix
.
smem_start
=
PAGE_OFFSET
;
cfb
->
fix
.
smem_start
=
PAGE_OFFSET
;
cfb
->
fix
.
smem_len
=
0x14000
;
cfb
->
fix
.
smem_len
=
0x14000
;
cfb
->
fix
.
type
=
FB_TYPE_PACKED_PIXELS
;
cfb
->
fix
.
type
=
FB_TYPE_PACKED_PIXELS
;
cfb
->
var
.
xres
=
640
;
cfb
->
var
.
xres
=
640
;
cfb
->
var
.
xres_virtual
=
640
;
cfb
->
var
.
xres_virtual
=
640
;
...
@@ -283,7 +281,6 @@ int __init clps711xfb_init(void)
...
@@ -283,7 +281,6 @@ int __init clps711xfb_init(void)
cfb
->
var
.
width
=
-
1
;
cfb
->
var
.
width
=
-
1
;
cfb
->
fbops
=
&
clps7111fb_ops
;
cfb
->
fbops
=
&
clps7111fb_ops
;
cfb
->
updatevar
=
gen_update_var
;
cfb
->
flags
=
FBINFO_FLAG_DEFAULT
;
cfb
->
flags
=
FBINFO_FLAG_DEFAULT
;
fb_alloc_cmap
(
&
cfb
->
cmap
,
CMAP_SIZE
,
0
);
fb_alloc_cmap
(
&
cfb
->
cmap
,
CMAP_SIZE
,
0
);
...
...
drivers/video/dnfb.c
View file @
115f4504
...
@@ -235,10 +235,8 @@ unsigned long __init dnfb_init(unsigned long mem_start)
...
@@ -235,10 +235,8 @@ unsigned long __init dnfb_init(unsigned long mem_start)
int
err
;
int
err
;
fb_info
.
fontname
[
0
]
=
0
;
fb_info
.
fontname
[
0
]
=
0
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
node
=
NODEV
;
fb_info
.
node
=
NODEV
;
fb_info
.
fbops
=
&
dn_fb_ops
;
fb_info
.
fbops
=
&
dn_fb_ops
;
fb_info
.
currcon
=
-
1
;
fb_info
.
fix
=
dnfb_fix
;
fb_info
.
fix
=
dnfb_fix
;
fb_info
.
var
=
dnfb_var
;
fb_info
.
var
=
dnfb_var
;
fb_info
.
screen_base
=
(
u_char
*
)
fb_info
.
fix
.
smem_start
;
fb_info
.
screen_base
=
(
u_char
*
)
fb_info
.
fix
.
smem_start
;
...
...
drivers/video/fbcon-vga-planes.c
View file @
115f4504
...
@@ -105,10 +105,9 @@ void fbcon_vga_planes_setup(struct display *p)
...
@@ -105,10 +105,9 @@ void fbcon_vga_planes_setup(struct display *p)
void
fbcon_vga_planes_bmove
(
struct
display
*
p
,
int
sy
,
int
sx
,
int
dy
,
int
dx
,
void
fbcon_vga_planes_bmove
(
struct
display
*
p
,
int
sy
,
int
sx
,
int
dy
,
int
dx
,
int
height
,
int
width
)
int
height
,
int
width
)
{
{
char
*
src
;
struct
fb_info
*
info
=
p
->
fb_info
;
char
*
dest
;
char
*
dest
,
*
src
;
int
line_ofs
;
int
line_ofs
,
x
;
int
x
;
setmode
(
1
);
setmode
(
1
);
setop
(
0
);
setop
(
0
);
...
@@ -119,9 +118,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
...
@@ -119,9 +118,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
height
*=
fontheight
(
p
);
height
*=
fontheight
(
p
);
if
(
dy
<
sy
||
(
dy
==
sy
&&
dx
<
sx
))
{
if
(
dy
<
sy
||
(
dy
==
sy
&&
dx
<
sx
))
{
line_ofs
=
p
->
fb_
info
->
fix
.
line_length
-
width
;
line_ofs
=
info
->
fix
.
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
dy
*
p
->
fb_
info
->
fix
.
line_length
;
dest
=
info
->
screen_base
+
dx
+
dy
*
info
->
fix
.
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
sy
*
p
->
fb_
info
->
fix
.
line_length
;
src
=
info
->
screen_base
+
sx
+
sy
*
info
->
fix
.
line_length
;
while
(
height
--
)
{
while
(
height
--
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
readb
(
src
);
readb
(
src
);
...
@@ -133,9 +132,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
...
@@ -133,9 +132,9 @@ void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx,
dest
+=
line_ofs
;
dest
+=
line_ofs
;
}
}
}
else
{
}
else
{
line_ofs
=
p
->
fb_
info
->
fix
.
line_length
-
width
;
line_ofs
=
info
->
fix
.
line_length
-
width
;
dest
=
p
->
fb_info
->
screen_base
+
dx
+
width
+
(
dy
+
height
-
1
)
*
p
->
fb_
info
->
fix
.
line_length
;
dest
=
info
->
screen_base
+
dx
+
width
+
(
dy
+
height
-
1
)
*
info
->
fix
.
line_length
;
src
=
p
->
fb_info
->
screen_base
+
sx
+
width
+
(
sy
+
height
-
1
)
*
p
->
fb_
info
->
fix
.
line_length
;
src
=
info
->
screen_base
+
sx
+
width
+
(
sy
+
height
-
1
)
*
info
->
fix
.
line_length
;
while
(
height
--
)
{
while
(
height
--
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
dest
--
;
dest
--
;
...
@@ -177,137 +176,48 @@ void fbcon_vga_planes_clear(struct vc_data *conp, struct display *p, int sy, int
...
@@ -177,137 +176,48 @@ void fbcon_vga_planes_clear(struct vc_data *conp, struct display *p, int sy, int
}
}
}
}
void
fbcon_ega_planes_putc
(
struct
vc_data
*
conp
,
struct
display
*
p
,
int
c
,
int
yy
,
int
xx
)
void
fbcon_accel_putc
(
struct
vc_data
*
vc
,
struct
display
*
p
,
int
c
,
int
yy
,
{
int
xx
)
int
fg
=
attr_fgcol
(
p
,
c
);
int
bg
=
attr_bgcol
(
p
,
c
);
int
y
;
u8
*
cdat
=
p
->
fontdata
+
(
c
&
p
->
charmask
)
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
setmode
(
0
);
setop
(
0
);
setsr
(
0xf
);
setcolor
(
bg
);
selectmask
();
setmask
(
0xff
);
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
rmw
(
where
);
where
-=
p
->
fb_info
->
fix
.
line_length
*
y
;
setcolor
(
fg
);
selectmask
();
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
if
(
cdat
[
y
])
{
setmask
(
cdat
[
y
]);
rmw
(
where
);
}
}
void
fbcon_vga_planes_putc
(
struct
vc_data
*
conp
,
struct
display
*
p
,
int
c
,
int
yy
,
int
xx
)
{
int
fg
=
attr_fgcol
(
p
,
c
);
int
bg
=
attr_bgcol
(
p
,
c
);
int
y
;
u8
*
cdat
=
p
->
fontdata
+
(
c
&
p
->
charmask
)
*
fontheight
(
p
);
char
*
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
setmode
(
2
);
setop
(
0
);
setsr
(
0xf
);
setcolor
(
fg
);
selectmask
();
setmask
(
0xff
);
writeb
(
bg
,
where
);
rmb
();
readb
(
where
);
/* fill latches */
setmode
(
3
);
wmb
();
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
where
+=
p
->
fb_info
->
fix
.
line_length
)
writeb
(
cdat
[
y
],
where
);
wmb
();
}
/* 28.50 in my test */
void
fbcon_ega_planes_putcs
(
struct
vc_data
*
conp
,
struct
display
*
p
,
const
unsigned
short
*
s
,
int
count
,
int
yy
,
int
xx
)
{
{
u16
c
=
scr_readw
(
s
);
struct
fb_info
*
info
=
p
->
fb_info
;
int
fg
=
attr_fgcol
(
p
,
c
);
unsigned
short
charmask
=
p
->
charmask
;
int
bg
=
attr_bgcol
(
p
,
c
);
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
struct
fb_image
image
;
char
*
where
;
int
n
;
image
.
fg_color
=
attr_fgcol
(
p
,
c
);
image
.
bg_color
=
attr_bgcol
(
p
,
c
);
setmode
(
2
);
image
.
dx
=
xx
*
fontwidth
(
p
);
setop
(
0
);
image
.
dy
=
yy
*
fontheight
(
p
);
selectmask
();
image
.
width
=
fontwidth
(
p
);
image
.
height
=
fontheight
(
p
);
setmask
(
0xff
);
image
.
depth
=
1
;
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
image
.
data
=
p
->
fontdata
+
(
c
&
charmask
)
*
fontheight
(
p
)
*
width
;
writeb
(
bg
,
where
);
rmb
();
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
readb
(
where
);
/* fill latches */
wmb
();
selectmask
();
for
(
n
=
0
;
n
<
count
;
n
++
)
{
int
c
=
scr_readw
(
s
++
)
&
p
->
charmask
;
u8
*
cdat
=
p
->
fontdata
+
c
*
fontheight
(
p
);
u8
*
end
=
cdat
+
fontheight
(
p
);
while
(
cdat
<
end
)
{
outb
(
*
cdat
++
,
GRAPHICS_DATA_REG
);
wmb
();
writeb
(
fg
,
where
);
where
+=
p
->
fb_info
->
fix
.
line_length
;
}
where
+=
1
-
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
}
wmb
();
}
}
/* 6.96 in my test */
void
fbcon_accel_putcs
(
struct
vc_data
*
vc
,
struct
display
*
p
,
void
fbcon_vga_planes_putcs
(
struct
vc_data
*
conp
,
struct
display
*
p
,
const
unsigned
short
*
s
,
const
unsigned
short
*
s
,
int
count
,
int
yy
,
int
xx
)
int
count
,
int
yy
,
int
xx
)
{
{
u16
c
=
scr_readw
(
s
);
struct
fb_info
*
info
=
p
->
fb_info
;
int
fg
=
attr_fgcol
(
p
,
c
);
unsigned
short
charmask
=
p
->
charmask
;
int
bg
=
attr_bgcol
(
p
,
c
);
unsigned
int
width
=
((
fontwidth
(
p
)
+
7
)
>>
3
);
struct
fb_image
image
;
char
*
where
;
int
n
;
image
.
fg_color
=
attr_fgcol
(
p
,
*
s
);
image
.
bg_color
=
attr_bgcol
(
p
,
*
s
);
setmode
(
2
);
image
.
dx
=
xx
*
fontwidth
(
p
);
setop
(
0
);
image
.
dy
=
yy
*
fontheight
(
p
);
setsr
(
0xf
);
image
.
width
=
fontwidth
(
p
);
setcolor
(
fg
);
image
.
height
=
fontheight
(
p
);
selectmask
();
image
.
depth
=
1
;
setmask
(
0xff
);
while
(
count
--
)
{
where
=
p
->
fb_info
->
screen_base
+
xx
+
yy
*
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
image
.
data
=
p
->
fontdata
+
writeb
(
bg
,
where
);
(
scr_readw
(
s
++
)
&
charmask
)
*
fontheight
(
p
)
*
width
;
rmb
();
info
->
fbops
->
fb_imageblit
(
info
,
&
image
);
readb
(
where
);
/* fill latches */
image
.
dx
+=
fontwidth
(
p
);
setmode
(
3
);
}
wmb
();
for
(
n
=
0
;
n
<
count
;
n
++
)
{
int
y
;
int
c
=
scr_readw
(
s
++
)
&
p
->
charmask
;
u8
*
cdat
=
p
->
fontdata
+
(
c
&
p
->
charmask
)
*
fontheight
(
p
);
for
(
y
=
0
;
y
<
fontheight
(
p
);
y
++
,
cdat
++
)
{
writeb
(
*
cdat
,
where
);
where
+=
p
->
fb_info
->
fix
.
line_length
;
}
where
+=
1
-
p
->
fb_info
->
fix
.
line_length
*
fontheight
(
p
);
}
wmb
();
}
}
void
fbcon_vga_planes_revc
(
struct
display
*
p
,
int
xx
,
int
yy
)
void
fbcon_vga_planes_revc
(
struct
display
*
p
,
int
xx
,
int
yy
)
...
@@ -332,18 +242,8 @@ struct display_switch fbcon_vga_planes = {
...
@@ -332,18 +242,8 @@ struct display_switch fbcon_vga_planes = {
setup:
fbcon_vga_planes_setup
,
setup:
fbcon_vga_planes_setup
,
bmove:
fbcon_vga_planes_bmove
,
bmove:
fbcon_vga_planes_bmove
,
clear:
fbcon_vga_planes_clear
,
clear:
fbcon_vga_planes_clear
,
putc:
fbcon_vga_planes_putc
,
putc:
fbcon_accel_putc
,
putcs:
fbcon_vga_planes_putcs
,
putcs:
fbcon_accel_putcs
,
revc:
fbcon_vga_planes_revc
,
fontwidthmask:
FONTWIDTH
(
8
)
};
struct
display_switch
fbcon_ega_planes
=
{
setup:
fbcon_vga_planes_setup
,
bmove:
fbcon_vga_planes_bmove
,
clear:
fbcon_vga_planes_clear
,
putc:
fbcon_ega_planes_putc
,
putcs:
fbcon_ega_planes_putcs
,
revc:
fbcon_vga_planes_revc
,
revc:
fbcon_vga_planes_revc
,
fontwidthmask:
FONTWIDTH
(
8
)
fontwidthmask:
FONTWIDTH
(
8
)
};
};
...
@@ -369,14 +269,8 @@ EXPORT_SYMBOL(fbcon_vga_planes);
...
@@ -369,14 +269,8 @@ EXPORT_SYMBOL(fbcon_vga_planes);
EXPORT_SYMBOL
(
fbcon_vga_planes_setup
);
EXPORT_SYMBOL
(
fbcon_vga_planes_setup
);
EXPORT_SYMBOL
(
fbcon_vga_planes_bmove
);
EXPORT_SYMBOL
(
fbcon_vga_planes_bmove
);
EXPORT_SYMBOL
(
fbcon_vga_planes_clear
);
EXPORT_SYMBOL
(
fbcon_vga_planes_clear
);
EXPORT_SYMBOL
(
fbcon_vga_planes_putc
);
EXPORT_SYMBOL
(
fbcon_vga_planes_putcs
);
EXPORT_SYMBOL
(
fbcon_vga_planes_revc
);
EXPORT_SYMBOL
(
fbcon_vga_planes_revc
);
EXPORT_SYMBOL
(
fbcon_ega_planes
);
EXPORT_SYMBOL
(
fbcon_ega_planes_putc
);
EXPORT_SYMBOL
(
fbcon_ega_planes_putcs
);
/*
/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* Overrides for Emacs so that we follow Linus's tabbing style.
* ---------------------------------------------------------------------------
* ---------------------------------------------------------------------------
...
...
drivers/video/fbmem.c
View file @
115f4504
...
@@ -749,6 +749,7 @@ register_framebuffer(struct fb_info *fb_info)
...
@@ -749,6 +749,7 @@ register_framebuffer(struct fb_info *fb_info)
if
(
!
registered_fb
[
i
])
if
(
!
registered_fb
[
i
])
break
;
break
;
fb_info
->
node
=
mk_kdev
(
FB_MAJOR
,
i
);
fb_info
->
node
=
mk_kdev
(
FB_MAJOR
,
i
);
fb_info
->
currcon
=
-
1
;
registered_fb
[
i
]
=
fb_info
;
registered_fb
[
i
]
=
fb_info
;
if
(
!
fb_ever_opened
[
i
])
{
if
(
!
fb_ever_opened
[
i
])
{
struct
module
*
owner
=
fb_info
->
fbops
->
owner
;
struct
module
*
owner
=
fb_info
->
fbops
->
owner
;
...
...
drivers/video/fm2fb.c
View file @
115f4504
...
@@ -268,8 +268,6 @@ int __init fm2fb_init(void)
...
@@ -268,8 +268,6 @@ int __init fm2fb_init(void)
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
/* The below feilds will go away !!!! */
/* The below feilds will go away !!!! */
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_alloc_cmap
(
&
fb_info
.
cmap
,
16
,
0
);
fb_alloc_cmap
(
&
fb_info
.
cmap
,
16
,
0
);
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
...
...
drivers/video/g364fb.c
View file @
115f4504
...
@@ -243,9 +243,7 @@ int __init g364fb_init(void)
...
@@ -243,9 +243,7 @@ int __init g364fb_init(void)
fb_info
.
fix
=
fb_fix
;
fb_info
.
fix
=
fb_fix
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
currcon
=
-
1
;
fb_info
.
fontname
[
0
]
=
'\0'
;
fb_info
.
fontname
[
0
]
=
'\0'
;
fb_info
.
updatevar
=
gen_update_var
;
fb_alloc_cmap
(
&
fb_info
.
cmap
,
255
,
0
);
fb_alloc_cmap
(
&
fb_info
.
cmap
,
255
,
0
);
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
...
...
drivers/video/hitfb.c
View file @
115f4504
...
@@ -162,8 +162,6 @@ int __init hitfb_init(void)
...
@@ -162,8 +162,6 @@ int __init hitfb_init(void)
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
screen_base
=
(
void
*
)
hitfb_fix
.
smem_start
;
fb_info
.
screen_base
=
(
void
*
)
hitfb_fix
.
smem_start
;
size
=
(
fb_info
.
var
.
bits_per_pixel
==
8
)
?
256
:
16
;
size
=
(
fb_info
.
var
.
bits_per_pixel
==
8
)
?
256
:
16
;
...
...
drivers/video/hpfb.c
View file @
115f4504
...
@@ -158,9 +158,6 @@ int __init hpfb_init_one(unsigned long base)
...
@@ -158,9 +158,6 @@ int __init hpfb_init_one(unsigned long base)
fb_info
.
fix
=
hpfb_fix
;
fb_info
.
fix
=
hpfb_fix
;
fb_info
.
screen_base
=
(
char
*
)
hpfb_fix
.
smem_start
;
// FIXME
fb_info
.
screen_base
=
(
char
*
)
hpfb_fix
.
smem_start
;
// FIXME
/* The below feilds will go away !!!! */
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_alloc_cmap
(
&
fb_info
.
cmap
,
256
,
0
);
fb_alloc_cmap
(
&
fb_info
.
cmap
,
256
,
0
);
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
...
...
drivers/video/offb.c
View file @
115f4504
...
@@ -530,9 +530,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
...
@@ -530,9 +530,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
info
->
screen_base
=
ioremap
(
address
,
fix
->
smem_len
);
info
->
screen_base
=
ioremap
(
address
,
fix
->
smem_len
);
info
->
par
=
par
;
info
->
par
=
par
;
info
->
pseudo_palette
=
(
void
*
)
(
info
+
1
);
info
->
pseudo_palette
=
(
void
*
)
(
info
+
1
);
info
->
currcon
=
-
1
;
info
->
fontname
[
0
]
=
'\0'
;
info
->
fontname
[
0
]
=
'\0'
;
info
->
updatevar
=
gen_update_var
;
info
->
flags
=
FBINFO_FLAG_DEFAULT
;
info
->
flags
=
FBINFO_FLAG_DEFAULT
;
fb_alloc_cmap
(
&
info
->
cmap
,
256
,
0
);
fb_alloc_cmap
(
&
info
->
cmap
,
256
,
0
);
...
...
drivers/video/pmag-ba-fb.c
View file @
115f4504
...
@@ -36,8 +36,6 @@
...
@@ -36,8 +36,6 @@
#include <asm/dec/tc.h>
#include <asm/dec/tc.h>
#include "pmag-ba-fb.h"
#include "pmag-ba-fb.h"
#include <video/fbcon.h>
struct
pmag_ba_ramdac_regs
{
struct
pmag_ba_ramdac_regs
{
unsigned
char
addr_low
;
unsigned
char
addr_low
;
unsigned
char
pad0
[
3
];
unsigned
char
pad0
[
3
];
...
...
drivers/video/q40fb.c
View file @
115f4504
...
@@ -112,8 +112,6 @@ int q40fb_init(void)
...
@@ -112,8 +112,6 @@ int q40fb_init(void)
fb_info
.
screen_base
=
(
char
*
)
q40fb_fix
.
smem_start
;
fb_info
.
screen_base
=
(
char
*
)
q40fb_fix
.
smem_start
;
/* The below feilds will go away !!!! */
/* The below feilds will go away !!!! */
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_alloc_cmap
(
&
fb_info
.
cmap
,
16
,
0
);
fb_alloc_cmap
(
&
fb_info
.
cmap
,
16
,
0
);
master_outb
(
3
,
DISPLAY_CONTROL_REG
);
master_outb
(
3
,
DISPLAY_CONTROL_REG
);
...
...
drivers/video/sgivwfb.c
View file @
115f4504
...
@@ -719,8 +719,6 @@ int __init sgivwfb_init(void)
...
@@ -719,8 +719,6 @@ int __init sgivwfb_init(void)
fb_info
.
fbops
=
&
sgivwfb_ops
;
fb_info
.
fbops
=
&
sgivwfb_ops
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
par
=
&
default_par
;
fb_info
.
par
=
&
default_par
;
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
screen_base
=
fb_info
.
screen_base
=
...
...
drivers/video/skeletonfb.c
View file @
115f4504
...
@@ -418,15 +418,6 @@ int __init xxxfb_init(void)
...
@@ -418,15 +418,6 @@ int __init xxxfb_init(void)
info
.
flags
=
FBINFO_FLAG_DEFAULT
;
info
.
flags
=
FBINFO_FLAG_DEFAULT
;
info
.
par
=
current_par
;
info
.
par
=
current_par
;
/* The following has to be set but in th efuture will go away */
strcpy
(
info
.
modename
,
xxxfb_fix
.
id
);
info
.
changevar
=
NULL
;
info
.
currcon
=
-
1
;
info
.
disp
=
&
disp
;
info
.
switch_con
=
gen_switch
;
info
.
updatevar
=
gen_update_var
;
/*
/*
* This should give a reasonable default video mode. The following is
* This should give a reasonable default video mode. The following is
* done when we can set a video mode.
* done when we can set a video mode.
...
...
drivers/video/tdfxfb.c
View file @
115f4504
...
@@ -1074,11 +1074,6 @@ static int __devinit tdfxfb_probe(struct pci_dev *pdev,
...
@@ -1074,11 +1074,6 @@ static int __devinit tdfxfb_probe(struct pci_dev *pdev,
info
->
pseudo_palette
=
(
void
*
)(
info
->
par
+
1
);
info
->
pseudo_palette
=
(
void
*
)(
info
->
par
+
1
);
info
->
flags
=
FBINFO_FLAG_DEFAULT
;
info
->
flags
=
FBINFO_FLAG_DEFAULT
;
/* The below fields will go away !!!! */
strcpy
(
info
->
modename
,
info
->
fix
.
id
);
info
->
currcon
=
-
1
;
info
->
updatevar
=
gen_update_var
;
if
(
!
mode_option
)
if
(
!
mode_option
)
mode_option
=
"640x480@60"
;
mode_option
=
"640x480@60"
;
...
...
drivers/video/tx3912fb.c
View file @
115f4504
...
@@ -292,12 +292,10 @@ int __init tx3912fb_init(void)
...
@@ -292,12 +292,10 @@ int __init tx3912fb_init(void)
return
-
ENOMEM
;
return
-
ENOMEM
;
fb_info
.
node
=
NODEV
;
fb_info
.
node
=
NODEV
;
fb_info
.
currcon
=
-
1
;
fb_info
.
fbops
=
&
tx3912fb_ops
;
fb_info
.
fbops
=
&
tx3912fb_ops
;
fb_info
.
var
=
tx3912fb_var
;
fb_info
.
var
=
tx3912fb_var
;
fb_info
.
fix
=
tx3912fb_fix
;
fb_info
.
fix
=
tx3912fb_fix
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
/* Clear the framebuffer */
/* Clear the framebuffer */
...
...
drivers/video/vesafb.c
View file @
115f4504
...
@@ -348,7 +348,6 @@ int __init vesafb_init(void)
...
@@ -348,7 +348,6 @@ int __init vesafb_init(void)
fb_info
.
fbops
=
&
vesafb_ops
;
fb_info
.
fbops
=
&
vesafb_ops
;
fb_info
.
var
=
vesafb_defined
;
fb_info
.
var
=
vesafb_defined
;
fb_info
.
fix
=
vesafb_fix
;
fb_info
.
fix
=
vesafb_fix
;
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
updatevar
=
gen_update_var
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
pseudo_palette
=
pseudo_palette
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
...
...
drivers/video/vfb.c
View file @
115f4504
...
@@ -439,9 +439,6 @@ int __init vfb_init(void)
...
@@ -439,9 +439,6 @@ int __init vfb_init(void)
fb_info
.
pseudo_palette
=
&
vfb_pseudo_palette
;
fb_info
.
pseudo_palette
=
&
vfb_pseudo_palette
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
currcon
=
-
1
;
fb_info
.
updatevar
=
gen_update_var
;
fb_alloc_cmap
(
&
fb_info
.
cmap
,
256
,
0
);
fb_alloc_cmap
(
&
fb_info
.
cmap
,
256
,
0
);
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
{
if
(
register_framebuffer
(
&
fb_info
)
<
0
)
{
...
...
drivers/video/vga16fb.c
View file @
115f4504
This diff is collapsed.
Click to expand it.
include/linux/fb.h
View file @
115f4504
...
@@ -364,8 +364,6 @@ struct fb_info {
...
@@ -364,8 +364,6 @@ struct fb_info {
char
fontname
[
40
];
/* default font name */
char
fontname
[
40
];
/* default font name */
devfs_handle_t
devfs_handle
;
/* Devfs handle for new name */
devfs_handle_t
devfs_handle
;
/* Devfs handle for new name */
devfs_handle_t
devfs_lhandle
;
/* Devfs handle for compat. symlink */
devfs_handle_t
devfs_lhandle
;
/* Devfs handle for compat. symlink */
int
(
*
updatevar
)(
int
,
struct
fb_info
*
);
/* tell fb to update the vars */
void
*
pseudo_palette
;
/* Fake palette of 16 colors and
void
*
pseudo_palette
;
/* Fake palette of 16 colors and
the cursor's color for non
the cursor's color for non
palette mode */
palette mode */
...
...
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