qemu-ga: qmp_guest_network_get_interfaces(): get rid of snprintf() + error_set()
[qemu/ar7.git] / hw / lm32.h
blob4194c9a813e7dd5611161f29cd143ba330ae693e
1 #ifndef HW_LM32_H
2 #define HW_LM32_H 1
5 #include "qemu-common.h"
7 static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
9 DeviceState *dev;
10 SysBusDevice *d;
12 dev = qdev_create(NULL, "lm32-pic");
13 qdev_init_nofail(dev);
14 d = sysbus_from_qdev(dev);
15 sysbus_connect_irq(d, 0, cpu_irq);
17 return dev;
20 static inline DeviceState *lm32_juart_init(void)
22 DeviceState *dev;
24 dev = qdev_create(NULL, "lm32-juart");
25 qdev_init_nofail(dev);
27 return dev;
30 #endif