From ba692232fa53278801b9f17318b8f6692bd3d92c Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 18 Oct 2011 18:23:51 +0000 Subject: 2011-10-18 Jennifer Averett 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. --- c/src/lib/libbsp/shared/console_private.h | 92 +++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 c/src/lib/libbsp/shared/console_private.h (limited to 'c/src/lib/libbsp/shared/console_private.h') diff --git a/c/src/lib/libbsp/shared/console_private.h b/c/src/lib/libbsp/shared/console_private.h new file mode 100644 index 0000000000..f614d7e5e3 --- /dev/null +++ b/c/src/lib/libbsp/shared/console_private.h @@ -0,0 +1,92 @@ +/** + * @file + * + * @ingroup Console + * + * @brief Extension of the generic libchip console driver shell + */ + +/* + * 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$ + */ + +#ifndef _PC386_CONSOLE_PRIVATE_h +#define _PC386_CONSOLE_PRIVATE_h + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +extern rtems_device_minor_number Console_Port_Minor; +extern rtems_device_minor_number BSPPrintkPort; + +/** + * @brief bsp_console_select + * + * This function selects the port to be used as console + * + */ +void bsp_console_select(void); + +/** + * @brief bsp_com_outch + * + * This function puts a character out of the console port. + * + * @param[in] ch specifies the character to write + */ +extern void bsp_com_outch(char ch); + +/** + * @brief bsp_com_inch + * + * This function gets a character from the console + * port. + * + * @return This method returns the character that + * was retrieved from the console port. + */ +extern int bsp_com_inch(void); + +/** + * @brief + * + * This function + * + * @return This method returns + */ +int vt_ioctl( unsigned int cmd, unsigned long arg); + +/** + * @brief console_register_devices + * + * This function expands the console table to include previous + * ports and the array of new ports specified. + * + * @param[in] new_ports specifies an array of new ports to register + * @param[in] number_of_ports specifies the number of elements + * in the new_ports array + * + */ +void console_register_devices( + console_tbl *new_ports, + size_t number_of_ports +); + +#ifdef __cplusplus +} +#endif + +/**@}*/ + +#endif +/* end of include file */ -- cgit v1.2.3