RTEMS
5.1
bsps
arm
raspberrypi
include
bsp
fbcons.h
Go to the documentation of this file.
1
9
/*
10
* Copyright (c) 2015 Yang Qiao
11
*
12
* The license and distribution terms for this file may be
13
* found in the file LICENSE in this distribution or at
14
*
15
* http://www.rtems.org/license/LICENSE
16
*
17
*/
18
19
#ifndef _FBCONS_H_
20
#define _FBCONS_H_
21
22
#include <
libchip/serial.h
>
23
#include <
rtems/termiostypes.h
>
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/*
30
* This is the ASCII for "PI" in the upper word and 2835
31
* in the lower which should be unique enough to
32
* distinguish this type of serial device from others.
33
*/
34
35
#define FB_CONSOLE 0x50492835
36
37
bool
fbcons_probe(
38
rtems_termios_device_context
*base
39
);
40
41
void
fbcons_write_polled(
42
rtems_termios_device_context
*base,
43
char
c
44
);
45
46
void
output_char_fb(
char
c);
47
48
typedef
struct
{
49
rtems_termios_device_context
base;
50
}
rpi_fb_context
;
51
52
/*
53
* Driver function table
54
*/
55
extern
const
rtems_termios_device_handler
fbcons_fns;
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif
/* _FBCONS_H_ */
rtems_termios_device_context
Termios device context.
Definition:
termiostypes.h:75
termiostypes.h
serial.h
The generic libchip serial driver interface.
rpi_fb_context
Definition:
fbcons.h:48
rtems_termios_device_handler
Termios device handler.
Definition:
termiostypes.h:141
Generated by
1.8.15