summaryrefslogtreecommitdiff
path: root/uart.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-04-20 15:20:43 -0700
committerRichard Henderson <rth@twiddle.net>2011-04-22 07:04:56 -0700
commit6d3e153cf8b83306b8faa5e969d3f784a4d2b372 (patch)
tree710f9f4d9e5dfc80d219109c6477958e6dc56ded /uart.h
parent71b4db6096ad4f82bb297f2419e83301a41b0f95 (diff)
downloadqemu-palcode-6d3e153cf8b83306b8faa5e969d3f784a4d2b372.zip
qemu-palcode-6d3e153cf8b83306b8faa5e969d3f784a4d2b372.tar.gz
qemu-palcode-6d3e153cf8b83306b8faa5e969d3f784a4d2b372.tar.bz2
Implement CallPal_Cserve.
This is just good enough to handle the cserve_ena/dis used by the Linux kernel for managing interrupts.
Diffstat (limited to 'uart.h')
-rw-r--r--uart.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/uart.h b/uart.h
index b5f018d..48cceef 100644
--- a/uart.h
+++ b/uart.h
@@ -53,10 +53,13 @@ your own risk.
#define COM1 (com1Rbr - com2Rbr)
#define COM2 0
+#ifndef __ASSEMBLER__
+
extern int uart_charav(int port);
extern int uart_getchar(int port);
extern void uart_putchar(int port, char c);
extern void uart_puts(int port, const char *s);
extern void uart_init(void);
-#endif /* __UART_H_LOADED */
+#endif /* __ASSEMBLER__ */
+#endif /* __UART_H_LOADED */