Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
ba494313
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ba494313
编写于
6月 15, 2009
作者:
E
Edgar E. Iglesias
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
etrax: Don't pass CPUState to peripherals.
Signed-off-by:
N
Edgar E. Iglesias
<
edgar.iglesias@gmail.com
>
上级
e510e05b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
10 addition
and
20 deletion
+10
-20
hw/axis_dev88.c
hw/axis_dev88.c
+3
-3
hw/etraxfs.c
hw/etraxfs.c
+3
-3
hw/etraxfs.h
hw/etraxfs.h
+1
-2
hw/etraxfs_dma.c
hw/etraxfs_dma.c
+1
-5
hw/etraxfs_dma.h
hw/etraxfs_dma.h
+1
-2
hw/etraxfs_eth.c
hw/etraxfs_eth.c
+1
-5
未找到文件。
hw/axis_dev88.c
浏览文件 @
ba494313
...
...
@@ -309,16 +309,16 @@ void axisdev88_init (ram_addr_t ram_size,
nmi
[
0
]
=
qdev_get_gpio_in
(
dev
,
30
);
nmi
[
1
]
=
qdev_get_gpio_in
(
dev
,
31
);
etraxfs_dmac
=
etraxfs_dmac_init
(
env
,
0x30000000
,
10
);
etraxfs_dmac
=
etraxfs_dmac_init
(
0x30000000
,
10
);
for
(
i
=
0
;
i
<
10
;
i
++
)
{
/* On ETRAX, odd numbered channels are inputs. */
etraxfs_dmac_connect
(
etraxfs_dmac
,
i
,
irq
+
7
+
i
,
i
&
1
);
}
/* Add the two ethernet blocks. */
eth
[
0
]
=
etraxfs_eth_init
(
&
nd_table
[
0
],
env
,
0x30034000
,
1
);
eth
[
0
]
=
etraxfs_eth_init
(
&
nd_table
[
0
],
0x30034000
,
1
);
if
(
nb_nics
>
1
)
eth
[
1
]
=
etraxfs_eth_init
(
&
nd_table
[
1
],
env
,
0x30036000
,
2
);
eth
[
1
]
=
etraxfs_eth_init
(
&
nd_table
[
1
],
0x30036000
,
2
);
/* The DMA Connector block is missing, hardwire things for now. */
etraxfs_dmac_connect_client
(
etraxfs_dmac
,
0
,
eth
[
0
]);
...
...
hw/etraxfs.c
浏览文件 @
ba494313
...
...
@@ -100,16 +100,16 @@ void bareetraxfs_init (ram_addr_t ram_size,
nmi
[
0
]
=
qdev_get_gpio_in
(
dev
,
30
);
nmi
[
1
]
=
qdev_get_gpio_in
(
dev
,
31
);
etraxfs_dmac
=
etraxfs_dmac_init
(
env
,
0x30000000
,
10
);
etraxfs_dmac
=
etraxfs_dmac_init
(
0x30000000
,
10
);
for
(
i
=
0
;
i
<
10
;
i
++
)
{
/* On ETRAX, odd numbered channels are inputs. */
etraxfs_dmac_connect
(
etraxfs_dmac
,
i
,
irq
+
7
+
i
,
i
&
1
);
}
/* Add the two ethernet blocks. */
eth
[
0
]
=
etraxfs_eth_init
(
&
nd_table
[
0
],
env
,
0x30034000
,
1
);
eth
[
0
]
=
etraxfs_eth_init
(
&
nd_table
[
0
],
0x30034000
,
1
);
if
(
nb_nics
>
1
)
eth
[
1
]
=
etraxfs_eth_init
(
&
nd_table
[
1
],
env
,
0x30036000
,
2
);
eth
[
1
]
=
etraxfs_eth_init
(
&
nd_table
[
1
],
0x30036000
,
2
);
/* The DMA Connector block is missing, hardwire things for now. */
etraxfs_dmac_connect_client
(
etraxfs_dmac
,
0
,
eth
[
0
]);
...
...
hw/etraxfs.h
浏览文件 @
ba494313
...
...
@@ -25,5 +25,4 @@
#include "etraxfs_dma.h"
qemu_irq
*
cris_pic_init_cpu
(
CPUState
*
env
);
void
*
etraxfs_eth_init
(
NICInfo
*
nd
,
CPUState
*
env
,
target_phys_addr_t
base
,
int
phyaddr
);
void
*
etraxfs_eth_init
(
NICInfo
*
nd
,
target_phys_addr_t
base
,
int
phyaddr
);
hw/etraxfs_dma.c
浏览文件 @
ba494313
...
...
@@ -186,8 +186,6 @@ struct fs_dma_channel
struct
fs_dma_ctrl
{
int
map
;
CPUState
*
env
;
int
nr_channels
;
struct
fs_dma_channel
*
channels
;
...
...
@@ -741,8 +739,7 @@ static void DMA_run(void *opaque)
qemu_bh_schedule_idle
(
etraxfs_dmac
->
bh
);
}
void
*
etraxfs_dmac_init
(
CPUState
*
env
,
target_phys_addr_t
base
,
int
nr_channels
)
void
*
etraxfs_dmac_init
(
target_phys_addr_t
base
,
int
nr_channels
)
{
struct
fs_dma_ctrl
*
ctrl
=
NULL
;
...
...
@@ -750,7 +747,6 @@ void *etraxfs_dmac_init(CPUState *env,
ctrl
->
bh
=
qemu_bh_new
(
DMA_run
,
ctrl
);
ctrl
->
env
=
env
;
ctrl
->
nr_channels
=
nr_channels
;
ctrl
->
channels
=
qemu_mallocz
(
sizeof
ctrl
->
channels
[
0
]
*
nr_channels
);
...
...
hw/etraxfs_dma.h
浏览文件 @
ba494313
...
...
@@ -13,8 +13,7 @@ struct etraxfs_dma_client
}
client
;
};
void
*
etraxfs_dmac_init
(
CPUState
*
env
,
target_phys_addr_t
base
,
int
nr_channels
);
void
*
etraxfs_dmac_init
(
target_phys_addr_t
base
,
int
nr_channels
);
void
etraxfs_dmac_connect
(
void
*
opaque
,
int
channel
,
qemu_irq
*
line
,
int
input
);
void
etraxfs_dmac_connect_client
(
void
*
opaque
,
int
c
,
...
...
hw/etraxfs_eth.c
浏览文件 @
ba494313
...
...
@@ -319,7 +319,6 @@ static void mdio_cycle(struct qemu_mdio *bus)
struct
fs_eth
{
CPUState
*
env
;
VLANClientState
*
vc
;
int
ethregs
;
...
...
@@ -565,8 +564,7 @@ static void eth_cleanup(VLANClientState *vc)
qemu_free
(
eth
);
}
void
*
etraxfs_eth_init
(
NICInfo
*
nd
,
CPUState
*
env
,
target_phys_addr_t
base
,
int
phyaddr
)
void
*
etraxfs_eth_init
(
NICInfo
*
nd
,
target_phys_addr_t
base
,
int
phyaddr
)
{
struct
etraxfs_dma_client
*
dma
=
NULL
;
struct
fs_eth
*
eth
=
NULL
;
...
...
@@ -574,7 +572,6 @@ void *etraxfs_eth_init(NICInfo *nd, CPUState *env,
qemu_check_nic_model
(
nd
,
"fseth"
);
dma
=
qemu_mallocz
(
sizeof
*
dma
*
2
);
eth
=
qemu_mallocz
(
sizeof
*
eth
);
dma
[
0
].
client
.
push
=
eth_tx_push
;
...
...
@@ -582,7 +579,6 @@ void *etraxfs_eth_init(NICInfo *nd, CPUState *env,
dma
[
1
].
client
.
opaque
=
eth
;
dma
[
1
].
client
.
pull
=
NULL
;
eth
->
env
=
env
;
eth
->
dma_out
=
dma
;
eth
->
dma_in
=
dma
+
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录