RTEMS 6.1-rc5
Loading...
Searching...
No Matches
framebuffer.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * COPYRIGHT (c) 1989-2011.
13 * On-Line Applications Research Corporation (OAR).
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#ifndef __RTEMS_FRAMEBUFFER_h__
38#define __RTEMS_FRAMEBUFFER_h__
39
40#include <rtems/io.h>
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
50#define FRAMEBUFFER_DEVICE_NAME "/dev/fb"
51
58#define FRAMEBUFFER_DEVICE_0_NAME "/dev/fb0"
59
64#define FRAME_BUFFER_DRIVER_TABLE_ENTRY \
65 { frame_buffer_initialize, frame_buffer_open, frame_buffer_close, \
66 frame_buffer_read, frame_buffer_write, frame_buffer_control }
67
83 void *arg
84);
85
102 void *arg
103);
104
121 void *arg
122);
123
140 void *arg
141);
142
159 void *arg
160);
161
179 void *arg
180);
181
182#ifdef __cplusplus
183}
184#endif
185
186#endif
187/* end of include file */
This header file defines the IO Manager API.
rtems_device_driver frame_buffer_write(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer Write Entry Point.
Definition: fb.c:163
rtems_device_driver frame_buffer_read(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer Read Entry Point.
Definition: fb.c:152
rtems_device_driver frame_buffer_control(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer IO Control Entry Point.
Definition: fb.c:205
rtems_device_driver frame_buffer_open(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer Open Entry Point.
Definition: fb.c:116
rtems_device_driver frame_buffer_close(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer Close Entry Point.
Definition: fb.c:135
rtems_device_driver frame_buffer_initialize(rtems_device_major_number major, rtems_device_minor_number minor, void *arg)
Frame Buffer Initialization Entry Point.
Definition: fb.c:95
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition: io.h:103
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition: io.h:115
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85