RTEMS 7.0-rc1
Loading...
Searching...
No Matches
fbcons.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
2
11/*
12 * Copyright (c) 2015 Yang Qiao
13 *
14 * The license and distribution terms for this file may be
15 * found in the file LICENSE in this distribution or at
16 *
17 * http://www.rtems.org/license/LICENSE
18 *
19 */
20
21#ifndef _FBCONS_H_
22#define _FBCONS_H_
23
24#include <libchip/serial.h>
25#include <rtems/termiostypes.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31/*
32 * This is the ASCII for "PI" in the upper word and 2835
33 * in the lower which should be unique enough to
34 * distinguish this type of serial device from others.
35 */
36
37#define FB_CONSOLE 0x50492835
38
39bool fbcons_probe(
41 );
42
43void fbcons_write_polled(
45 char c
46);
47
48void output_char_fb(char c);
49
50typedef struct {
53
54/*
55 * Driver function table
56 */
57extern const rtems_termios_device_handler fbcons_fns;
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* _FBCONS_H_ */
The generic libchip serial driver interface.
Definition: fbcons.h:50
Termios device context.
Definition: termiosdevice.h:68
Termios device handler.
Definition: termiosdevice.h:100