mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
xilinx.h: Dont qdev_create from ethernet_create()
Pulled the qdev_create functionality out of xilinx_axiethernet_create() and pushed it up to the petalogix_ml605_mmu machine model. This makes the ethernet create+init process consistent with the AXI DMA. Renamed function to xilinx_axiethernet_init accordingly. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
0231ed4f22
commit
dada5c7e92
2 changed files with 7 additions and 12 deletions
|
@ -129,14 +129,16 @@ petalogix_ml605_init(QEMUMachineInitArgs *args)
|
|||
xilinx_timer_create(TIMER_BASEADDR, irq[2], 0, 100 * 1000000);
|
||||
|
||||
/* axi ethernet and dma initialization. */
|
||||
qemu_check_nic_model(&nd_table[0], "xlnx.axi-ethernet");
|
||||
eth0 = qdev_create(NULL, "xlnx.axi-ethernet");
|
||||
dma = qdev_create(NULL, "xlnx.axi-dma");
|
||||
|
||||
/* FIXME: attach to the sysbus instead */
|
||||
object_property_add_child(container_get(qdev_get_machine(), "/unattached"),
|
||||
"xilinx-dma", OBJECT(dma), NULL);
|
||||
|
||||
eth0 = xilinx_axiethernet_create(&nd_table[0], STREAM_SLAVE(dma),
|
||||
0x82780000, irq[3], 0x1000, 0x1000);
|
||||
xilinx_axiethernet_init(eth0, &nd_table[0], STREAM_SLAVE(dma),
|
||||
0x82780000, irq[3], 0x1000, 0x1000);
|
||||
|
||||
xilinx_axiethernetdma_init(dma, STREAM_SLAVE(eth0),
|
||||
0x84600000, irq[1], irq[0], 100 * 1000000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue