| #include "hw/char/lm32_juart.h" |
| #include "hw/qdev-properties.h" |
| static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq) |
| dev = qdev_create(NULL, "lm32-pic"); |
| sysbus_connect_irq(d, 0, cpu_irq); |
| static inline DeviceState *lm32_juart_init(Chardev *chr) |
| dev = qdev_create(NULL, TYPE_LM32_JUART); |
| qdev_prop_set_chr(dev, "chardev", chr); |
| static inline DeviceState *lm32_uart_create(hwaddr addr, |
| dev = qdev_create(NULL, "lm32-uart"); |
| qdev_prop_set_chr(dev, "chardev", chr); |
| sysbus_mmio_map(s, 0, addr); |
| sysbus_connect_irq(s, 0, irq); |