]> git.proxmox.com Git - qemu.git/blame - hw/lm32.h
user: Restore debug usage message for '-d ?' in user mode emulation
[qemu.git] / hw / lm32.h
CommitLineData
f89286ae
MW
1
2#include "qemu-common.h"
3
4static inline DeviceState *lm32_pic_init(qemu_irq cpu_irq)
5{
6 DeviceState *dev;
7 SysBusDevice *d;
8
9 dev = qdev_create(NULL, "lm32-pic");
10 qdev_init_nofail(dev);
11 d = sysbus_from_qdev(dev);
12 sysbus_connect_irq(d, 0, cpu_irq);
13
14 return dev;
15}
16
17static inline DeviceState *lm32_juart_init(void)
18{
19 DeviceState *dev;
20
21 dev = qdev_create(NULL, "lm32-juart");
22 qdev_init_nofail(dev);
23
24 return dev;
25}