summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c')
-rw-r--r--c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c b/c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c
new file mode 100644
index 0000000000..1e720b29ce
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/gen68360/console/consolereserveresources.c
@@ -0,0 +1,39 @@
+/*
+ * Reserve resources for console driver.
+ *
+ * This is in a separate file to minimize the amount of baggage
+ * pulled in when not using the console device driver.
+ *
+ * Author:
+ * W. Eric Norum
+ * Saskatchewan Accelerator Laboratory
+ * University of Saskatchewan
+ * Saskatoon, Saskatchewan, CANADA
+ * eric@skatter.usask.ca
+ *
+ * COPYRIGHT (c) 1989-1998.
+ * 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 <termios.h>
+#include <bsp.h>
+#include <rtems/libio.h>
+#include "m68360.h"
+
+/*
+ * Reserve resources consumed by this driver
+ */
+void console_reserve_resources(
+ rtems_configuration_table *configuration
+)
+{
+ rtems_termios_reserve_resources (configuration, 1);
+}