mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
10315a7089
commit
9fac5d88ee
3 changed files with 12 additions and 21 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue