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
6675a253
Commit
6675a253
authored
Sep 16, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fb: add __iomem annotations to cfbcopyarea
parent
4eeabde5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
drivers/video/cfbcopyarea.c
drivers/video/cfbcopyarea.c
+7
-6
No files found.
drivers/video/cfbcopyarea.c
View file @
6675a253
...
...
@@ -43,8 +43,9 @@
#define BYTES_PER_LONG 8
#endif
static
void
bitcpy
(
unsigned
long
*
dst
,
int
dst_idx
,
const
unsigned
long
*
src
,
int
src_idx
,
unsigned
long
n
)
static
void
bitcpy
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
const
unsigned
long
__iomem
*
src
,
int
src_idx
,
unsigned
long
n
)
{
unsigned
long
first
,
last
;
int
shift
=
dst_idx
-
src_idx
,
left
,
right
;
...
...
@@ -185,8 +186,8 @@ static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src,
}
}
static
void
bitcpy_rev
(
unsigned
long
*
dst
,
int
dst_idx
,
const
unsigned
long
*
src
,
int
src_idx
,
unsigned
long
n
)
static
void
bitcpy_rev
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
const
unsigned
long
__iomem
*
src
,
int
src_idx
,
unsigned
long
n
)
{
unsigned
long
first
,
last
;
int
shift
=
dst_idx
-
src_idx
,
left
,
right
;
...
...
@@ -344,7 +345,7 @@ void cfb_copyarea(struct fb_info *p, const struct fb_copyarea *area)
int
x2
,
y2
,
old_dx
,
old_dy
,
vxres
,
vyres
;
unsigned
long
next_line
=
p
->
fix
.
line_length
;
int
dst_idx
=
0
,
src_idx
=
0
,
rev_copy
=
0
;
unsigned
long
*
dst
=
NULL
,
*
src
=
NULL
;
unsigned
long
__iomem
*
dst
=
NULL
,
*
src
=
NULL
;
if
(
p
->
state
!=
FBINFO_STATE_RUNNING
)
return
;
...
...
@@ -394,7 +395,7 @@ void cfb_copyarea(struct fb_info *p, const struct fb_copyarea *area)
rev_copy
=
1
;
}
dst
=
src
=
(
unsigned
long
*
)((
unsigned
long
)
p
->
screen_base
&
dst
=
src
=
(
unsigned
long
__iomem
*
)((
unsigned
long
)
p
->
screen_base
&
~
(
BYTES_PER_LONG
-
1
));
dst_idx
=
src_idx
=
(
unsigned
long
)
p
->
screen_base
&
(
BYTES_PER_LONG
-
1
);
dst_idx
+=
dy
*
next_line
*
8
+
dx
*
p
->
var
.
bits_per_pixel
;
...
...
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