source: rtems/c/src/lib/libbsp/lm32/shared/milkymist_video/milkymist_video.h @ 267357a

4.11
Last change on this file since 267357a was 267357a, checked in by Gedare Bloom <gedare@…>, on Nov 27, 2011 at 5:33:00 PM

2011-11-27 Sebastien Bourdeauducq <seb@…>

PR 1972/bsps

  • milkymist_video/milkymist_video.h, milkymist_video/video.c: Adds an ioctl to implement selection of composite on any connector, S-Video and Component sources on the Milkymist One.
  • Property mode set to 100644
File size: 1.6 KB
Line 
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, 2011 Sebastien Bourdeauducq
12 */
13
14#ifndef __MILKYMIST_VIDEO_H_
15#define __MILKYMIST_VIDEO_H_
16
17#ifdef __cplusplus
18extern "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#define VIDEO_SET_FORMAT       0x560b
37
38enum {
39  VIDEO_FORMAT_CVBS6 = 0,
40  VIDEO_FORMAT_CVBS5,
41  VIDEO_FORMAT_CVBS4,
42  VIDEO_FORMAT_SVIDEO,
43  VIDEO_FORMAT_COMPONENT,
44};
45
46rtems_device_driver video_initialize(
47  rtems_device_major_number major,
48  rtems_device_minor_number minor,
49  void *arg
50);
51
52rtems_device_driver video_open(
53  rtems_device_major_number major,
54  rtems_device_minor_number minor,
55  void *arg
56);
57
58rtems_device_driver video_close(
59  rtems_device_major_number major,
60  rtems_device_minor_number minor,
61  void *arg
62);
63
64rtems_device_driver video_control(
65  rtems_device_major_number major,
66  rtems_device_minor_number minor,
67  void *arg
68);
69
70#define VIDEO_DRIVER_TABLE_ENTRY {video_initialize, \
71video_open, video_close, NULL, NULL, video_control}
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* __MILKYMIST_VIDEO_H_ */
Note: See TracBrowser for help on using the repository browser.