summaryrefslogtreecommitdiffstats
path: root/bsps/arm/raspberrypi/include/bsp/fbcons.h
diff options
context:
space:
mode:
authorG S Niteesh <gsnb.gn@gmail.com>2020-01-05 01:20:46 +0530
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2020-01-07 18:21:16 +0100
commit362cf319d44e7e64987f12aa36ea030e6298c586 (patch)
tree6313963fea4b89859adf6219a3860fe245e44afa /bsps/arm/raspberrypi/include/bsp/fbcons.h
parentbsp/raspberrypi: Enable FDT support. (diff)
downloadrtems-362cf319d44e7e64987f12aa36ea030e6298c586.tar.bz2
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
Diffstat (limited to '')
-rw-r--r--bsps/arm/raspberrypi/include/bsp/fbcons.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/bsps/arm/raspberrypi/include/bsp/fbcons.h b/bsps/arm/raspberrypi/include/bsp/fbcons.h
index d0e126699a..ea3eee4f32 100644
--- a/bsps/arm/raspberrypi/include/bsp/fbcons.h
+++ b/bsps/arm/raspberrypi/include/bsp/fbcons.h
@@ -20,6 +20,7 @@
#define _FBCONS_H_
#include <libchip/serial.h>
+#include <rtems/termiostypes.h>
#ifdef __cplusplus
extern "C" {
@@ -33,12 +34,25 @@ extern "C" {
#define FB_CONSOLE 0x50492835
-bool fbcons_probe( int minor );
+bool fbcons_probe(
+ rtems_termios_device_context *base
+ );
+
+void fbcons_write_polled(
+ rtems_termios_device_context *base,
+ char c
+);
+
+void output_char_fb(char c);
+
+typedef struct {
+ rtems_termios_device_context base;
+} rpi_fb_context ;
/*
* Driver function table
*/
-extern const console_fns fbcons_fns;
+extern const rtems_termios_device_handler fbcons_fns;
#ifdef __cplusplus
}