Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
1c03a55c
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
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看板
提交
1c03a55c
编写于
9月 10, 2008
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sparc64: Create and use psycho_pbm_init_common().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
a21cff3e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
46 deletion
+31
-46
arch/sparc64/kernel/pci_psycho.c
arch/sparc64/kernel/pci_psycho.c
+4
-28
arch/sparc64/kernel/pci_sabre.c
arch/sparc64/kernel/pci_sabre.c
+1
-18
arch/sparc64/kernel/psycho_common.c
arch/sparc64/kernel/psycho_common.c
+22
-0
arch/sparc64/kernel/psycho_common.h
arch/sparc64/kernel/psycho_common.h
+4
-0
未找到文件。
arch/sparc64/kernel/pci_psycho.c
浏览文件 @
1c03a55c
...
...
@@ -895,35 +895,8 @@ static void psycho_pbm_strbuf_init(struct pci_pbm_info *pbm,
static
void
__init
psycho_pbm_init
(
struct
pci_pbm_info
*
pbm
,
struct
of_device
*
op
,
int
is_pbm_a
)
{
struct
device_node
*
dp
=
op
->
node
;
pbm
->
next
=
pci_pbm_root
;
pci_pbm_root
=
pbm
;
pbm
->
numa_node
=
-
1
;
pbm
->
pci_ops
=
&
sun4u_pci_ops
;
pbm
->
config_space_reg_bits
=
8
;
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_PSYCHO
;
pbm
->
chip_version
=
of_getintprop_default
(
dp
,
"version#"
,
0
);
pbm
->
chip_revision
=
of_getintprop_default
(
dp
,
"module-revision#"
,
0
);
pbm
->
op
=
op
;
pbm
->
name
=
dp
->
full_name
;
printk
(
KERN_INFO
"%s: PSYCHO PCI Bus Module ver[%x:%x]
\n
"
,
pbm
->
name
,
pbm
->
chip_version
,
pbm
->
chip_revision
);
pci_determine_mem_io_space
(
pbm
);
pci_get_pbm_props
(
pbm
);
psycho_pbm_init_common
(
pbm
,
op
,
"PSYCHO"
,
PBM_CHIP_TYPE_PSYCHO
);
psycho_pbm_strbuf_init
(
pbm
,
is_pbm_a
);
psycho_scan_bus
(
pbm
,
&
op
->
dev
);
}
...
...
@@ -1009,6 +982,9 @@ static int __devinit psycho_probe(struct of_device *op,
psycho_pbm_init
(
pbm
,
op
,
is_pbm_a
);
pbm
->
next
=
pci_pbm_root
;
pci_pbm_root
=
pbm
;
if
(
pbm
->
sibling
)
pbm
->
sibling
->
sibling
=
pbm
;
...
...
arch/sparc64/kernel/pci_sabre.c
浏览文件 @
1c03a55c
...
...
@@ -678,24 +678,7 @@ static void __init sabre_scan_bus(struct pci_pbm_info *pbm,
static
void
__init
sabre_pbm_init
(
struct
pci_pbm_info
*
pbm
,
struct
of_device
*
op
)
{
struct
device_node
*
dp
=
op
->
node
;
pbm
->
name
=
dp
->
full_name
;
printk
(
"%s: SABRE PCI Bus Module
\n
"
,
pbm
->
name
);
pbm
->
numa_node
=
-
1
;
pbm
->
pci_ops
=
&
sun4u_pci_ops
;
pbm
->
config_space_reg_bits
=
8
;
pbm
->
index
=
pci_num_pbms
++
;
pbm
->
chip_type
=
PBM_CHIP_TYPE_SABRE
;
pbm
->
op
=
op
;
pci_get_pbm_props
(
pbm
);
pci_determine_mem_io_space
(
pbm
);
psycho_pbm_init_common
(
pbm
,
op
,
"SABRE"
,
PBM_CHIP_TYPE_SABRE
);
sabre_scan_bus
(
pbm
,
&
op
->
dev
);
}
...
...
arch/sparc64/kernel/psycho_common.c
浏览文件 @
1c03a55c
...
...
@@ -91,3 +91,25 @@ int psycho_iommu_init(struct pci_pbm_info *pbm, int tsbsize,
return
0
;
}
void
psycho_pbm_init_common
(
struct
pci_pbm_info
*
pbm
,
struct
of_device
*
op
,
const
char
*
chip_name
,
int
chip_type
)
{
struct
device_node
*
dp
=
op
->
node
;
pbm
->
name
=
dp
->
full_name
;
pbm
->
numa_node
=
-
1
;
pbm
->
chip_type
=
chip_type
;
pbm
->
chip_version
=
of_getintprop_default
(
dp
,
"version#"
,
0
);
pbm
->
chip_revision
=
of_getintprop_default
(
dp
,
"module-revision#"
,
0
);
pbm
->
op
=
op
;
pbm
->
pci_ops
=
&
sun4u_pci_ops
;
pbm
->
config_space_reg_bits
=
8
;
pbm
->
index
=
pci_num_pbms
++
;
pci_get_pbm_props
(
pbm
);
pci_determine_mem_io_space
(
pbm
);
printk
(
KERN_INFO
"%s: %s PCI Bus Module ver[%x:%x]
\n
"
,
pbm
->
name
,
chip_name
,
pbm
->
chip_version
,
pbm
->
chip_revision
);
}
arch/sparc64/kernel/psycho_common.h
浏览文件 @
1c03a55c
...
...
@@ -5,4 +5,8 @@ extern int psycho_iommu_init(struct pci_pbm_info *pbm, int tsbsize,
u32
dvma_offset
,
u32
dma_mask
,
unsigned
long
write_complete_offset
);
extern
void
psycho_pbm_init_common
(
struct
pci_pbm_info
*
pbm
,
struct
of_device
*
op
,
const
char
*
chip_name
,
int
chip_type
);
#endif
/* _PSYCHO_COMMON_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录