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

5
Last change on this file since c3c57b1 was c3c57b1, checked in by Joel Sherrill <joel@…>, on Mar 10, 2016 at 4:33:27 PM

pc386: Improve boot command arguments for console/printk device selection

This patch adds the "--printk=" boot command line argument to specify
the printk() device. It also enhances the "--console=" boot command
line argument to match any device configured in the console device
table. The arguments are parsed as early as possible so they take
effect early. Currently, this is immediately after PCI initialization.

  • 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 bsp_com_outch
33 *
34 *  This function puts a character out of the console port.
35 *
36 *  @param[in] ch specifies the character to write
37 */
38extern void bsp_com_outch(char ch);
39
40/**
41 *  @brief bsp_com_inch
42 *
43 *  This function gets a character from the console
44 *  port.
45 *
46 *  @return This method returns the character that
47 *    was retrieved from the console port.
48 */
49extern int bsp_com_inch(void);
50
51/**
52 *  @brief
53 *
54 *  This function
55 *
56 *  @return This method returns
57 */
58int vt_ioctl( unsigned int cmd, unsigned long arg);
59
60/**
61 *  @brief console_initialize_data
62 *
63 *  This must be called before dynamic registration of devices can occur.
64 *  It is normally called as a side-effect of @a console_initialize() but
65 *  if a probe and dynamic registration occurs before that, then this method
66 *  should be explicitly invoked.
67 */
68void console_initialize_data(void);
69
70/**
71 *  @brief console_register_devices
72 *
73 *  This function expands the console table to include previous
74 *  ports and the array of new ports specified.
75 *
76 *  @param[in] new_ports specifies an array of new ports to register
77 *  @param[in] number_of_ports specifies the number of elements
78 *         in the new_ports array
79 *
80 */
81void console_register_devices(
82  console_tbl *new_ports,
83  size_t       number_of_ports
84);
85
86#ifdef __cplusplus
87}
88#endif
89
90/**@}*/
91
92#endif
93/* end of include file */
Note: See TracBrowser for help on using the repository browser.