source: rtems/bsps/shared/dev/serial/legacy-console.h @ b43ea9f

5
Last change on this file since b43ea9f was b43ea9f, checked in by Sebastian Huber <sebastian.huber@…>, on 04/05/18 at 15:07:20

bsps: Move legacy console driver to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.9 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, 2016.
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.org/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
33 *
34 *  This function is the ioctl() support for a VGA buffer driver.
35 *
36 *  @return This method returns 0 on success.
37 */
38int vt_ioctl(
39  unsigned int cmd,
40  unsigned long arg
41);
42
43/**
44 *  @brief console_find_console_entry
45 *
46 *  This method is used to search the console entries for a
47 *  specific device entry and return it. If match is NULL the
48 *  minor number provided is matched.
49 */
50console_tbl* console_find_console_entry(
51  const char                *match,
52  size_t                     length,
53  rtems_device_minor_number *match_minor
54);
55
56/**
57 *  @brief console_initialize_data
58 *
59 *  This must be called before dynamic registration of devices can occur.
60 *  It is normally called as a side-effect of @a console_initialize() but
61 *  if a probe and dynamic registration occurs before that, then this method
62 *  should be explicitly invoked.
63 */
64void console_initialize_data(void);
65
66/**
67 *  @brief console_register_devices
68 *
69 *  This function expands the console table to include previous
70 *  ports and the array of new ports specified.
71 *
72 *  @param[in] new_ports specifies an array of new ports to register
73 *  @param[in] number_of_ports specifies the number of elements
74 *         in the new_ports array
75 *
76 */
77void console_register_devices(
78  console_tbl *new_ports,
79  size_t       number_of_ports
80);
81
82#ifdef __cplusplus
83}
84#endif
85
86/**@}*/
87
88#endif
89/* end of include file */
Note: See TracBrowser for help on using the repository browser.