diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-09-21 16:25:06 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2013-09-21 16:25:06 -0500 |
commit | c8707a316b131bd9f57dbd14f4e5dbeccf5eb057 (patch) | |
tree | 39997ea7b5070ab40817b6bb7d566ebc45ad8fca /c | |
parent | semopen.c: Address set but unused variable warning (diff) | |
download | rtems-c8707a316b131bd9f57dbd14f4e5dbeccf5eb057.tar.bz2 |
leon3/console.c: Fix misisng prototype issues
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/console/console.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/console/console.c b/c/src/lib/libbsp/sparc/leon3/console/console.c index 566b0581f6..1b1882d316 100644 --- a/c/src/lib/libbsp/sparc/leon3/console/console.c +++ b/c/src/lib/libbsp/sparc/leon3/console/console.c @@ -32,6 +32,7 @@ #include <assert.h> #include <rtems/bspIo.h> #include <amba.h> +#include <rtems/termiostypes.h> /* Let user override which on-chip APBUART will be debug UART * 0 = Default APBUART. On MP system CPU0=APBUART0, CPU1=APBUART1... @@ -142,10 +143,14 @@ int console_write_interrupt(int minor, const char *buf, int len) #else /* - * Console Termios Support Entry Points - * + * Prototypes to avoid warnings */ +ssize_t console_write_polled(int minor, const char *buf, size_t len); +int console_pollRead(int minor); +/* + * Console Termios Support Entry Points + */ ssize_t console_write_polled(int minor, const char *buf, size_t len) { int nwrite = 0, port; @@ -176,6 +181,14 @@ int console_pollRead(int minor) #endif +/* + * Prototypes to avoid warnings + */ +int console_set_attributes(int minor, const struct termios *t); +int find_matching_apbuart(struct ambapp_dev *dev, int index, void *arg); +int console_scan_uarts(void); + + int console_set_attributes(int minor, const struct termios *t) { unsigned int scaler; |