source: rtems/c/src/lib/libbsp/shared/console_private.h @ 9f868a16

4.11
Last change on this file since 9f868a16 was 9f868a16, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 17, 2013 at 7:57:08 AM

bsps: Add missing include

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup Console
5 *
6 * @brief  Extension of the generic libchip console driver shell
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2011.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 */
17
18#ifndef _PC386_CONSOLE_PRIVATE_h
19#define _PC386_CONSOLE_PRIVATE_h
20
21#include <rtems.h>
22
23#include <libchip/serial.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29extern rtems_device_minor_number  BSPPrintkPort;
30
31/**
32 *  @brief bsp_console_select
33 *
34 *  This function selects the port to be used as console
35 *
36 */
37void bsp_console_select(void);
38
39/**
40 *  @brief bsp_com_outch
41 *
42 *  This function puts a character out of the console port.
43 *
44 *  @param[in] ch specifies the character to write
45 */
46extern void bsp_com_outch(char ch);
47
48/**
49 *  @brief bsp_com_inch
50 *
51 *  This function gets a character from the console
52 *  port.
53 *
54 *  @return This method returns the character that
55 *    was retrieved from the console port.
56 */
57extern int bsp_com_inch(void);
58
59/**
60 *  @brief
61 *
62 *  This function
63 *
64 *  @return This method returns
65 */
66int vt_ioctl( unsigned int cmd, unsigned long arg);
67
68/**
69 *  @brief console_register_devices
70 *
71 *  This function expands the console table to include previous
72 *  ports and the array of new ports specified.
73 *
74 *  @param[in] new_ports specifies an array of new ports to register
75 *  @param[in] number_of_ports specifies the number of elements
76 *         in the new_ports array
77 *
78 */
79void console_register_devices(
80  console_tbl *new_ports,
81  size_t       number_of_ports
82);
83
84#ifdef __cplusplus
85}
86#endif
87
88/**@}*/
89
90#endif
91/* end of include file */
Note: See TracBrowser for help on using the repository browser.