Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b1387c35
cloud-kernel
项目概览
openanolis
/
cloud-kernel
12 个月 前同步成功
通知
152
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,发现更多精彩内容 >>
提交
b1387c35
编写于
8月 27, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc32: Kill mmu_translate_dvma and implementations.
No longer used. Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
aba945e7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
0 addition
and
34 deletion
+0
-34
arch/sparc/include/asm/dma.h
arch/sparc/include/asm/dma.h
+0
-2
arch/sparc/mm/io-unit.c
arch/sparc/mm/io-unit.c
+0
-14
arch/sparc/mm/iommu.c
arch/sparc/mm/iommu.c
+0
-10
arch/sparc/mm/sun4c.c
arch/sparc/mm/sun4c.c
+0
-8
未找到文件。
arch/sparc/include/asm/dma.h
浏览文件 @
b1387c35
...
...
@@ -132,12 +132,10 @@ BTFIXUPDEF_CALL(void, mmu_release_scsi_sgl, struct device *, struct scatterlist
* to a separate mapping function for CPU visible mappings.
*/
BTFIXUPDEF_CALL
(
int
,
mmu_map_dma_area
,
dma_addr_t
*
,
unsigned
long
,
unsigned
long
,
int
len
)
BTFIXUPDEF_CALL
(
struct
page
*
,
mmu_translate_dvma
,
unsigned
long
busa
)
BTFIXUPDEF_CALL
(
void
,
mmu_unmap_dma_area
,
unsigned
long
busa
,
int
len
)
#define mmu_map_dma_area(pba,va,a,len) BTFIXUP_CALL(mmu_map_dma_area)(pba,va,a,len)
#define mmu_unmap_dma_area(ba,len) BTFIXUP_CALL(mmu_unmap_dma_area)(ba,len)
#define mmu_translate_dvma(ba) BTFIXUP_CALL(mmu_translate_dvma)(ba)
#endif
#endif
/* !(_ASM_SPARC_DMA_H) */
arch/sparc/mm/io-unit.c
浏览文件 @
b1387c35
...
...
@@ -233,19 +233,6 @@ static void iounit_unmap_dma_area(unsigned long addr, int len)
{
/* XXX Somebody please fill this in */
}
/* XXX We do not pass sbus device here, bad. */
static
struct
page
*
iounit_translate_dvma
(
unsigned
long
addr
)
{
struct
sbus_bus
*
sbus
=
sbus_root
;
/* They are all the same */
struct
iounit_struct
*
iounit
=
sbus
->
ofdev
.
dev
.
archdata
.
iommu
;
int
i
;
iopte_t
*
iopte
;
i
=
((
addr
-
IOUNIT_DMA_BASE
)
>>
PAGE_SHIFT
);
iopte
=
(
iopte_t
*
)(
iounit
->
page_table
+
i
);
return
pfn_to_page
(
iopte_val
(
*
iopte
)
>>
(
PAGE_SHIFT
-
4
));
/* XXX sun4d guru, help */
}
#endif
static
char
*
iounit_lockarea
(
char
*
vaddr
,
unsigned
long
len
)
...
...
@@ -272,7 +259,6 @@ void __init ld_mmu_iounit(void)
#ifdef CONFIG_SBUS
BTFIXUPSET_CALL
(
mmu_map_dma_area
,
iounit_map_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_unmap_dma_area
,
iounit_unmap_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_translate_dvma
,
iounit_translate_dvma
,
BTFIXUPCALL_NORM
);
#endif
}
...
...
arch/sparc/mm/iommu.c
浏览文件 @
b1387c35
...
...
@@ -421,15 +421,6 @@ static void iommu_unmap_dma_area(unsigned long busa, int len)
iommu_invalidate
(
iommu
->
regs
);
bit_map_clear
(
&
iommu
->
usemap
,
ioptex
,
len
>>
PAGE_SHIFT
);
}
static
struct
page
*
iommu_translate_dvma
(
unsigned
long
busa
)
{
struct
iommu_struct
*
iommu
=
sbus_root
->
ofdev
.
dev
.
archdata
.
iommu
;
iopte_t
*
iopte
=
iommu
->
page_table
;
iopte
+=
((
busa
-
iommu
->
start
)
>>
PAGE_SHIFT
);
return
pfn_to_page
((
iopte_val
(
*
iopte
)
&
IOPTE_PAGE
)
>>
(
PAGE_SHIFT
-
4
));
}
#endif
static
char
*
iommu_lockarea
(
char
*
vaddr
,
unsigned
long
len
)
...
...
@@ -465,7 +456,6 @@ void __init ld_mmu_iommu(void)
#ifdef CONFIG_SBUS
BTFIXUPSET_CALL
(
mmu_map_dma_area
,
iommu_map_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_unmap_dma_area
,
iommu_unmap_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_translate_dvma
,
iommu_translate_dvma
,
BTFIXUPCALL_NORM
);
#endif
if
(
viking_mxcc_present
||
srmmu_modtype
==
HyperSparc
)
{
...
...
arch/sparc/mm/sun4c.c
浏览文件 @
b1387c35
...
...
@@ -555,13 +555,6 @@ static int sun4c_map_dma_area(dma_addr_t *pba, unsigned long va,
return
0
;
}
static
struct
page
*
sun4c_translate_dvma
(
unsigned
long
busa
)
{
/* Fortunately for us, bus_addr == uncached_virt in sun4c. */
unsigned
long
pte
=
sun4c_get_pte
(
busa
);
return
pfn_to_page
(
pte
&
SUN4C_PFN_MASK
);
}
static
void
sun4c_unmap_dma_area
(
unsigned
long
busa
,
int
len
)
{
/* Fortunately for us, bus_addr == uncached_virt in sun4c. */
...
...
@@ -2263,7 +2256,6 @@ void __init ld_mmu_sun4c(void)
BTFIXUPSET_CALL
(
mmu_map_dma_area
,
sun4c_map_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_unmap_dma_area
,
sun4c_unmap_dma_area
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
mmu_translate_dvma
,
sun4c_translate_dvma
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
sparc_mapiorange
,
sun4c_mapiorange
,
BTFIXUPCALL_NORM
);
BTFIXUPSET_CALL
(
sparc_unmapiorange
,
sun4c_unmapiorange
,
BTFIXUPCALL_NORM
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录