Last change
on this file was
362cf319,
checked in by G S Niteesh <gsnb.gn@…>, on 01/04/20 at 19:50:46
|
bsp/raspberrypi: Updated the console API.
Replaces the legacy termios API with new termios API (#3034)
Replaces the custom PL011 serial driver with RTEMS arm-pl011.
Update #3034
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup raspberrypi_console |
---|
5 | * |
---|
6 | * @brief framebuffer graphic console support. |
---|
7 | */ |
---|
8 | |
---|
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_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.