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
786c2d96
Commit
786c2d96
authored
Jul 23, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Jul 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] M68k update (part 5)
Fix Apollo frame buffer device breakage after the recent fbdev changes
parent
5fbcee12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
drivers/video/dnfb.c
drivers/video/dnfb.c
+9
-10
No files found.
drivers/video/dnfb.c
View file @
786c2d96
...
@@ -115,7 +115,7 @@ static struct display disp;
...
@@ -115,7 +115,7 @@ static struct display disp;
/* frame buffer operations */
/* 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
void
dnfb_copyarea
(
struct
fb_info
*
info
,
struct
fb_copyarea
*
area
);
static
struct
fb_ops
dn_fb_ops
=
{
static
struct
fb_ops
dn_fb_ops
=
{
...
@@ -165,7 +165,6 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
...
@@ -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
incr
,
y_delta
,
pre_read
=
0
,
x_end
,
x_word_count
;
int
x_count
,
y_count
;
ushort
*
src
,
dummy
;
ushort
*
src
,
dummy
;
uint
start_mask
,
end_mask
,
dest
;
uint
start_mask
,
end_mask
,
dest
;
short
i
,
j
;
short
i
,
j
;
...
@@ -173,13 +172,13 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
...
@@ -173,13 +172,13 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
incr
=
(
area
->
dy
<=
area
->
sy
)
?
1
:
-
1
;
incr
=
(
area
->
dy
<=
area
->
sy
)
?
1
:
-
1
;
src
=
src
=
(
ushort
*
)
(
info
->
screen_base
+
area
->
sy
*
info
->
fix
.
next_line
+
(
ushort
*
)
(
info
->
screen_base
+
area
->
sy
*
info
->
fix
.
line_length
+
(
area
->
sx
>>
4
));
(
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
)
{
if
(
incr
>
0
)
{
y_delta
=
(
info
->
fix
.
next_line
*
8
)
-
area
->
sx
-
x_count
;
y_delta
=
(
info
->
fix
.
line_length
*
8
)
-
area
->
sx
-
area
->
width
;
x_end
=
area
->
dx
+
x_count
-
1
;
x_end
=
area
->
dx
+
area
->
width
-
1
;
x_word_count
=
(
x_end
>>
4
)
-
(
area
->
dx
>>
4
)
+
1
;
x_word_count
=
(
x_end
>>
4
)
-
(
area
->
dx
>>
4
)
+
1
;
start_mask
=
0xffff0000
>>
(
area
->
dx
&
0xf
);
start_mask
=
0xffff0000
>>
(
area
->
dx
&
0xf
);
end_mask
=
0x7ffff
>>
(
x_end
&
0xf
);
end_mask
=
0x7ffff
>>
(
x_end
&
0xf
);
...
@@ -188,8 +187,8 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
...
@@ -188,8 +187,8 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
if
((
area
->
dx
&
0xf
)
<
(
area
->
sx
&
0xf
))
if
((
area
->
dx
&
0xf
)
<
(
area
->
sx
&
0xf
))
pre_read
=
1
;
pre_read
=
1
;
}
else
{
}
else
{
y_delta
=
-
((
info
->
fix
.
next_line
*
8
)
-
area
->
sx
-
x_count
);
y_delta
=
-
((
info
->
fix
.
line_length
*
8
)
-
area
->
sx
-
area
->
width
);
x_end
=
area
->
dx
-
x_count
+
1
;
x_end
=
area
->
dx
-
area
->
width
+
1
;
x_word_count
=
(
area
->
dx
>>
4
)
-
(
x_end
>>
4
)
+
1
;
x_word_count
=
(
area
->
dx
>>
4
)
-
(
x_end
>>
4
)
+
1
;
start_mask
=
0x7ffff
>>
(
area
->
dx
&
0xf
);
start_mask
=
0x7ffff
>>
(
area
->
dx
&
0xf
);
end_mask
=
0xffff0000
>>
(
x_end
&
0xf
);
end_mask
=
0xffff0000
>>
(
x_end
&
0xf
);
...
@@ -199,7 +198,7 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
...
@@ -199,7 +198,7 @@ void dnfb_copyarea(struct fb_info *info, struct fb_copyarea *area)
pre_read
=
1
;
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
);
outb
(
0xc
|
(
dest
>>
16
),
AP_CONTROL_3A
);
...
@@ -242,7 +241,7 @@ unsigned long __init dnfb_init(unsigned long mem_start)
...
@@ -242,7 +241,7 @@ unsigned long __init dnfb_init(unsigned long mem_start)
{
{
int
err
;
int
err
;
strcpy
(
&
fb_info
.
modename
,
dnfb_fix
);
strcpy
(
fb_info
.
modename
,
dnfb_fix
.
id
);
fb_info
.
changevar
=
NULL
;
fb_info
.
changevar
=
NULL
;
fb_info
.
fontname
[
0
]
=
0
;
fb_info
.
fontname
[
0
]
=
0
;
fb_info
.
disp
=
&
disp
;
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