summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/console_private.h
blob: 7d9f17fe4632c9845a2c846332e2254c828d94a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/**
 * @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.
 */

#ifndef _PC386_CONSOLE_PRIVATE_h
#define _PC386_CONSOLE_PRIVATE_h

#include <rtems.h>

#include <libchip/serial.h>

#ifdef __cplusplus
extern "C" {
#endif

extern rtems_device_minor_number  BSPPrintkPort;

/**
 *  @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 */