RTEMS: bsps/arm/raspberrypi/include/bsp/fbcons.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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
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
48 typedef 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_ */
serial.h
The generic libchip serial driver interface.
rpi_fb_context
Definition: fbcons.h:48
rtems_termios_device_context
Termios device context.
Definition: termiostypes.h:75
rtems_termios_device_handler
Termios device handler.
Definition: termiostypes.h:141
termiostypes.h