Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
27350afd
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
27350afd
编写于
3月 03, 2007
作者:
R
Russell King
提交者:
Russell King
4月 21, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ARM] EBSA110: Add readsw/readsl/writesw/writesl
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
7ab3f8d5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
48 addition
and
0 deletion
+48
-0
arch/arm/mach-ebsa110/io.c
arch/arm/mach-ebsa110/io.c
+40
-0
include/asm-arm/arch-ebsa110/io.h
include/asm-arm/arch-ebsa110/io.h
+8
-0
未找到文件。
arch/arm/mach-ebsa110/io.c
浏览文件 @
27350afd
...
...
@@ -102,6 +102,26 @@ EXPORT_SYMBOL(__readb);
EXPORT_SYMBOL
(
__readw
);
EXPORT_SYMBOL
(
__readl
);
void
readsw
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
1
);
__raw_readsw
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
readsw
);
void
readsl
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
3
);
__raw_readsl
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
readsl
);
void
__writeb
(
u8
val
,
void
__iomem
*
addr
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
...
...
@@ -137,6 +157,26 @@ EXPORT_SYMBOL(__writeb);
EXPORT_SYMBOL
(
__writew
);
EXPORT_SYMBOL
(
__writel
);
void
writesw
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
1
);
__raw_writesw
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
writesw
);
void
writesl
(
void
__iomem
*
addr
,
void
*
data
,
int
len
)
{
void
__iomem
*
a
=
__isamem_convert_addr
(
addr
);
BUG_ON
((
unsigned
long
)
addr
&
3
);
__raw_writesl
(
a
,
data
,
len
);
}
EXPORT_SYMBOL
(
writesl
);
#define SUPERIO_PORT(p) \
(((p) >> 3) == (0x3f8 >> 3) || \
((p) >> 3) == (0x2f8 >> 3) || \
...
...
include/asm-arm/arch-ebsa110/io.h
浏览文件 @
27350afd
...
...
@@ -81,4 +81,12 @@ extern void outsb(unsigned int port, const void *buf, int sz);
extern
void
outsw
(
unsigned
int
port
,
const
void
*
buf
,
int
sz
);
extern
void
outsl
(
unsigned
int
port
,
const
void
*
buf
,
int
sz
);
/* can't support writesb atm */
extern
void
writesw
(
void
__iomem
*
addr
,
const
void
*
data
,
int
wordlen
);
extern
void
writesl
(
void
__iomem
*
addr
,
const
void
*
data
,
int
longlen
);
/* can't support readsb atm */
extern
void
readsw
(
const
void
__iomem
*
addr
,
void
*
data
,
int
wordlen
);
extern
void
readsl
(
const
void
__iomem
*
addr
,
void
*
data
,
int
longlen
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录