target-ppc: Use NARROW_MODE macro for comparisons
[qemu/agraf.git] / hw / lm32.h
blob236686ef2b554efe846cce86730c1502d35b533a
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 = SYS_BUS_DEVICE(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