RTEMS: bsps/lm32/include/bsp/milkymist_video.h Source File

| RTEMS 5.4-rc2

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
57 rtems_device_driver video_initialize(
58 rtems_device_major_number major,
59 rtems_device_minor_number minor,
60 void *arg
61);
62
63 rtems_device_driver video_open(
64 rtems_device_major_number major,
65 rtems_device_minor_number minor,
66 void *arg
67);
68
69 rtems_device_driver video_close(
70 rtems_device_major_number major,
71 rtems_device_minor_number minor,
72 void *arg
73);
74
75 rtems_device_driver video_control(
76 rtems_device_major_number major,
77 rtems_device_minor_number minor,
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_ */
rtems_status_code
rtems_status_code
Classic API Status.
Definition: status.h:43