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
4802c591
Commit
4802c591
authored
Dec 29, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/mtd/maps/pcmciamtd.c: __iomem annotations
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
62fb4a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
drivers/mtd/maps/pcmciamtd.c
drivers/mtd/maps/pcmciamtd.c
+14
-14
No files found.
drivers/mtd/maps/pcmciamtd.c
View file @
4802c591
...
...
@@ -30,7 +30,7 @@
struct
pcmciamtd_dev
{
struct
pcmcia_device
*
p_dev
;
caddr_t
win_base
;
/* ioremapped address of PCMCIA window */
void
__iomem
*
win_base
;
/* ioremapped address of PCMCIA window */
unsigned
int
win_size
;
/* size of window */
unsigned
int
offset
;
/* offset into card the window currently points at */
struct
map_info
pcmcia_map
;
...
...
@@ -80,7 +80,7 @@ MODULE_PARM_DESC(mem_type, "Set Memory type (0=Flash, 1=RAM, 2=ROM, default=0)")
/* read/write{8,16} copy_{from,to} routines with window remapping
* to access whole card
*/
static
caddr_t
remap_window
(
struct
map_info
*
map
,
unsigned
long
to
)
static
void
__iomem
*
remap_window
(
struct
map_info
*
map
,
unsigned
long
to
)
{
struct
pcmciamtd_dev
*
dev
=
(
struct
pcmciamtd_dev
*
)
map
->
map_priv_1
;
struct
resource
*
win
=
(
struct
resource
*
)
map
->
map_priv_2
;
...
...
@@ -107,7 +107,7 @@ static caddr_t remap_window(struct map_info *map, unsigned long to)
static
map_word
pcmcia_read8_remap
(
struct
map_info
*
map
,
unsigned
long
ofs
)
{
caddr_t
addr
;
void
__iomem
*
addr
;
map_word
d
=
{{
0
}};
addr
=
remap_window
(
map
,
ofs
);
...
...
@@ -122,7 +122,7 @@ static map_word pcmcia_read8_remap(struct map_info *map, unsigned long ofs)
static
map_word
pcmcia_read16_remap
(
struct
map_info
*
map
,
unsigned
long
ofs
)
{
caddr_t
addr
;
void
__iomem
*
addr
;
map_word
d
=
{{
0
}};
addr
=
remap_window
(
map
,
ofs
);
...
...
@@ -143,7 +143,7 @@ static void pcmcia_copy_from_remap(struct map_info *map, void *to, unsigned long
pr_debug
(
"to = %p from = %lu len = %zd
\n
"
,
to
,
from
,
len
);
while
(
len
)
{
int
toread
=
win_size
-
(
from
&
(
win_size
-
1
));
caddr_t
addr
;
void
__iomem
*
addr
;
if
(
toread
>
len
)
toread
=
len
;
...
...
@@ -163,7 +163,7 @@ static void pcmcia_copy_from_remap(struct map_info *map, void *to, unsigned long
static
void
pcmcia_write8_remap
(
struct
map_info
*
map
,
map_word
d
,
unsigned
long
adr
)
{
caddr_t
addr
=
remap_window
(
map
,
adr
);
void
__iomem
*
addr
=
remap_window
(
map
,
adr
);
if
(
!
addr
)
return
;
...
...
@@ -175,7 +175,7 @@ static void pcmcia_write8_remap(struct map_info *map, map_word d, unsigned long
static
void
pcmcia_write16_remap
(
struct
map_info
*
map
,
map_word
d
,
unsigned
long
adr
)
{
caddr_t
addr
=
remap_window
(
map
,
adr
);
void
__iomem
*
addr
=
remap_window
(
map
,
adr
);
if
(
!
addr
)
return
;
...
...
@@ -192,7 +192,7 @@ static void pcmcia_copy_to_remap(struct map_info *map, unsigned long to, const v
pr_debug
(
"to = %lu from = %p len = %zd
\n
"
,
to
,
from
,
len
);
while
(
len
)
{
int
towrite
=
win_size
-
(
to
&
(
win_size
-
1
));
caddr_t
addr
;
void
__iomem
*
addr
;
if
(
towrite
>
len
)
towrite
=
len
;
...
...
@@ -216,7 +216,7 @@ static void pcmcia_copy_to_remap(struct map_info *map, unsigned long to, const v
static
map_word
pcmcia_read8
(
struct
map_info
*
map
,
unsigned
long
ofs
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
map_word
d
=
{{
0
}};
if
(
DEV_REMOVED
(
map
))
...
...
@@ -231,7 +231,7 @@ static map_word pcmcia_read8(struct map_info *map, unsigned long ofs)
static
map_word
pcmcia_read16
(
struct
map_info
*
map
,
unsigned
long
ofs
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
map_word
d
=
{{
0
}};
if
(
DEV_REMOVED
(
map
))
...
...
@@ -246,7 +246,7 @@ static map_word pcmcia_read16(struct map_info *map, unsigned long ofs)
static
void
pcmcia_copy_from
(
struct
map_info
*
map
,
void
*
to
,
unsigned
long
from
,
ssize_t
len
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
if
(
DEV_REMOVED
(
map
))
return
;
...
...
@@ -258,7 +258,7 @@ static void pcmcia_copy_from(struct map_info *map, void *to, unsigned long from,
static
void
pcmcia_write8
(
struct
map_info
*
map
,
map_word
d
,
unsigned
long
adr
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
if
(
DEV_REMOVED
(
map
))
return
;
...
...
@@ -271,7 +271,7 @@ static void pcmcia_write8(struct map_info *map, map_word d, unsigned long adr)
static
void
pcmcia_write16
(
struct
map_info
*
map
,
map_word
d
,
unsigned
long
adr
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
if
(
DEV_REMOVED
(
map
))
return
;
...
...
@@ -284,7 +284,7 @@ static void pcmcia_write16(struct map_info *map, map_word d, unsigned long adr)
static
void
pcmcia_copy_to
(
struct
map_info
*
map
,
unsigned
long
to
,
const
void
*
from
,
ssize_t
len
)
{
caddr_t
win_base
=
(
caddr_t
)
map
->
map_priv_2
;
void
__iomem
*
win_base
=
(
void
__iomem
*
)
map
->
map_priv_2
;
if
(
DEV_REMOVED
(
map
))
return
;
...
...
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