source: rtems/c/src/lib/libbsp/sparc/shared/include/cons.h @ 4a7d1026

4.11
Last change on this file since 4a7d1026 was 4a7d1026, checked in by Daniel Hellstrom <daniel@…>, on Apr 13, 2015 at 8:25:52 AM

sparc bsps: updated license to rtems.org

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  Console driver interface to UART drivers
2 *
3 *  - First console device that has System Console flag set will be
4 *    system console.
5 *  - If none of the registered console devices has system console set,
6 *    the first is registered device is used, unless it has
7 *
8 *  COPYRIGHT (c) 2010.
9 *  Cobham Gaisler AB.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#ifndef __CONS_H__
17#define __CONS_H__
18
19struct console_dev;
20
21#define CONSOLE_FLAG_SYSCON      0x01
22
23struct console_cons_ops {
24        void (*get_uart_attrs)(struct console_dev *, struct termios *t);
25};
26
27struct console_dev {
28        /* Set to non-zero if this UART should be system console and/or
29         * debug console.
30         */
31        int flags;
32        char *fsname; /* File system prefix */
33        const struct rtems_termios_callbacks *callbacks; /* TERMIOS Callbacks */
34        struct console_cons_ops ops;
35};
36
37extern void console_dev_register(struct console_dev *dev);
38#if 0
39extern void console_dev_unregister(struct console_dev *dev);
40#endif
41
42#endif
Note: See TracBrowser for help on using the repository browser.