Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
c2609267
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看板
提交
c2609267
编写于
2月 12, 2006
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPARC64]: Implement basic pci_sun4v_scan_bus().
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
3833789b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
46 addition
and
3 deletion
+46
-3
arch/sparc64/kernel/pci_sun4v.c
arch/sparc64/kernel/pci_sun4v.c
+46
-3
未找到文件。
arch/sparc64/kernel/pci_sun4v.c
浏览文件 @
c2609267
...
...
@@ -566,9 +566,50 @@ static struct pci_ops pci_sun4v_ops = {
};
static
void
pbm_scan_bus
(
struct
pci_controller_info
*
p
,
struct
pci_pbm_info
*
pbm
)
{
struct
pcidev_cookie
*
cookie
=
kmalloc
(
sizeof
(
*
cookie
),
GFP_KERNEL
);
if
(
!
cookie
)
{
prom_printf
(
"%s: Critical allocation failure.
\n
"
,
pbm
->
name
);
prom_halt
();
}
/* All we care about is the PBM. */
memset
(
cookie
,
0
,
sizeof
(
*
cookie
));
cookie
->
pbm
=
pbm
;
pbm
->
pci_bus
=
pci_scan_bus
(
pbm
->
pci_first_busno
,
p
->
pci_ops
,
pbm
);
pci_fixup_host_bridge_self
(
pbm
->
pci_bus
);
pbm
->
pci_bus
->
self
->
sysdata
=
cookie
;
pci_fill_in_pbm_cookies
(
pbm
->
pci_bus
,
pbm
,
pbm
->
prom_node
);
pci_record_assignments
(
pbm
,
pbm
->
pci_bus
);
pci_assign_unassigned
(
pbm
,
pbm
->
pci_bus
);
pci_fixup_irq
(
pbm
,
pbm
->
pci_bus
);
pci_determine_66mhz_disposition
(
pbm
,
pbm
->
pci_bus
);
pci_setup_busmastering
(
pbm
,
pbm
->
pci_bus
);
}
static
void
pci_sun4v_scan_bus
(
struct
pci_controller_info
*
p
)
{
/* XXX Implement me! XXX */
if
(
p
->
pbm_A
.
prom_node
)
{
p
->
pbm_A
.
is_66mhz_capable
=
prom_getbool
(
p
->
pbm_A
.
prom_node
,
"66mhz-capable"
);
pbm_scan_bus
(
p
,
&
p
->
pbm_A
);
}
if
(
p
->
pbm_B
.
prom_node
)
{
p
->
pbm_B
.
is_66mhz_capable
=
prom_getbool
(
p
->
pbm_B
.
prom_node
,
"66mhz-capable"
);
pbm_scan_bus
(
p
,
&
p
->
pbm_B
);
}
/* XXX register error interrupt handlers XXX */
}
static
unsigned
int
pci_sun4v_irq_build
(
struct
pci_pbm_info
*
pbm
,
...
...
@@ -579,7 +620,6 @@ static unsigned int pci_sun4v_irq_build(struct pci_pbm_info *pbm,
return
0
;
}
/* XXX correct? XXX */
static
void
pci_sun4v_base_address_update
(
struct
pci_dev
*
pdev
,
int
resource
)
{
struct
pcidev_cookie
*
pcp
=
pdev
->
sysdata
;
...
...
@@ -598,6 +638,7 @@ static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource)
return
;
}
/* XXX 64-bit MEM handling is not %100 correct... XXX */
is_64bit
=
0
;
if
(
res
->
flags
&
IORESOURCE_IO
)
root
=
&
pbm
->
io_space
;
...
...
@@ -625,7 +666,6 @@ static void pci_sun4v_base_address_update(struct pci_dev *pdev, int resource)
pci_write_config_dword
(
pdev
,
where
+
4
,
0
);
}
/* XXX correct? XXX */
static
void
pci_sun4v_resource_adjust
(
struct
pci_dev
*
pdev
,
struct
resource
*
res
,
struct
resource
*
root
)
...
...
@@ -668,6 +708,9 @@ static void pci_sun4v_determine_mem_io_space(struct pci_pbm_info *pbm)
saw_mem
=
1
;
break
;
case
3
:
/* XXX 64-bit MEM handling XXX */
default:
break
;
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录