Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
75c46162
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,发现更多精彩内容 >>
提交
75c46162
编写于
7月 31, 2007
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh64: Kill off virt_to_bus()/bus_to_virt().
Follows the SH change. Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
da9d5108
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
10 deletion
+9
-10
arch/sh64/Kconfig
arch/sh64/Kconfig
+3
-0
arch/sh64/kernel/pci-dma.c
arch/sh64/kernel/pci-dma.c
+2
-2
include/asm-sh64/dma-mapping.h
include/asm-sh64/dma-mapping.h
+4
-4
include/asm-sh64/io.h
include/asm-sh64/io.h
+0
-4
未找到文件。
arch/sh64/Kconfig
浏览文件 @
75c46162
...
...
@@ -47,6 +47,9 @@ config ARCH_HAS_ILOG2_U64
bool
default n
config ARCH_NO_VIRT_TO_BUS
def_bool y
source init/Kconfig
menu "System type"
...
...
arch/sh64/kernel/pci-dma.c
浏览文件 @
75c46162
...
...
@@ -30,7 +30,7 @@ void *consistent_alloc(struct pci_dev *hwdev, size_t size,
if
(
vp
!=
NULL
)
{
memset
(
vp
,
0
,
size
);
*
dma_handle
=
virt_to_
bu
s
(
ret
);
*
dma_handle
=
virt_to_
phy
s
(
ret
);
dma_cache_wback_inv
((
unsigned
long
)
ret
,
size
);
}
...
...
@@ -42,7 +42,7 @@ void consistent_free(struct pci_dev *hwdev, size_t size,
{
void
*
alloc
;
alloc
=
bu
s_to_virt
((
unsigned
long
)
dma_handle
);
alloc
=
phy
s_to_virt
((
unsigned
long
)
dma_handle
);
free_pages
((
unsigned
long
)
alloc
,
get_order
(
size
));
iounmap
(
vaddr
);
...
...
include/asm-sh64/dma-mapping.h
浏览文件 @
75c46162
...
...
@@ -51,11 +51,11 @@ static inline dma_addr_t dma_map_single(struct device *dev,
{
#if defined(CONFIG_PCI) && !defined(CONFIG_SH_PCIDMA_NONCOHERENT)
if
(
dev
->
bus
==
&
pci_bus_type
)
return
virt_to_
bu
s
(
ptr
);
return
virt_to_
phy
s
(
ptr
);
#endif
dma_cache_sync
(
dev
,
ptr
,
size
,
dir
);
return
virt_to_
bu
s
(
ptr
);
return
virt_to_
phy
s
(
ptr
);
}
#define dma_unmap_single(dev, addr, size, dir) do { } while (0)
...
...
@@ -98,7 +98,7 @@ static inline void dma_sync_single(struct device *dev, dma_addr_t dma_handle,
if
(
dev
->
bus
==
&
pci_bus_type
)
return
;
#endif
dma_cache_sync
(
dev
,
bu
s_to_virt
(
dma_handle
),
size
,
dir
);
dma_cache_sync
(
dev
,
phy
s_to_virt
(
dma_handle
),
size
,
dir
);
}
static
inline
void
dma_sync_single_range
(
struct
device
*
dev
,
...
...
@@ -110,7 +110,7 @@ static inline void dma_sync_single_range(struct device *dev,
if
(
dev
->
bus
==
&
pci_bus_type
)
return
;
#endif
dma_cache_sync
(
dev
,
bu
s_to_virt
(
dma_handle
)
+
offset
,
size
,
dir
);
dma_cache_sync
(
dev
,
phy
s_to_virt
(
dma_handle
)
+
offset
,
size
,
dir
);
}
static
inline
void
dma_sync_sg
(
struct
device
*
dev
,
struct
scatterlist
*
sg
,
...
...
include/asm-sh64/io.h
浏览文件 @
75c46162
...
...
@@ -31,10 +31,6 @@
#include <asm/page.h>
#include <asm-generic/iomap.h>
#define virt_to_bus virt_to_phys
#define bus_to_virt phys_to_virt
#define page_to_bus page_to_phys
/*
* Nothing overly special here.. instead of doing the same thing
* over and over again, we just define a set of sh64_in/out functions
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录