summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme136/console/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme136/console/console.c')
-rw-r--r--c/src/lib/libbsp/m68k/mvme136/console/console.c60
1 files changed, 6 insertions, 54 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme136/console/console.c b/c/src/lib/libbsp/m68k/mvme136/console/console.c
index 111fd7b893..ce8fa8de72 100644
--- a/c/src/lib/libbsp/m68k/mvme136/console/console.c
+++ b/c/src/lib/libbsp/m68k/mvme136/console/console.c
@@ -1,7 +1,9 @@
/*
* This file contains the MVME136 console IO package.
- *
- * COPYRIGHT (c) 1989-1999.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2014.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -15,19 +17,10 @@
volatile struct r_m681_info *_Read_m681; /* M68681 read registers */
volatile struct w_m681_info *_Write_m681; /* M68681 write registers */
-
-
/* console_initialize
*
* This routine initializes the console IO driver.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values:
*/
-
rtems_device_driver console_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -51,41 +44,11 @@ rtems_device_driver console_initialize(
return RTEMS_SUCCESSFUL;
}
-/* is_character_ready
- *
- * This routine returns TRUE if a character is available.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values:
- */
-
-bool is_character_ready(
- char *ch
-)
-{
- if ( !(_Read_m681->srb & RXRDYB) )
- return false;
-
- *ch = _Read_m681->rbb;
- return true;
-}
-
/* inbyte
*
* This routine reads a character from the UART.
- *
- * Input parameters: NONE
- *
- * Output parameters: NONE
- *
- * Return values:
- * character read from UART
*/
-
-char inbyte( void )
+static char inbyte( void )
{
while ( !(_Read_m681->srb & RXRDYB) );
return _Read_m681->rbb;
@@ -95,14 +58,8 @@ char inbyte( void )
*
* This routine transmits a character out the M68681. It supports
* XON/XOFF flow control.
- *
- * Input parameters:
- * ch - character to be transmitted
- *
- * Output parameters: NONE
*/
-
-void outbyte(
+static void outbyte(
char ch
)
{
@@ -121,7 +78,6 @@ void outbyte(
/*
* Open entry point
*/
-
rtems_device_driver console_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -134,7 +90,6 @@ rtems_device_driver console_open(
/*
* Close entry point
*/
-
rtems_device_driver console_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -147,7 +102,6 @@ rtems_device_driver console_close(
/*
* read bytes from the serial port. We only have stdin.
*/
-
rtems_device_driver console_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -179,7 +133,6 @@ rtems_device_driver console_read(
/*
* write bytes to the serial port. Stdout and stderr are the same.
*/
-
rtems_device_driver console_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
@@ -210,7 +163,6 @@ rtems_device_driver console_write(
/*
* IO Control entry point
*/
-
rtems_device_driver console_control(
rtems_device_major_number major,
rtems_device_minor_number minor,