mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
grlib, apbuart: get rid of the old-style create function
Suggested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Signed-off-by: KONRAD Frederic <frederic.konrad@adacore.com> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
948caec873
commit
b70447aaea
3 changed files with 11 additions and 22 deletions
|
@ -45,24 +45,6 @@ void grlib_irqmp_ack(DeviceState *dev, int intno);
|
|||
#define TYPE_GRLIB_GPTIMER "grlib,gptimer"
|
||||
|
||||
/* APB UART */
|
||||
|
||||
static inline
|
||||
DeviceState *grlib_apbuart_create(hwaddr base,
|
||||
Chardev *serial,
|
||||
qemu_irq irq)
|
||||
{
|
||||
DeviceState *dev;
|
||||
|
||||
dev = qdev_create(NULL, "grlib,apbuart");
|
||||
qdev_prop_set_chr(dev, "chrdev", serial);
|
||||
|
||||
qdev_init_nofail(dev);
|
||||
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);
|
||||
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, irq);
|
||||
|
||||
return dev;
|
||||
}
|
||||
#define TYPE_GRLIB_APB_UART "grlib,apbuart"
|
||||
|
||||
#endif /* GRLIB_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue