diff options
author | Peter Crosthwaite <peter.crosthwaite@xilinx.com> | 2014-02-25 16:41:49 -0800 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@xilinx.com> | 2014-02-26 14:54:45 +1000 |
commit | d91a68a73b6457c22b743e158e36894ccaa489bc (patch) | |
tree | cd04a409cef60138f22a08db2067820bdb93dcfb /include/hw | |
parent | b8d4e1c43b06caadf96c350511201fd50642e4f2 (diff) | |
download | qemu-d91a68a73b6457c22b743e158e36894ccaa489bc.zip qemu-d91a68a73b6457c22b743e158e36894ccaa489bc.tar.gz qemu-d91a68a73b6457c22b743e158e36894ccaa489bc.tar.bz2 |
xilinx: Inline usages of xilinx_axi*_init()
Inline the only usage of each of xilinx_axiethernet_init and
xilinx_axidma_init. Converts this init to at least a semi-recent QOM
styling.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/xilinx.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/include/hw/xilinx.h b/include/hw/xilinx.h index 161f9ec..f06d913 100644 --- a/include/hw/xilinx.h +++ b/include/hw/xilinx.h @@ -7,37 +7,4 @@ #include "hw/stream.h" #include "net/net.h" -static inline void -xilinx_axiethernet_init(DeviceState *dev, NICInfo *nd, StreamSlave *ds, - StreamSlave *cs, hwaddr base, qemu_irq irq, int txmem, - int rxmem) -{ - qdev_set_nic_properties(dev, nd); - qdev_prop_set_uint32(dev, "rxmem", rxmem); - qdev_prop_set_uint32(dev, "txmem", txmem); - object_property_set_link(OBJECT(dev), OBJECT(ds), - "axistream-connected", &error_abort); - object_property_set_link(OBJECT(dev), OBJECT(cs), - "axistream-control-connected", &error_abort); - qdev_init_nofail(dev); - sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); - sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq); -} - -static inline void -xilinx_axidma_init(DeviceState *dev, StreamSlave *ds, StreamSlave *cs, - hwaddr base, qemu_irq irq, qemu_irq irq2, int freqhz) -{ - qdev_prop_set_uint32(dev, "freqhz", freqhz); - object_property_set_link(OBJECT(dev), OBJECT(ds), - "axistream-connected", &error_abort); - object_property_set_link(OBJECT(dev), OBJECT(cs), - "axistream-control-connected", &error_abort); - qdev_init_nofail(dev); - - sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); - sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq); - sysbus_connect_irq(SYS_BUS_DEVICE(dev), 1, irq2); -} - #endif |