Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
0acbfc66
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看板
提交
0acbfc66
编写于
3月 27, 2015
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS: DMA: Implement platform hook to perform post-DMA cache flushes.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
25307380
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
35 addition
and
1 deletion
+35
-1
arch/mips/include/asm/mach-ath25/dma-coherence.h
arch/mips/include/asm/mach-ath25/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-bmips/dma-coherence.h
arch/mips/include/asm/mach-bmips/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-generic/dma-coherence.h
arch/mips/include/asm/mach-generic/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-ip27/dma-coherence.h
arch/mips/include/asm/mach-ip27/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-ip32/dma-coherence.h
arch/mips/include/asm/mach-ip32/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-jazz/dma-coherence.h
arch/mips/include/asm/mach-jazz/dma-coherence.h
+4
-0
arch/mips/include/asm/mach-loongson/dma-coherence.h
arch/mips/include/asm/mach-loongson/dma-coherence.h
+4
-0
arch/mips/mm/dma-default.c
arch/mips/mm/dma-default.c
+3
-1
未找到文件。
arch/mips/include/asm/mach-ath25/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -69,4 +69,8 @@ static inline int plat_device_is_coherent(struct device *dev)
#endif
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
#endif
/* __ASM_MACH_ATH25_DMA_COHERENCE_H */
arch/mips/include/asm/mach-bmips/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -45,4 +45,8 @@ static inline int plat_device_is_coherent(struct device *dev)
return
0
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
#endif
/* __ASM_MACH_BMIPS_DMA_COHERENCE_H */
arch/mips/include/asm/mach-cavium-octeon/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -57,6 +57,10 @@ static inline int plat_device_is_coherent(struct device *dev)
return
1
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
dma_addr_t
phys_to_dma
(
struct
device
*
dev
,
phys_addr_t
paddr
);
phys_addr_t
dma_to_phys
(
struct
device
*
dev
,
dma_addr_t
daddr
);
...
...
arch/mips/include/asm/mach-generic/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -52,6 +52,10 @@ static inline int plat_device_is_coherent(struct device *dev)
return
coherentio
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
#ifdef CONFIG_SWIOTLB
static
inline
dma_addr_t
phys_to_dma
(
struct
device
*
dev
,
phys_addr_t
paddr
)
{
...
...
arch/mips/include/asm/mach-ip27/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -58,6 +58,10 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
return
1
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
static
inline
int
plat_device_is_coherent
(
struct
device
*
dev
)
{
return
1
;
/* IP27 non-cohernet mode is unsupported */
...
...
arch/mips/include/asm/mach-ip32/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -80,6 +80,10 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
return
1
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
static
inline
int
plat_device_is_coherent
(
struct
device
*
dev
)
{
return
0
;
/* IP32 is non-cohernet */
...
...
arch/mips/include/asm/mach-jazz/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -48,6 +48,10 @@ static inline int plat_dma_supported(struct device *dev, u64 mask)
return
1
;
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
static
inline
int
plat_device_is_coherent
(
struct
device
*
dev
)
{
return
0
;
...
...
arch/mips/include/asm/mach-loongson/dma-coherence.h
浏览文件 @
0acbfc66
...
...
@@ -78,4 +78,8 @@ static inline int plat_device_is_coherent(struct device *dev)
#endif
/* CONFIG_DMA_NONCOHERENT */
}
static
inline
void
plat_post_dma_flush
(
struct
device
*
dev
)
{
}
#endif
/* __ASM_MACH_LOONGSON_DMA_COHERENCE_H */
arch/mips/mm/dma-default.c
浏览文件 @
0acbfc66
...
...
@@ -258,7 +258,7 @@ static void mips_dma_unmap_page(struct device *dev, dma_addr_t dma_addr,
if
(
cpu_needs_post_dma_flush
(
dev
))
__dma_sync
(
dma_addr_to_page
(
dev
,
dma_addr
),
dma_addr
&
~
PAGE_MASK
,
size
,
direction
);
plat_post_dma_flush
(
dev
);
plat_unmap_dma_mem
(
dev
,
dma_addr
,
size
,
direction
);
}
...
...
@@ -312,6 +312,7 @@ static void mips_dma_sync_single_for_cpu(struct device *dev,
if
(
cpu_needs_post_dma_flush
(
dev
))
__dma_sync
(
dma_addr_to_page
(
dev
,
dma_handle
),
dma_handle
&
~
PAGE_MASK
,
size
,
direction
);
plat_post_dma_flush
(
dev
);
}
static
void
mips_dma_sync_single_for_device
(
struct
device
*
dev
,
...
...
@@ -331,6 +332,7 @@ static void mips_dma_sync_sg_for_cpu(struct device *dev,
for
(
i
=
0
;
i
<
nelems
;
i
++
,
sg
++
)
__dma_sync
(
sg_page
(
sg
),
sg
->
offset
,
sg
->
length
,
direction
);
plat_post_dma_flush
(
dev
);
}
static
void
mips_dma_sync_sg_for_device
(
struct
device
*
dev
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录