[rtems commit] leon3/console.c: Fix misisng prototype issues
Joel Sherrill
joel at rtems.org
Sat Sep 21 21:19:52 UTC 2013
Module: rtems
Branch: master
Commit: c8707a316b131bd9f57dbd14f4e5dbeccf5eb057
Changeset: http://git.rtems.org/rtems/commit/?id=c8707a316b131bd9f57dbd14f4e5dbeccf5eb057
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sat Sep 21 16:25:06 2013 -0500
leon3/console.c: Fix misisng prototype issues
---
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 566b058..1b1882d 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;
More information about the vc
mailing list