s390x/ioinst: set type and len for SEI response
[qemu.git] / hw / lm32 / lm32.h
blob18aa6fdc15cc6a869858d7a1fc5ad4cb2b299a10
1 #ifndef HW_LM32_H
2 #define HW_LM32_H 1
4 #include "hw/char/lm32_juart.h"
6 static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
8 DeviceState *dev;
9 SysBusDevice *d;
11 dev = qdev_create(NULL, "lm32-pic");
12 qdev_init_nofail(dev);
13 d = SYS_BUS_DEVICE(dev);
14 sysbus_connect_irq(d, 0, cpu_irq);
16 return dev;
19 static inline DeviceState *lm32_juart_init(void)
21 DeviceState *dev;
23 dev = qdev_create(NULL, TYPE_LM32_JUART);
24 qdev_init_nofail(dev);
26 return dev;
29 #endif