diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-11-26 09:11:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-02-04 14:54:27 +0100 |
commit | 1d5d6de35eef83082f214926d3f1920079a09f8e (patch) | |
tree | 04fb955416c8cc98c4f4abe2ed39b10753e9c300 /c/src/lib/libbsp/sparc/leon3/include/leon.h | |
parent | bsp/leon3: Avoid copy and paste in console driver (diff) | |
download | rtems-1d5d6de35eef83082f214926d3f1920079a09f8e.tar.bz2 |
bsp/leon3: Console driver changes
Move declaration of global variables and functions to <leon.h> header
file. Make several global variables and functions static.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon3/include/leon.h')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/include/leon.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h index 21a46a8c8d..694622f58a 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/leon.h +++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h @@ -273,6 +273,43 @@ static inline unsigned int leon_r32_no_cache(uintptr_t addr) return tmp; } +/* Let user override which on-chip APBUART will be debug UART + * 0 = Default APBUART. On MP system CPU0=APBUART0, CPU1=APBUART1... + * 1 = APBUART[0] + * 2 = APBUART[1] + * 3 = APBUART[2] + * ... + */ +extern int syscon_uart_index; + +/* Let user override which on-chip APBUART will be debug UART + * 0 = Default APBUART. On MP system CPU0=APBUART0, CPU1=APBUART1... + * 1 = APBUART[0] + * 2 = APBUART[1] + * 3 = APBUART[2] + * ... + */ +extern int debug_uart_index; + +/* + * apbuart_outbyte_polled + * + * This routine transmits a character using polling. + */ +void apbuart_outbyte_polled( + struct apbuart_regs *regs, + unsigned char ch, + int do_cr_on_newline, + int wait_sent +); + +/* + * apbuart_inbyte_nonblocking + * + * This routine polls for a character. + */ +int apbuart_inbyte_nonblocking(struct apbuart_regs *regs); + #endif /* !ASM */ #ifdef __cplusplus |