forked from Imagelibrary/rtems
Replaces the legacy termios API with new termios API (#3034) Replaces the custom PL011 serial driver with RTEMS arm-pl011. Update #3034
62 lines
1.0 KiB
C
62 lines
1.0 KiB
C
/**
|
|
* @file
|
|
*
|
|
* @ingroup raspberrypi_console
|
|
*
|
|
* @brief framebuffer graphic console support.
|
|
*/
|
|
|
|
/*
|
|
* Copyright (c) 2015 Yang Qiao
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
*
|
|
* http://www.rtems.org/license/LICENSE
|
|
*
|
|
*/
|
|
|
|
#ifndef _FBCONS_H_
|
|
#define _FBCONS_H_
|
|
|
|
#include <libchip/serial.h>
|
|
#include <rtems/termiostypes.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* This is the ASCII for "PI" in the upper word and 2835
|
|
* in the lower which should be unique enough to
|
|
* distinguish this type of serial device from others.
|
|
*/
|
|
|
|
#define FB_CONSOLE 0x50492835
|
|
|
|
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 rtems_termios_device_handler fbcons_fns;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _FBCONS_H_ */
|