Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
4802c591
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4802c591
编写于
12月 29, 2015
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drivers/mtd/maps/pcmciamtd.c: __iomem annotations
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
62fb4a15
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
drivers/mtd/maps/pcmciamtd.c
drivers/mtd/maps/pcmciamtd.c
+14
-14
未找到文件。
drivers/mtd/maps/pcmciamtd.c
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录