Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / ppc-sam440 / kernel / maygetchar.c
blobd0f59f21d524da63dc21705d046ef21b6779da17
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/kernel.h>
8 #include <kernel_base.h>
9 #include <kernel_debug.h>
11 #include <asm/amcc440.h>
12 #include <asm/io.h>
14 #include <proto/kernel.h>
16 /* See rom/kernel/maygetchar.c for documentation */
18 AROS_LH0(int, KrnMayGetChar,
19 struct KernelBase *, KernelBase, 26, Kernel)
21 AROS_LIBFUNC_INIT
23 if (inb(UART0_LSR) & UART_LSR_DR)
24 return inb(UART0_RBR);
26 return -1;
28 AROS_LIBFUNC_EXIT