summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:05:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 16:05:41 +0000
commitc42bd4525f4a74fa1c88332b33d18681f881c2c0 (patch)
tree9b1c992bff5d735f1443fe1c14bf093c35ae79de /c/src/lib/libbsp
parentFixed bug which resulted in misaligned object control structures (diff)
downloadrtems-c42bd4525f4a74fa1c88332b33d18681f881c2c0.tar.bz2
Split console_reserve_resources into its own file to reduce dependencies.
Still need to move debug io routines out.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/Makefile.in2
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/console.c9
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/console/consolereserveresources.c29
3 files changed, 30 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/Makefile.in b/c/src/lib/libbsp/powerpc/score603e/console/Makefile.in
index 194387944e..47797a5394 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/Makefile.in
+++ b/c/src/lib/libbsp/powerpc/score603e/console/Makefile.in
@@ -16,7 +16,7 @@ VPATH = @srcdir@
PGM = ${ARCH}/console.rel
# C source names, if any, go here -- minus the .c
-C_PIECES = 85c30 console tbl85c30
+C_PIECES = 85c30 console consolereserveresources tbl85c30
C_FILES = $(C_PIECES:%=%.c)
C_O_FILES = $(C_PIECES:%=${ARCH}/%.o)
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/console.c b/c/src/lib/libbsp/powerpc/score603e/console/console.c
index a3836bd6a8..0d7509d26d 100644
--- a/c/src/lib/libbsp/powerpc/score603e/console/console.c
+++ b/c/src/lib/libbsp/powerpc/score603e/console/console.c
@@ -122,16 +122,7 @@ int console_inbyte_nonblocking(
*/
return inbyte_nonblocking_85c30( &Ports_85C30[ port ] );
}
-
-void console_reserve_resources(
- rtems_configuration_table *configuration
-)
-{
- rtems_termios_reserve_resources( configuration, NUM_Z85C30_PORTS );
-}
-
-
rtems_device_driver console_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
diff --git a/c/src/lib/libbsp/powerpc/score603e/console/consolereserveresources.c b/c/src/lib/libbsp/powerpc/score603e/console/consolereserveresources.c
new file mode 100644
index 0000000000..440e44f941
--- /dev/null
+++ b/c/src/lib/libbsp/powerpc/score603e/console/consolereserveresources.c
@@ -0,0 +1,29 @@
+/*
+ * This file contains the routine console_reserve_resources
+ * for the Score603e console driver.
+ *
+ * COPYRIGHT (c) 1989-1997.
+ * On-Line Applications Research Corporation (OAR).
+ * Copyright assigned to U.S. Government, 1994.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+#include <rtems/libio.h>
+#include <stdlib.h>
+#include <assert.h>
+
+#include "consolebsp.h"
+
+void console_reserve_resources(
+ rtems_configuration_table *configuration
+)
+{
+ rtems_termios_reserve_resources( configuration, NUM_Z85C30_PORTS );
+}
+