summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorMarc-André Lureau2019-10-23 15:29:55 +0200
committerMarc-André Lureau2020-01-07 14:24:29 +0100
commit9fac5d88ee1a81dca643a62bfce5a2364b437bfa (patch)
tree8e79afdcc67803fa30097a426165f7eddc7e8019 /include/hw
parentserial: make SerialIO a sysbus device (diff)
downloadqemu-9fac5d88ee1a81dca643a62bfce5a2364b437bfa.tar.gz
qemu-9fac5d88ee1a81dca643a62bfce5a2364b437bfa.tar.xz
qemu-9fac5d88ee1a81dca643a62bfce5a2364b437bfa.zip
mips: inline serial_init()
The function is specific to mipssim, let's inline it. (when inlining, we use a DeviceState variable instead of SerialIO, as it is the most common type used, and avoids having too many casts) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/char/serial.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/hw/char/serial.h b/include/hw/char/serial.h
index d356ba838c..535fa23a2b 100644
--- a/include/hw/char/serial.h
+++ b/include/hw/char/serial.h
@@ -108,8 +108,6 @@ void serial_set_frequency(SerialState *s, uint32_t frequency);
#define TYPE_SERIAL_IO "serial-io"
#define SERIAL_IO(s) OBJECT_CHECK(SerialIO, (s), TYPE_SERIAL_IO)
-SerialIO *serial_init(int base, qemu_irq irq, int baudbase,
- Chardev *chr, MemoryRegion *system_io);
SerialMM *serial_mm_init(MemoryRegion *address_space,
hwaddr base, int regshift,
qemu_irq irq, int baudbase,