196b225fc45d6b8ee738aaeec755ea6714aea408
1 #include <aros/kernel.h>
3 #include <kernel_base.h>
4 #include <kernel_debug.h>
6 #include <asm/amcc440.h>
9 /*****************************************************************************
12 #include <proto/kernel.h>
14 AROS_LH0(int, KrnMayGetChar
,
19 struct KernelBase
*, KernelBase
, 26, Kernel
)
22 Read a single character from low-level debug input stream
28 An ASCII code of the character or -1 if there's no character
32 This function never waits. If there is no character available on
33 the stream it just returns with -1
43 ******************************************************************************/
47 if (inb(UART0_LSR
) & UART_LSR_DR
)
48 return inb(UART0_RBR
);