Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
9085fa12
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看板
提交
9085fa12
编写于
11月 09, 2007
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Kill off lib64 version of io.c.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
62d6b66e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
138 deletion
+6
-138
arch/sh/lib64/Makefile
arch/sh/lib64/Makefile
+6
-10
arch/sh/lib64/io.c
arch/sh/lib64/io.c
+0
-128
未找到文件。
arch/sh/lib64/Makefile
浏览文件 @
9085fa12
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
# Makefile for the SH-5 specific library files..
#
# Copyright (C) 2000, 2001 Paolo Alberelli
# Cop
rygith
(C) 2003 Paul Mundt
# Cop
yright
(C) 2003 Paul Mundt
#
# Makefile for the SH-5 specific library files..
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
#
# Panic should really be compiled as PIC
lib-y
:=
udelay.o c-checksum.o dbg.o
io.o
panic.o memcpy.o copy_user_memcpy.o
\
lib-y
:=
udelay.o c-checksum.o dbg.o panic.o memcpy.o copy_user_memcpy.o
\
page_copy.o page_clear.o iomap.o
arch/sh/lib64/io.c
已删除
100644 → 0
浏览文件 @
62d6b66e
/*
* Copyright (C) 2000 David J. Mckay (david.mckay@st.com)
*
* May be copied or modified under the terms of the GNU General Public
* License. See linux/COPYING for more information.
*
* This file contains the I/O routines for use on the overdrive board
*
*/
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <asm/system.h>
#include <asm/processor.h>
#include <asm/io.h>
/* Now for the string version of these functions */
void
outsb
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
++
)
{
outb
(
*
p
,
port
);
}
}
EXPORT_SYMBOL
(
outsb
);
void
insb
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
++
)
{
*
p
=
inb
(
port
);
}
}
EXPORT_SYMBOL
(
insb
);
/* For the 16 and 32 bit string functions, we have to worry about alignment.
* The SH does not do unaligned accesses, so we have to read as bytes and
* then write as a word or dword.
* This can be optimised a lot more, especially in the case where the data
* is aligned
*/
void
outsw
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
short
tmp
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
+=
2
)
{
tmp
=
(
*
p
)
|
((
*
(
p
+
1
))
<<
8
);
outw
(
tmp
,
port
);
}
}
EXPORT_SYMBOL
(
outsw
);
void
insw
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
short
tmp
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
+=
2
)
{
tmp
=
inw
(
port
);
p
[
0
]
=
tmp
&
0xff
;
p
[
1
]
=
(
tmp
>>
8
)
&
0xff
;
}
}
EXPORT_SYMBOL
(
insw
);
void
outsl
(
unsigned
long
port
,
const
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
tmp
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
+=
4
)
{
tmp
=
(
*
p
)
|
((
*
(
p
+
1
))
<<
8
)
|
((
*
(
p
+
2
))
<<
16
)
|
((
*
(
p
+
3
))
<<
24
);
outl
(
tmp
,
port
);
}
}
EXPORT_SYMBOL
(
outsl
);
void
insl
(
unsigned
long
port
,
void
*
addr
,
unsigned
long
count
)
{
int
i
;
unsigned
tmp
;
unsigned
char
*
p
=
(
unsigned
char
*
)
addr
;
for
(
i
=
0
;
i
<
count
;
i
++
,
p
+=
4
)
{
tmp
=
inl
(
port
);
p
[
0
]
=
tmp
&
0xff
;
p
[
1
]
=
(
tmp
>>
8
)
&
0xff
;
p
[
2
]
=
(
tmp
>>
16
)
&
0xff
;
p
[
3
]
=
(
tmp
>>
24
)
&
0xff
;
}
}
EXPORT_SYMBOL
(
insl
);
void
memcpy_toio
(
void
__iomem
*
to
,
const
void
*
from
,
long
count
)
{
unsigned
char
*
p
=
(
unsigned
char
*
)
from
;
while
(
count
)
{
count
--
;
writeb
(
*
p
++
,
to
++
);
}
}
EXPORT_SYMBOL
(
memcpy_toio
);
void
memcpy_fromio
(
void
*
to
,
void
__iomem
*
from
,
long
count
)
{
int
i
;
unsigned
char
*
p
=
(
unsigned
char
*
)
to
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
p
[
i
]
=
readb
(
from
);
from
++
;
}
}
EXPORT_SYMBOL
(
memcpy_fromio
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录