Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
d7b4a756
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看板
提交
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 @@
...
@@ -21,6 +21,7 @@
#include <asm/mach/dma.h>
#include <asm/mach/dma.h>
DEFINE_SPINLOCK
(
dma_spin_lock
);
DEFINE_SPINLOCK
(
dma_spin_lock
);
EXPORT_SYMBOL
(
dma_spin_lock
);
static
dma_t
dma_chan
[
MAX_DMA_CHANNELS
];
static
dma_t
dma_chan
[
MAX_DMA_CHANNELS
];
...
@@ -77,6 +78,7 @@ int request_dma(dmach_t channel, const char *device_id)
...
@@ -77,6 +78,7 @@ int request_dma(dmach_t channel, const char *device_id)
busy:
busy:
return
-
EBUSY
;
return
-
EBUSY
;
}
}
EXPORT_SYMBOL
(
request_dma
);
/*
/*
* Free DMA channel
* Free DMA channel
...
@@ -108,6 +110,7 @@ void free_dma(dmach_t channel)
...
@@ -108,6 +110,7 @@ void free_dma(dmach_t channel)
bad_dma:
bad_dma:
printk
(
KERN_ERR
"dma: trying to free DMA%d
\n
"
,
channel
);
printk
(
KERN_ERR
"dma: trying to free DMA%d
\n
"
,
channel
);
}
}
EXPORT_SYMBOL
(
free_dma
);
/* Set DMA Scatter-Gather list
/* Set DMA Scatter-Gather list
*/
*/
...
@@ -123,6 +126,7 @@ void set_dma_sg (dmach_t channel, struct scatterlist *sg, int nr_sg)
...
@@ -123,6 +126,7 @@ void set_dma_sg (dmach_t channel, struct scatterlist *sg, int nr_sg)
dma
->
sgcount
=
nr_sg
;
dma
->
sgcount
=
nr_sg
;
dma
->
invalid
=
1
;
dma
->
invalid
=
1
;
}
}
EXPORT_SYMBOL
(
set_dma_sg
);
/* Set DMA address
/* Set DMA address
*
*
...
@@ -140,6 +144,7 @@ void __set_dma_addr (dmach_t channel, void *addr)
...
@@ -140,6 +144,7 @@ void __set_dma_addr (dmach_t channel, void *addr)
dma
->
addr
=
addr
;
dma
->
addr
=
addr
;
dma
->
invalid
=
1
;
dma
->
invalid
=
1
;
}
}
EXPORT_SYMBOL
(
__set_dma_addr
);
/* Set DMA byte count
/* Set DMA byte count
*
*
...
@@ -157,6 +162,7 @@ void set_dma_count (dmach_t channel, unsigned long count)
...
@@ -157,6 +162,7 @@ void set_dma_count (dmach_t channel, unsigned long count)
dma
->
count
=
count
;
dma
->
count
=
count
;
dma
->
invalid
=
1
;
dma
->
invalid
=
1
;
}
}
EXPORT_SYMBOL
(
set_dma_count
);
/* Set DMA direction mode
/* Set DMA direction mode
*/
*/
...
@@ -171,6 +177,7 @@ void set_dma_mode (dmach_t channel, dmamode_t mode)
...
@@ -171,6 +177,7 @@ void set_dma_mode (dmach_t channel, dmamode_t mode)
dma
->
dma_mode
=
mode
;
dma
->
dma_mode
=
mode
;
dma
->
invalid
=
1
;
dma
->
invalid
=
1
;
}
}
EXPORT_SYMBOL
(
set_dma_mode
);
/* Enable DMA channel
/* Enable DMA channel
*/
*/
...
@@ -191,6 +198,7 @@ void enable_dma (dmach_t channel)
...
@@ -191,6 +198,7 @@ void enable_dma (dmach_t channel)
printk
(
KERN_ERR
"dma%d: trying to enable free DMA
\n
"
,
channel
);
printk
(
KERN_ERR
"dma%d: trying to enable free DMA
\n
"
,
channel
);
BUG
();
BUG
();
}
}
EXPORT_SYMBOL
(
enable_dma
);
/* Disable DMA channel
/* Disable DMA channel
*/
*/
...
@@ -211,6 +219,7 @@ void disable_dma (dmach_t channel)
...
@@ -211,6 +219,7 @@ void disable_dma (dmach_t channel)
printk
(
KERN_ERR
"dma%d: trying to disable free DMA
\n
"
,
channel
);
printk
(
KERN_ERR
"dma%d: trying to disable free DMA
\n
"
,
channel
);
BUG
();
BUG
();
}
}
EXPORT_SYMBOL
(
disable_dma
);
/*
/*
* Is the specified DMA channel active?
* Is the specified DMA channel active?
...
@@ -224,6 +233,7 @@ void set_dma_page(dmach_t channel, char pagenr)
...
@@ -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
);
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
)
void
set_dma_speed
(
dmach_t
channel
,
int
cycle_ns
)
{
{
...
@@ -234,6 +244,7 @@ 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
);
ret
=
dma
->
d_ops
->
setspeed
(
channel
,
dma
,
cycle_ns
);
dma
->
speed
=
ret
;
dma
->
speed
=
ret
;
}
}
EXPORT_SYMBOL
(
set_dma_speed
);
int
get_dma_residue
(
dmach_t
channel
)
int
get_dma_residue
(
dmach_t
channel
)
{
{
...
@@ -245,6 +256,7 @@ int get_dma_residue(dmach_t channel)
...
@@ -245,6 +256,7 @@ int get_dma_residue(dmach_t channel)
return
ret
;
return
ret
;
}
}
EXPORT_SYMBOL
(
get_dma_residue
);
static
int
__init
init_dma
(
void
)
static
int
__init
init_dma
(
void
)
{
{
...
@@ -253,17 +265,3 @@ static int __init init_dma(void)
...
@@ -253,17 +265,3 @@ static int __init init_dma(void)
}
}
core_initcall
(
init_dma
);
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录