Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
d7b4a756
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d7b4a756
编写于
1月 04, 2006
作者:
R
Russell King
提交者:
Russell King
1月 04, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ARM] Move DMA exports to be next to each function
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
95ba9fb0
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
12 addition
and
14 deletion
+12
-14
arch/arm/kernel/dma.c
arch/arm/kernel/dma.c
+12
-14
未找到文件。
arch/arm/kernel/dma.c
浏览文件 @
d7b4a756
...
...
@@ -21,6 +21,7 @@
#include <asm/mach/dma.h>
DEFINE_SPINLOCK
(
dma_spin_lock
);
EXPORT_SYMBOL
(
dma_spin_lock
);
static
dma_t
dma_chan
[
MAX_DMA_CHANNELS
];
...
...
@@ -77,6 +78,7 @@ int request_dma(dmach_t channel, const char *device_id)
busy:
return
-
EBUSY
;
}
EXPORT_SYMBOL
(
request_dma
);
/*
* Free DMA channel
...
...
@@ -108,6 +110,7 @@ void free_dma(dmach_t channel)
bad_dma:
printk
(
KERN_ERR
"dma: trying to free DMA%d
\n
"
,
channel
);
}
EXPORT_SYMBOL
(
free_dma
);
/* Set DMA Scatter-Gather list
*/
...
...
@@ -123,6 +126,7 @@ void set_dma_sg (dmach_t channel, struct scatterlist *sg, int nr_sg)
dma
->
sgcount
=
nr_sg
;
dma
->
invalid
=
1
;
}
EXPORT_SYMBOL
(
set_dma_sg
);
/* Set DMA address
*
...
...
@@ -140,6 +144,7 @@ void __set_dma_addr (dmach_t channel, void *addr)
dma
->
addr
=
addr
;
dma
->
invalid
=
1
;
}
EXPORT_SYMBOL
(
__set_dma_addr
);
/* Set DMA byte count
*
...
...
@@ -157,6 +162,7 @@ void set_dma_count (dmach_t channel, unsigned long count)
dma
->
count
=
count
;
dma
->
invalid
=
1
;
}
EXPORT_SYMBOL
(
set_dma_count
);
/* Set DMA direction mode
*/
...
...
@@ -171,6 +177,7 @@ void set_dma_mode (dmach_t channel, dmamode_t mode)
dma
->
dma_mode
=
mode
;
dma
->
invalid
=
1
;
}
EXPORT_SYMBOL
(
set_dma_mode
);
/* Enable DMA channel
*/
...
...
@@ -191,6 +198,7 @@ void enable_dma (dmach_t channel)
printk
(
KERN_ERR
"dma%d: trying to enable free DMA
\n
"
,
channel
);
BUG
();
}
EXPORT_SYMBOL
(
enable_dma
);
/* Disable DMA channel
*/
...
...
@@ -211,6 +219,7 @@ void disable_dma (dmach_t channel)
printk
(
KERN_ERR
"dma%d: trying to disable free DMA
\n
"
,
channel
);
BUG
();
}
EXPORT_SYMBOL
(
disable_dma
);
/*
* Is the specified DMA channel active?
...
...
@@ -224,6 +233,7 @@ void set_dma_page(dmach_t channel, char pagenr)
{
printk
(
KERN_ERR
"dma%d: trying to set_dma_page
\n
"
,
channel
);
}
EXPORT_SYMBOL
(
set_dma_page
);
void
set_dma_speed
(
dmach_t
channel
,
int
cycle_ns
)
{
...
...
@@ -234,6 +244,7 @@ void set_dma_speed(dmach_t channel, int cycle_ns)
ret
=
dma
->
d_ops
->
setspeed
(
channel
,
dma
,
cycle_ns
);
dma
->
speed
=
ret
;
}
EXPORT_SYMBOL
(
set_dma_speed
);
int
get_dma_residue
(
dmach_t
channel
)
{
...
...
@@ -245,6 +256,7 @@ int get_dma_residue(dmach_t channel)
return
ret
;
}
EXPORT_SYMBOL
(
get_dma_residue
);
static
int
__init
init_dma
(
void
)
{
...
...
@@ -253,17 +265,3 @@ static int __init init_dma(void)
}
core_initcall
(
init_dma
);
EXPORT_SYMBOL
(
request_dma
);
EXPORT_SYMBOL
(
free_dma
);
EXPORT_SYMBOL
(
enable_dma
);
EXPORT_SYMBOL
(
disable_dma
);
EXPORT_SYMBOL
(
__set_dma_addr
);
EXPORT_SYMBOL
(
set_dma_count
);
EXPORT_SYMBOL
(
set_dma_mode
);
EXPORT_SYMBOL
(
set_dma_page
);
EXPORT_SYMBOL
(
get_dma_residue
);
EXPORT_SYMBOL
(
set_dma_sg
);
EXPORT_SYMBOL
(
set_dma_speed
);
EXPORT_SYMBOL
(
dma_spin_lock
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录