summaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-05-02 10:46:14 -0700
committerRichard Henderson <rth@twiddle.net>2011-05-02 10:46:14 -0700
commitee671d4ef86346e8d10cd0474aad998c16aa0383 (patch)
treed81fe5e4f49bc2fd0990a686283bd332c67bc59b /uart.c
parent2441ea1234e5b4399954ca64a101794cf6e813b3 (diff)
downloadqemu-palcode-ee671d4ef86346e8d10cd0474aad998c16aa0383.zip
qemu-palcode-ee671d4ef86346e8d10cd0474aad998c16aa0383.tar.gz
qemu-palcode-ee671d4ef86346e8d10cd0474aad998c16aa0383.tar.bz2
Implement the console callback interface.
At least enough for GETC and PUTS.
Diffstat (limited to 'uart.c')
-rw-r--r--uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uart.c b/uart.c
index 2e93482..56e1cc7 100644
--- a/uart.c
+++ b/uart.c
@@ -51,7 +51,7 @@ uart_getchar(int offset)
return inb(com2Rbr + offset);
}
-static void
+void
uart_putchar_raw(int offset, char c)
{
while ((inb(com2Lsr + offset) & 0x20) == 0)
@@ -74,7 +74,7 @@ uart_puts(int offset, const char *s)
uart_putchar(offset, *s++);
}
-static void
+void
uart_init_line(int offset, int baud)
{
int i;