RTEMS
7.0-rc1
Loading...
Searching...
No Matches
bsps
arm
raspberrypi
include
bsp
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
28
extern
"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
39
bool
fbcons_probe(
40
rtems_termios_device_context
*base
41
);
42
43
void
fbcons_write_polled(
44
rtems_termios_device_context
*base,
45
char
c
46
);
47
48
void
output_char_fb(
char
c);
49
50
typedef
struct
{
51
rtems_termios_device_context
base;
52
}
rpi_fb_context
;
53
54
/*
55
* Driver function table
56
*/
57
extern
const
rtems_termios_device_handler
fbcons_fns;
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* _FBCONS_H_ */
serial.h
The generic libchip serial driver interface.
rpi_fb_context
Definition:
fbcons.h:50
rtems_termios_device_context
Termios device context.
Definition:
termiosdevice.h:68
rtems_termios_device_handler
Termios device handler.
Definition:
termiosdevice.h:100
termiostypes.h
Generated by
1.9.6