source: rtems/bsps/arm/raspberrypi/include/bsp/fbcons.h @ 362cf319

Last change on this file since 362cf319 was 362cf319, checked in by G S Niteesh <gsnb.gn@…>, on Jan 4, 2020 at 7:50:46 PM

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
26extern "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
37bool fbcons_probe(
38  rtems_termios_device_context *base
39 );
40
41void fbcons_write_polled(
42  rtems_termios_device_context *base,
43  char c
44);
45
46void output_char_fb(char c);
47
48typedef struct {
49    rtems_termios_device_context base;
50} rpi_fb_context ;
51
52/*
53 * Driver function table
54 */
55extern 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.