Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
fdcc205f
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
fdcc205f
编写于
7月 04, 2011
作者:
T
Tony Lindgren
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'iommu-for-tony' of
git://github.com/ohadbc/omap-iommu
into devel-fixes
上级
be741de1
fee17d4f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
arch/arm/mach-omap2/iommu2.c
arch/arm/mach-omap2/iommu2.c
+2
-2
arch/arm/mach-omap2/omap-iommu.c
arch/arm/mach-omap2/omap-iommu.c
+1
-1
arch/arm/plat-omap/iovmm.c
arch/arm/plat-omap/iovmm.c
+3
-3
未找到文件。
arch/arm/mach-omap2/iommu2.c
浏览文件 @
fdcc205f
...
@@ -225,8 +225,8 @@ static u32 omap2_get_pte_attr(struct iotlb_entry *e)
...
@@ -225,8 +225,8 @@ static u32 omap2_get_pte_attr(struct iotlb_entry *e)
attr
=
e
->
mixed
<<
5
;
attr
=
e
->
mixed
<<
5
;
attr
|=
e
->
endian
;
attr
|=
e
->
endian
;
attr
|=
e
->
elsz
>>
3
;
attr
|=
e
->
elsz
>>
3
;
attr
<<=
((
e
->
pgsz
&
MMU_CAM_PGSZ_4K
)
?
0
:
6
);
attr
<<=
((
(
e
->
pgsz
==
MMU_CAM_PGSZ_4K
)
||
(
e
->
pgsz
==
MMU_CAM_PGSZ_64K
))
?
0
:
6
);
return
attr
;
return
attr
;
}
}
...
...
arch/arm/mach-omap2/omap-iommu.c
浏览文件 @
fdcc205f
...
@@ -67,7 +67,7 @@ static struct iommu_device omap4_devices[] = {
...
@@ -67,7 +67,7 @@ static struct iommu_device omap4_devices[] = {
.
pdata
=
{
.
pdata
=
{
.
name
=
"ducati"
,
.
name
=
"ducati"
,
.
nr_tlb_entries
=
32
,
.
nr_tlb_entries
=
32
,
.
clk_name
=
"
ducati_i
ck"
,
.
clk_name
=
"
ipu_f
ck"
,
.
da_start
=
0x0
,
.
da_start
=
0x0
,
.
da_end
=
0xFFFFF000
,
.
da_end
=
0xFFFFF000
,
},
},
...
...
arch/arm/plat-omap/iovmm.c
浏览文件 @
fdcc205f
...
@@ -72,7 +72,7 @@ static size_t sgtable_len(const struct sg_table *sgt)
...
@@ -72,7 +72,7 @@ static size_t sgtable_len(const struct sg_table *sgt)
for_each_sg
(
sgt
->
sgl
,
sg
,
sgt
->
nents
,
i
)
{
for_each_sg
(
sgt
->
sgl
,
sg
,
sgt
->
nents
,
i
)
{
size_t
bytes
;
size_t
bytes
;
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
if
(
!
iopgsz_ok
(
bytes
))
{
if
(
!
iopgsz_ok
(
bytes
))
{
pr_err
(
"%s: sg[%d] not iommu pagesize(%x)
\n
"
,
pr_err
(
"%s: sg[%d] not iommu pagesize(%x)
\n
"
,
...
@@ -198,7 +198,7 @@ static void *vmap_sg(const struct sg_table *sgt)
...
@@ -198,7 +198,7 @@ static void *vmap_sg(const struct sg_table *sgt)
int
err
;
int
err
;
pa
=
sg_phys
(
sg
);
pa
=
sg_phys
(
sg
);
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
BUG_ON
(
bytes
!=
PAGE_SIZE
);
BUG_ON
(
bytes
!=
PAGE_SIZE
);
...
@@ -476,7 +476,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new,
...
@@ -476,7 +476,7 @@ static int map_iovm_area(struct iommu *obj, struct iovm_struct *new,
struct
iotlb_entry
e
;
struct
iotlb_entry
e
;
pa
=
sg_phys
(
sg
);
pa
=
sg_phys
(
sg
);
bytes
=
sg
_dma_len
(
sg
)
;
bytes
=
sg
->
length
;
flags
&=
~
IOVMF_PGSZ_MASK
;
flags
&=
~
IOVMF_PGSZ_MASK
;
pgsz
=
bytes_to_iopgsz
(
bytes
);
pgsz
=
bytes_to_iopgsz
(
bytes
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录