diff options
author | YANG Qiao <yangqiao0505@me.com> | 2015-08-13 00:06:10 +0200 |
---|---|---|
committer | Pavel Pisa <ppisa@pikron.com> | 2016-05-31 10:33:43 +0200 |
commit | c1a9f6a1286625bc3d623870c23d98672f5af3b9 (patch) | |
tree | 333d321d98bd49c5d62ef64614db2ba6bcb5c33d /c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h | |
parent | arm/raspberrypi: Raspberry Pi v2 ALLOCATE_BUFFER VC4 operation returns direct... (diff) | |
download | rtems-c1a9f6a1286625bc3d623870c23d98672f5af3b9.tar.bz2 |
arm/raspberrypi: add VideoCore framebuffer without initialization
Diffstat (limited to 'c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h')
-rw-r--r-- | c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h b/c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h new file mode 100644 index 0000000000..fa9a939682 --- /dev/null +++ b/c/src/lib/libbsp/arm/raspberrypi/include/rpi-fb.h @@ -0,0 +1,54 @@ +/** + * @file + * + * @ingroup raspberrypi_fb + * + * @brief framebuffer support and setup + * + */ + +/* + * 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 LIBBSP_ARM_RASPBERRYPI_FB_H +#define LIBBSP_ARM_RASPBERRYPI_FB_H + +#include <rtems/fb.h> + +/** + * @defgroup raspberrypi_fb + * + * @ingroup arm_raspberrypi + * + * @brief Framebuffer support and setup + * + * @{ + */ + +enum rpi_fb_init_result { + RPI_FB_INIT_OK = 0, + RPI_FB_INIT_ALREADY_INITIALIZED = 1, + RPI_FB_INIT_GENERIC_ERROR = -1, + RPI_FB_INIT_NO_DISPLAY = -2, + RPI_FB_INIT_CMDLINE_BAD_FORMAT = -3, + RPI_FB_INIT_CMDLINE_DONT_INIT = -4, + RPI_FB_INIT_CMDLINE_NO_MODE_REQ = -5, + RPI_FB_INIT_MODE_PROBE_ERROR = -6, + RPI_FB_INIT_START_ADDR_UNKNOWN = -7, +}; + +int rpi_fb_init( void ); +int rpi_get_fix_screen_info( struct fb_fix_screeninfo *info ); +int rpi_get_var_screen_info( struct fb_var_screeninfo *info ); +bool rpi_fb_hdmi_is_present( void ); + +/** @} */ + +#endif /* LIBBSP_ARM_RASPBERRYPI_FB_H */ |