Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
63f716b9
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
63f716b9
编写于
12月 29, 2005
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] sh: lvalues abuse in arch/sh/boards/renesas/rts7751r2d/io.c
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
6881761e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
12 deletion
+18
-12
arch/sh/boards/renesas/rts7751r2d/io.c
arch/sh/boards/renesas/rts7751r2d/io.c
+18
-12
未找到文件。
arch/sh/boards/renesas/rts7751r2d/io.c
浏览文件 @
63f716b9
...
@@ -216,24 +216,26 @@ void rts7751r2d_insb(unsigned long port, void *addr, unsigned long count)
...
@@ -216,24 +216,26 @@ void rts7751r2d_insb(unsigned long port, void *addr, unsigned long count)
{
{
volatile
__u8
*
bp
;
volatile
__u8
*
bp
;
volatile
__u16
*
p
;
volatile
__u16
*
p
;
unsigned
char
*
s
=
addr
;
if
(
CHECK_AX88796L_PORT
(
port
))
{
if
(
CHECK_AX88796L_PORT
(
port
))
{
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
0
);
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
0
);
while
(
count
--
)
*
((
unsigned
char
*
)
addr
)
++
=
*
p
&
0xff
;
while
(
count
--
)
*
s
++
=
*
p
&
0xff
;
}
else
if
(
PXSEG
(
port
))
}
else
if
(
PXSEG
(
port
))
while
(
count
--
)
*
((
unsigned
char
*
)
addr
)
++
=
*
(
volatile
unsigned
char
*
)
port
;
while
(
count
--
)
*
s
++
=
*
(
volatile
unsigned
char
*
)
port
;
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
bp
=
(
__u8
*
)
PCI_IOMAP
(
port
);
bp
=
(
__u8
*
)
PCI_IOMAP
(
port
);
while
(
count
--
)
*
((
volatile
unsigned
char
*
)
addr
)
++
=
*
bp
;
while
(
count
--
)
*
s
++
=
*
bp
;
}
else
{
}
else
{
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
while
(
count
--
)
*
((
unsigned
char
*
)
addr
)
++
=
*
p
&
0xff
;
while
(
count
--
)
*
s
++
=
*
p
&
0xff
;
}
}
}
}
void
rts7751r2d_insw
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
void
rts7751r2d_insw
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
{
{
volatile
__u16
*
p
;
volatile
__u16
*
p
;
__u16
*
s
=
addr
;
if
(
CHECK_AX88796L_PORT
(
port
))
if
(
CHECK_AX88796L_PORT
(
port
))
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
1
);
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
1
);
...
@@ -243,7 +245,7 @@ void rts7751r2d_insw(unsigned long port, void *addr, unsigned long count)
...
@@ -243,7 +245,7 @@ void rts7751r2d_insw(unsigned long port, void *addr, unsigned long count)
p
=
(
volatile
unsigned
short
*
)
PCI_IOMAP
(
port
);
p
=
(
volatile
unsigned
short
*
)
PCI_IOMAP
(
port
);
else
else
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
while
(
count
--
)
*
((
__u16
*
)
addr
)
++
=
*
p
;
while
(
count
--
)
*
s
++
=
*
p
;
}
}
void
rts7751r2d_insl
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
void
rts7751r2d_insl
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
...
@@ -252,8 +254,9 @@ void rts7751r2d_insl(unsigned long port, void *addr, unsigned long count)
...
@@ -252,8 +254,9 @@ void rts7751r2d_insl(unsigned long port, void *addr, unsigned long count)
maybebadio
(
insl
,
port
);
maybebadio
(
insl
,
port
);
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
volatile
__u32
*
p
=
(
__u32
*
)
PCI_IOMAP
(
port
);
volatile
__u32
*
p
=
(
__u32
*
)
PCI_IOMAP
(
port
);
__u32
*
s
=
addr
;
while
(
count
--
)
*
((
__u32
*
)
addr
)
++
=
*
p
;
while
(
count
--
)
*
s
++
=
*
p
;
}
else
}
else
maybebadio
(
insl
,
port
);
maybebadio
(
insl
,
port
);
}
}
...
@@ -262,24 +265,26 @@ void rts7751r2d_outsb(unsigned long port, const void *addr, unsigned long count)
...
@@ -262,24 +265,26 @@ void rts7751r2d_outsb(unsigned long port, const void *addr, unsigned long count)
{
{
volatile
__u8
*
bp
;
volatile
__u8
*
bp
;
volatile
__u16
*
p
;
volatile
__u16
*
p
;
const
__u8
*
s
=
addr
;
if
(
CHECK_AX88796L_PORT
(
port
))
{
if
(
CHECK_AX88796L_PORT
(
port
))
{
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
0
);
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
0
);
while
(
count
--
)
*
p
=
*
((
unsigned
char
*
)
addr
)
++
;
while
(
count
--
)
*
p
=
*
s
++
;
}
else
if
(
PXSEG
(
port
))
}
else
if
(
PXSEG
(
port
))
while
(
count
--
)
*
(
volatile
unsigned
char
*
)
port
=
*
((
unsigned
char
*
)
addr
)
++
;
while
(
count
--
)
*
(
volatile
unsigned
char
*
)
port
=
*
s
++
;
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
bp
=
(
__u8
*
)
PCI_IOMAP
(
port
);
bp
=
(
__u8
*
)
PCI_IOMAP
(
port
);
while
(
count
--
)
*
bp
=
*
((
volatile
unsigned
char
*
)
addr
)
++
;
while
(
count
--
)
*
bp
=
*
s
++
;
}
else
{
}
else
{
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
while
(
count
--
)
*
p
=
*
((
unsigned
char
*
)
addr
)
++
;
while
(
count
--
)
*
p
=
*
s
++
;
}
}
}
}
void
rts7751r2d_outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
void
rts7751r2d_outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
{
{
volatile
__u16
*
p
;
volatile
__u16
*
p
;
const
__u16
*
s
=
addr
;
if
(
CHECK_AX88796L_PORT
(
port
))
if
(
CHECK_AX88796L_PORT
(
port
))
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
1
);
p
=
(
volatile
unsigned
short
*
)
port88796l
(
port
,
1
);
...
@@ -289,7 +294,7 @@ void rts7751r2d_outsw(unsigned long port, const void *addr, unsigned long count)
...
@@ -289,7 +294,7 @@ void rts7751r2d_outsw(unsigned long port, const void *addr, unsigned long count)
p
=
(
volatile
unsigned
short
*
)
PCI_IOMAP
(
port
);
p
=
(
volatile
unsigned
short
*
)
PCI_IOMAP
(
port
);
else
else
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
p
=
(
volatile
unsigned
short
*
)
port2adr
(
port
);
while
(
count
--
)
*
p
=
*
((
__u16
*
)
addr
)
++
;
while
(
count
--
)
*
p
=
*
s
++
;
}
}
void
rts7751r2d_outsl
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
void
rts7751r2d_outsl
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
...
@@ -298,8 +303,9 @@ void rts7751r2d_outsl(unsigned long port, const void *addr, unsigned long count)
...
@@ -298,8 +303,9 @@ void rts7751r2d_outsl(unsigned long port, const void *addr, unsigned long count)
maybebadio
(
outsl
,
port
);
maybebadio
(
outsl
,
port
);
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
else
if
(
CHECK_SH7751_PCIIO
(
port
)
||
shifted_port
(
port
))
{
volatile
__u32
*
p
=
(
__u32
*
)
PCI_IOMAP
(
port
);
volatile
__u32
*
p
=
(
__u32
*
)
PCI_IOMAP
(
port
);
const
__u32
*
s
=
addr
;
while
(
count
--
)
*
p
=
*
((
__u32
*
)
addr
)
++
;
while
(
count
--
)
*
p
=
*
s
++
;
}
else
}
else
maybebadio
(
outsl
,
port
);
maybebadio
(
outsl
,
port
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录