Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:04

0001 /**
0002  * @file
0003  *
0004  * @ingroup raspberrypi_console
0005  *
0006  * @brief framebuffer graphic console support.
0007  */
0008 
0009 /*
0010  * Copyright (c) 2015 Yang Qiao
0011  *
0012  *  The license and distribution terms for this file may be
0013  *  found in the file LICENSE in this distribution or at
0014  *
0015  *  http://www.rtems.org/license/LICENSE
0016  *
0017  */
0018 
0019 #ifndef _FBCONS_H_
0020 #define _FBCONS_H_
0021 
0022 #include <libchip/serial.h>
0023 #include <rtems/termiostypes.h>
0024 
0025 #ifdef __cplusplus
0026 extern "C" {
0027 #endif
0028 
0029 /*
0030  *  This is the ASCII for "PI" in the upper word and 2835
0031  *  in the lower which should be unique enough to
0032  *  distinguish this type of serial device from others.
0033  */
0034 
0035 #define FB_CONSOLE 0x50492835
0036 
0037 bool fbcons_probe(
0038   rtems_termios_device_context *base
0039  );
0040 
0041 void fbcons_write_polled(
0042   rtems_termios_device_context *base,
0043   char c
0044 );
0045 
0046 void output_char_fb(char c);
0047 
0048 typedef struct {
0049     rtems_termios_device_context base;
0050 } rpi_fb_context ;
0051 
0052 /*
0053  * Driver function table
0054  */
0055 extern const rtems_termios_device_handler fbcons_fns;
0056 
0057 #ifdef __cplusplus
0058 }
0059 #endif
0060 
0061 #endif /* _FBCONS_H_ */