RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
framebuffer.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
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
43
extern
"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
80
rtems_device_driver
frame_buffer_initialize(
81
rtems_device_major_number
major,
82
rtems_device_minor_number
minor,
83
void
*arg
84
);
85
99
rtems_device_driver
frame_buffer_open(
100
rtems_device_major_number
major,
101
rtems_device_minor_number
minor,
102
void
*arg
103
);
104
118
rtems_device_driver
frame_buffer_close(
119
rtems_device_major_number
major,
120
rtems_device_minor_number
minor,
121
void
*arg
122
);
123
137
rtems_device_driver
frame_buffer_read(
138
rtems_device_major_number
major,
139
rtems_device_minor_number
minor,
140
void
*arg
141
);
142
156
rtems_device_driver
frame_buffer_write(
157
rtems_device_major_number
major,
158
rtems_device_minor_number
minor,
159
void
*arg
160
);
161
176
rtems_device_driver
frame_buffer_control(
177
rtems_device_major_number
major,
178
rtems_device_minor_number
minor,
179
void
*arg
180
);
181
182
#ifdef __cplusplus
183
}
184
#endif
185
186
#endif
187
/* end of include file */
io.h
This header file defines the IO Manager API.
rtems_device_driver
rtems_status_code rtems_device_driver
This type shall be used in device driver entry declarations and definitions.
Definition
io.h:90
rtems_device_major_number
uint32_t rtems_device_major_number
This integer type represents the major number of devices.
Definition
io.h:103
rtems_device_minor_number
uint32_t rtems_device_minor_number
This integer type represents the minor number of devices.
Definition
io.h:115
Generated by
1.18.0