1 | /* milkymist_video.h |
---|
2 | * |
---|
3 | * Milkymist video input driver for RTEMS |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 2010 Sebastien Bourdeauducq |
---|
12 | */ |
---|
13 | |
---|
14 | #ifndef __MILKYMIST_VIDEO_H_ |
---|
15 | #define __MILKYMIST_VIDEO_H_ |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | /* Ioctls */ |
---|
22 | #define VIDEO_BUFFER_LOCK 0x5600 |
---|
23 | #define VIDEO_BUFFER_UNLOCK 0x5601 |
---|
24 | |
---|
25 | #define VIDEO_SET_BRIGHTNESS 0x5602 |
---|
26 | #define VIDEO_GET_BRIGHTNESS 0x5603 |
---|
27 | #define VIDEO_SET_CONTRAST 0x5604 |
---|
28 | #define VIDEO_GET_CONTRAST 0x5605 |
---|
29 | #define VIDEO_SET_HUE 0x5606 |
---|
30 | #define VIDEO_GET_HUE 0x5607 |
---|
31 | #define VIDEO_GET_SIGNAL 0x5608 |
---|
32 | |
---|
33 | #define VIDEO_SET_REGISTER 0x5609 |
---|
34 | #define VIDEO_GET_REGISTER 0x560a |
---|
35 | |
---|
36 | rtems_device_driver video_initialize( |
---|
37 | rtems_device_major_number major, |
---|
38 | rtems_device_minor_number minor, |
---|
39 | void *arg |
---|
40 | ); |
---|
41 | |
---|
42 | rtems_device_driver video_open( |
---|
43 | rtems_device_major_number major, |
---|
44 | rtems_device_minor_number minor, |
---|
45 | void *arg |
---|
46 | ); |
---|
47 | |
---|
48 | rtems_device_driver video_close( |
---|
49 | rtems_device_major_number major, |
---|
50 | rtems_device_minor_number minor, |
---|
51 | void *arg |
---|
52 | ); |
---|
53 | |
---|
54 | rtems_device_driver video_control( |
---|
55 | rtems_device_major_number major, |
---|
56 | rtems_device_minor_number minor, |
---|
57 | void *arg |
---|
58 | ); |
---|
59 | |
---|
60 | #define VIDEO_DRIVER_TABLE_ENTRY {video_initialize, \ |
---|
61 | video_open, video_close, NULL, NULL, video_control} |
---|
62 | |
---|
63 | #ifdef __cplusplus |
---|
64 | } |
---|
65 | #endif |
---|
66 | |
---|
67 | #endif /* __MILKYMIST_VIDEO_H_ */ |
---|