diff options
author | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-10-18 18:23:51 +0000 |
---|---|---|
committer | Jennifer Averett <Jennifer.Averett@OARcorp.com> | 2011-10-18 18:23:51 +0000 |
commit | ba692232fa53278801b9f17318b8f6692bd3d92c (patch) | |
tree | 33ddd615cd8e42bda34b77db13ae19b2d2066610 /c/src/lib/libbsp/shared/console_control.c | |
parent | 2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com (diff) | |
download | rtems-ba692232fa53278801b9f17318b8f6692bd3d92c.tar.bz2 |
2011-10-18 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1917/bsps
* console.c: Modifications to add dynamic tables for libchip serial
drivers.
* console_control.c, console_private.h, console_read.c,
console_select.c, console_write.c: New files.
Diffstat (limited to 'c/src/lib/libbsp/shared/console_control.c')
-rw-r--r-- | c/src/lib/libbsp/shared/console_control.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/console_control.c b/c/src/lib/libbsp/shared/console_control.c new file mode 100644 index 0000000000..77d4b57da9 --- /dev/null +++ b/c/src/lib/libbsp/shared/console_control.c @@ -0,0 +1,46 @@ +/** + * @file + * + * @ingroup Console + * + * @brief Generic libchip console io_ctl extension + */ + + +/* + * This file is an extension of the generic console driver + * shell used by all console drivers using libchip. + * + * COPYRIGHT (c) 1989-2011. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <bsp.h> +#include <rtems/libio.h> +#include <stdlib.h> +#include <assert.h> +#include <termios.h> + +#include <rtems/termiostypes.h> +#include <libchip/serial.h> +#include "console_private.h" + +/* + * console_control + * + * this routine uses the termios driver to process io + */ +rtems_device_driver console_control( + rtems_device_major_number major, + rtems_device_minor_number minor, + void * arg +) +{ + return rtems_termios_ioctl (arg); +} |