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
6f8d8d4b
Commit
6f8d8d4b
authored
Jun 20, 2002
by
James Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
M68K updates for there framebuffer devices.
parent
7f933b36
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
253 additions
and
247 deletions
+253
-247
drivers/video/amifb.c
drivers/video/amifb.c
+39
-42
drivers/video/atafb.c
drivers/video/atafb.c
+195
-183
drivers/video/dnfb.c
drivers/video/dnfb.c
+9
-10
drivers/video/fm2fb.c
drivers/video/fm2fb.c
+2
-1
drivers/video/hpfb.c
drivers/video/hpfb.c
+2
-1
drivers/video/q40fb.c
drivers/video/q40fb.c
+4
-4
drivers/video/retz3fb.c
drivers/video/retz3fb.c
+0
-4
drivers/video/vfb.c
drivers/video/vfb.c
+2
-2
No files found.
drivers/video/amifb.c
View file @
6f8d8d4b
...
...
@@ -61,7 +61,6 @@
#include <asm/amigahw.h>
#include <asm/amigaints.h>
#include <asm/setup.h>
#include <asm/io.h>
#include <video/fbcon.h>
#include <video/fbcon-afb.h>
...
...
@@ -1173,16 +1172,51 @@ static struct fb_ops amifb_ops = {
fb_set_cmap:
gen_set_cmap
,
fb_setcolreg:
amifb_setcolreg
,
fb_pan_display:
amifb_pan_display
,
fb_blank
L
:
amifb_blank
,
fb_blank:
amifb_blank
,
fb_ioctl:
amifb_ioctl
,
};
static
void
__init
amifb_setup_mcap
(
char
*
spec
)
{
char
*
p
;
int
vmin
,
vmax
,
hmin
,
hmax
;
/* Format for monitor capabilities is: <Vmin>;<Vmax>;<Hmin>;<Hmax>
* <V*> vertical freq. in Hz
* <H*> horizontal freq. in kHz
*/
if
(
!
(
p
=
strsep
(
&
spec
,
";"
))
||
!*
p
)
return
;
vmin
=
simple_strtoul
(
p
,
NULL
,
10
);
if
(
vmin
<=
0
)
return
;
if
(
!
(
p
=
strsep
(
&
spec
,
";"
))
||
!*
p
)
return
;
vmax
=
simple_strtoul
(
p
,
NULL
,
10
);
if
(
vmax
<=
0
||
vmax
<=
vmin
)
return
;
if
(
!
(
p
=
strsep
(
&
spec
,
";"
))
||
!*
p
)
return
;
hmin
=
1000
*
simple_strtoul
(
p
,
NULL
,
10
);
if
(
hmin
<=
0
)
return
;
if
(
!
(
p
=
strsep
(
&
spec
,
""
))
||
!*
p
)
return
;
hmax
=
1000
*
simple_strtoul
(
p
,
NULL
,
10
);
if
(
hmax
<=
0
||
hmax
<=
hmin
)
return
;
fb_info
.
monspecs
.
vfmin
=
vmin
;
fb_info
.
monspecs
.
vfmax
=
vmax
;
fb_info
.
monspecs
.
hfmin
=
hmin
;
fb_info
.
monspecs
.
hfmax
=
hmax
;
}
int
__init
amifb_setup
(
char
*
options
)
{
char
*
this_opt
;
char
mcap_spec
[
80
];
mcap_spec
[
0
]
=
'\0'
;
fb_info
.
fontname
[
0
]
=
'\0'
;
if
(
!
options
||
!*
options
)
...
...
@@ -1199,7 +1233,7 @@ int __init amifb_setup(char *options)
}
else
if
(
!
strcmp
(
this_opt
,
"ilbm"
))
amifb_ilbm
=
1
;
else
if
(
!
strncmp
(
this_opt
,
"monitorcap:"
,
11
))
strcpy
(
mcap_spec
,
this_opt
+
11
);
amifb_setup_mcap
(
this_opt
+
11
);
else
if
(
!
strncmp
(
this_opt
,
"font:"
,
5
))
strcpy
(
fb_info
.
fontname
,
this_opt
+
5
);
else
if
(
!
strncmp
(
this_opt
,
"fstart:"
,
7
))
...
...
@@ -1211,43 +1245,6 @@ int __init amifb_setup(char *options)
if
(
min_fstrt
<
48
)
min_fstrt
=
48
;
if
(
*
mcap_spec
)
{
char
*
p
;
int
vmin
,
vmax
,
hmin
,
hmax
;
/* Format for monitor capabilities is: <Vmin>;<Vmax>;<Hmin>;<Hmax>
* <V*> vertical freq. in Hz
* <H*> horizontal freq. in kHz
*/
if
(
!
(
p
=
strsep
(
&
mcap_spec
,
";"
))
||
!*
p
)
goto
cap_invalid
;
vmin
=
simple_strtoul
(
p
,
NULL
,
10
);
if
(
vmin
<=
0
)
goto
cap_invalid
;
if
(
!
(
p
=
strsep
(
&
mcap_spec
,
";"
))
||
!*
p
)
goto
cap_invalid
;
vmax
=
simple_strtoul
(
p
,
NULL
,
10
);
if
(
vmax
<=
0
||
vmax
<=
vmin
)
goto
cap_invalid
;
if
(
!
(
p
=
strsep
(
&
mcap_spec
,
";"
))
||
!*
p
)
goto
cap_invalid
;
hmin
=
1000
*
simple_strtoul
(
p
,
NULL
,
10
);
if
(
hmin
<=
0
)
goto
cap_invalid
;
if
(
!
(
p
=
strsep
(
&
mcap_spec
,
""
))
||
!*
p
)
goto
cap_invalid
;
hmax
=
1000
*
simple_strtoul
(
p
,
NULL
,
10
);
if
(
hmax
<=
0
||
hmax
<=
hmin
)
goto
cap_invalid
;
fb_info
.
monspecs
.
vfmin
=
vmin
;
fb_info
.
monspecs
.
vfmax
=
vmax
;
fb_info
.
monspecs
.
hfmin
=
hmin
;
fb_info
.
monspecs
.
hfmax
=
hmax
;
cap_invalid:
;
}
return
0
;
}
...
...
drivers/video/atafb.c
View file @
6f8d8d4b
This diff is collapsed.
Click to expand it.
drivers/video/dnfb.c
View file @
6f8d8d4b
...
...
@@ -115,7 +115,7 @@ static struct display disp;
/* frame buffer operations */
static
int
dn
_
fb_blank
(
int
blank
,
struct
fb_info
*
info
);
static
int
dnfb_blank
(
int
blank
,
struct
fb_info
*
info
);
static
void
dnfb_copyarea
(
struct
fb_info
*
info
,
struct
fb_copyarea
*
area
);
static
struct
fb_ops
dn_fb_ops
=
{
...
...
@@ -165,7 +165,6 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
{
int
incr
,
y_delta
,
pre_read
=
0
,
x_end
,
x_word_count
;
int
x_count
,
y_count
;
ushort
*
src
,
dummy
;
uint
start_mask
,
end_mask
,
dest
;
short
i
,
j
;
...
...
@@ -173,13 +172,13 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
incr
=
(
area
->
dy
<=
area
->
sy
)
?
1
:
-
1
;
src
=
(
ushort
*
)
(
info
->
screen_base
+
area
->
sy
*
info
->
fix
.
next_line
+
(
ushort
*
)
(
info
->
screen_base
+
area
->
sy
*
info
->
fix
.
line_length
+
(
area
->
sx
>>
4
));
dest
=
area
->
dy
*
(
info
->
fix
.
next_line
>>
1
)
+
(
area
->
dx
>>
4
);
dest
=
area
->
dy
*
(
info
->
fix
.
line_length
>>
1
)
+
(
area
->
dx
>>
4
);
if
(
incr
>
0
)
{
y_delta
=
(
info
->
fix
.
next_line
*
8
)
-
area
->
sx
-
x_count
;
x_end
=
area
->
dx
+
x_count
-
1
;
y_delta
=
(
info
->
fix
.
line_length
*
8
)
-
area
->
sx
-
area
->
width
;
x_end
=
area
->
dx
+
area
->
width
-
1
;
x_word_count
=
(
x_end
>>
4
)
-
(
area
->
dx
>>
4
)
+
1
;
start_mask
=
0xffff0000
>>
(
area
->
dx
&
0xf
);
end_mask
=
0x7ffff
>>
(
x_end
&
0xf
);
...
...
@@ -188,8 +187,8 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
if
((
area
->
dx
&
0xf
)
<
(
area
->
sx
&
0xf
))
pre_read
=
1
;
}
else
{
y_delta
=
-
((
info
->
fix
.
next_line
*
8
)
-
area
->
sx
-
x_count
);
x_end
=
area
->
dx
-
x_count
+
1
;
y_delta
=
-
((
info
->
fix
.
line_length
*
8
)
-
area
->
sx
-
area
->
width
);
x_end
=
area
->
dx
-
area
->
width
+
1
;
x_word_count
=
(
area
->
dx
>>
4
)
-
(
x_end
>>
4
)
+
1
;
start_mask
=
0x7ffff
>>
(
area
->
dx
&
0xf
);
end_mask
=
0xffff0000
>>
(
x_end
&
0xf
);
...
...
@@ -199,7 +198,7 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
pre_read
=
1
;
}
for
(
i
=
0
;
i
<
y_coun
t
;
i
++
)
{
for
(
i
=
0
;
i
<
area
->
heigh
t
;
i
++
)
{
outb
(
0xc
|
(
dest
>>
16
),
AP_CONTROL_3A
);
...
...
@@ -242,7 +241,7 @@ unsigned long __init dnfb_init(unsigned long mem_start)
{
int
err
;
strcpy
(
&
fb_info
.
modename
,
dnfb_fix
);
strcpy
(
fb_info
.
modename
,
dnfb_fix
.
id
);
fb_info
.
changevar
=
NULL
;
fb_info
.
fontname
[
0
]
=
0
;
fb_info
.
disp
=
&
disp
;
...
...
drivers/video/fm2fb.c
View file @
6f8d8d4b
...
...
@@ -198,8 +198,9 @@ static int fm2fb_blank(int blank, struct fb_info *info)
if
(
!
blank
)
t
|=
FRAMEMASTER_ENABLE
|
FRAMEMASTER_NOLACE
;
fm2fb_reg
[
0
]
=
t
;
return
0
;
}
/*
* Set a single color register. The values supplied are already
* rounded down to the hardware's capabilities (according to the
...
...
drivers/video/hpfb.c
View file @
6f8d8d4b
...
...
@@ -49,6 +49,7 @@ static struct fb_fix_screeninfo hpfb_fix __initdata = {
visual:
FB_VISUAL_PSEUDOCOLOR
,
line_length:
1024
,
accel:
FB_ACCEL_NONE
,
};
static
struct
fb_var_screeninfo
hpfb_defined
=
{
xres:
1024
,
...
...
@@ -163,7 +164,7 @@ int __init hpfb_init_one(unsigned long base)
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
fb_info
.
var
=
hpfb_defined
;
fb_info
.
fix
=
hpfb_fix
;
fb_info
.
screen_base
=
hpfb_fix
.
smem_start
;
fb_info
.
screen_base
=
(
char
*
)
hpfb_fix
.
smem_start
;
// FIXME
/* The below feilds will go away !!!! */
fb_info
.
currcon
=
-
1
;
...
...
drivers/video/q40fb.c
View file @
6f8d8d4b
...
...
@@ -42,7 +42,7 @@ static struct fb_fix_screeninfo q40fb_fix __initdata = {
type:
FB_TYPE_PACKED_PIXELS
,
visual:
FB_VISUAL_TRUECOLOR
,
line_length:
1024
*
2
,
accel
_flags:
FB_ACCEL_NONE
,
accel
:
FB_ACCEL_NONE
,
};
static
struct
fb_var_screeninfo
q40fb_var
__initdata
=
{
...
...
@@ -95,9 +95,9 @@ static int q40fb_setcolreg(unsigned regno, unsigned red, unsigned green,
blue
>>=
10
;
if
(
regno
<
16
)
{
info
->
pseudo_palette
[
regno
]
=
((
red
&
31
)
<<
6
)
|
((
green
&
31
)
<<
11
)
|
(
blue
&
63
);
((
u16
*
)
info
->
pseudo_palette
)
[
regno
]
=
((
red
&
31
)
<<
6
)
|
((
green
&
31
)
<<
11
)
|
(
blue
&
63
);
}
return
0
;
}
...
...
drivers/video/retz3fb.c
View file @
6f8d8d4b
...
...
@@ -1274,8 +1274,6 @@ static int retz3fb_set_var(struct fb_var_screeninfo *var, int con,
static
int
retz3fb_get_cmap
(
struct
fb_cmap
*
cmap
,
int
kspc
,
int
con
,
struct
fb_info
*
info
)
{
struct
retz3_fb_info
*
zinfo
=
retz3info
(
info
);
if
(
con
==
info
->
currcon
)
/* current console? */
return
(
fb_get_cmap
(
cmap
,
kspc
,
retz3_getcolreg
,
info
));
else
if
(
fb_display
[
con
].
cmap
.
len
)
/* non default colormap? */
...
...
@@ -1446,8 +1444,6 @@ int __init retz3fb_init(void)
static
int
z3fb_switch
(
int
con
,
struct
fb_info
*
info
)
{
struct
retz3_fb_info
*
zinfo
=
retz3info
(
info
);
/* Do we have to save the colormap? */
if
(
fb_display
[
info
->
currcon
].
cmap
.
len
)
fb_get_cmap
(
&
fb_display
[
info
->
currcon
].
cmap
,
1
,
...
...
drivers/video/vfb.c
View file @
6f8d8d4b
...
...
@@ -24,7 +24,7 @@
#include <linux/fb.h>
#include <linux/init.h>
#include <
linux
/fbcon.h>
#include <
video
/fbcon.h>
/*
* RAM we reserve for the frame buffer. This defines the maximum screen
...
...
@@ -446,7 +446,7 @@ int __init vfb_init(void)
fb_info
.
pseudo_palette
=
&
vfb_pseudo_palette
;
fb_info
.
flags
=
FBINFO_FLAG_DEFAULT
;
strcpy
(
fb_info
.
modename
,
v
esa
fb_fix
.
id
);
strcpy
(
fb_info
.
modename
,
vfb_fix
.
id
);
fb_info
.
changevar
=
NULL
;
fb_info
.
currcon
=
-
1
;
fb_info
.
disp
=
&
disp
;
...
...
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