aboutsummaryrefslogtreecommitdiff
path: root/src/hw/serialio.c
AgeCommit message (Collapse)AuthorFilesLines
2023-10-14parisc/serialio: Use portaddr_t type for DebugOutputPortHelge Deller1-1/+2
Signed-off-by: Helge Deller <deller@gmx.de>
2021-09-24Add portaddr_t typedef to specify I/O port addressesHelge Deller1-1/+1
On x86 I/O ports are located below address 0x4000, while on PA-RISC I/O ports are allowed in the whole 32/64 bit address space. So, introduce a portaddr_t typedef which defaults to the current u16 type on x86 and to unsigned long on PA-RISC. Signed-off-by: Helge Deller <deller@gmx.de>
2020-06-24serialio: Preserve Xen DebugOutputPortJason Andryuk1-0/+4
xen_preinit() runs early and changes DebugOutputPort. qemu_preinit() runs soon after. inb on DebugOutputPort doesn't work on Xen, so the check will always fail and DebugOutputPort will be cleared to 0 disabling output. Quick exit the function when running on Xen to preserve the modified DebugOutputPort. Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
2018-12-10qemu: avoid debug prints if debugcon is not enabledStefano Garzarella1-2/+14
In order to speed up the boot phase, we can check the QEMU debugcon device, and disable the writes if it is not recognized. This patch allow us to save around 10 msec (time measured between SeaBIOS entry point and "linuxboot" entry point) when CONFIG_DEBUG_LEVEL=1 and debugcon is not enabled. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2016-12-30serialio: Support for mmap serial portsRicardo Ribalda Delgado1-10/+34
Some chipsets have memory mapped serial ports. The protocol is the same as an standard uart, but with memory read/write instead of inb/outb. Tested-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2013-12-04Move low-level hardware writing from output.c to new file hw/serialio.c.Kevin O'Connor1-0/+89
Avoid hardware specific code in output.c. This will reduce the amount of change needed to output.c as support for more serial hardware is added. This patch also renames some functions to improve the naming scheme. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>