RTEMS 6.1-rc6
Loading...
Searching...
No Matches
milkymist_video.h
Go to the documentation of this file.
1
7/* milkymist_video.h
8 *
9 * Milkymist video input driver for RTEMS
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 *
15 * COPYRIGHT (c) 2010, 2011 Sebastien Bourdeauducq
16 */
17
25#ifndef __MILKYMIST_VIDEO_H_
26#define __MILKYMIST_VIDEO_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/* Ioctls */
33#define VIDEO_BUFFER_LOCK 0x5600
34#define VIDEO_BUFFER_UNLOCK 0x5601
35
36#define VIDEO_SET_BRIGHTNESS 0x5602
37#define VIDEO_GET_BRIGHTNESS 0x5603
38#define VIDEO_SET_CONTRAST 0x5604
39#define VIDEO_GET_CONTRAST 0x5605
40#define VIDEO_SET_HUE 0x5606
41#define VIDEO_GET_HUE 0x5607
42#define VIDEO_GET_SIGNAL 0x5608
43
44#define VIDEO_SET_REGISTER 0x5609
45#define VIDEO_GET_REGISTER 0x560a
46
47#define VIDEO_SET_FORMAT 0x560b
48
49enum {
50 VIDEO_FORMAT_CVBS6 = 0,
51 VIDEO_FORMAT_CVBS5,
52 VIDEO_FORMAT_CVBS4,
53 VIDEO_FORMAT_SVIDEO,
54 VIDEO_FORMAT_COMPONENT,
55};
56
57rtems_device_driver video_initialize(
60 void *arg
61);
62
63rtems_device_driver video_open(
66 void *arg
67);
68
69rtems_device_driver video_close(
72 void *arg
73);
74
75rtems_device_driver video_control(
78 void *arg
79);
80
81#define VIDEO_DRIVER_TABLE_ENTRY {video_initialize, \
82video_open, video_close, NULL, NULL, video_control}
83
86#ifdef __cplusplus
87}
88#endif
89
90#endif /* __MILKYMIST_VIDEO_H_ */
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