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

4.115
Last change on this file since b8ee42c was dce1032b, checked in by Joel Sherrill <joel.sherrill@…>, on 08/01/11 at 13:48:40

2011-08-01 Sebastien Bourdeauducq <sebastien.bourdeauducq@…>

PR 1869/bsps

  • startup/bspclean.c: New file.
  • include/tm27.h: Removed.
  • ChangeLog?, Makefile.am, README, preinstall.am, include/bsp.h, include/system_conf.h, make/custom/milkymist.cfg, startup/linkcmds: Complete BSP for Milkymist One supporting Milkymist SOC 1.0.x. Includes new or updated drivers for:
    • Multi-standard video input (PAL/SECAM/NTSC)
    • Two DMX512 (RS485) ports
    • MIDI IN and MIDI OUT ports
    • VGA output
    • AC'97 audio
    • NOR flash
    • 10/100 Ethernet
    • Memory card (experimental and incomplete)
    • USB host connectors (input devices only)
    • RC5 infrared receiver
    • RS232 debug port
  • Property mode set to 100644
File size: 1.4 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 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
36rtems_device_driver video_initialize(
37  rtems_device_major_number major,
38  rtems_device_minor_number minor,
39  void *arg
40);
41
42rtems_device_driver video_open(
43  rtems_device_major_number major,
44  rtems_device_minor_number minor,
45  void *arg
46);
47
48rtems_device_driver video_close(
49  rtems_device_major_number major,
50  rtems_device_minor_number minor,
51  void *arg
52);
53
54rtems_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, \
61video_open, video_close, NULL, NULL, video_control}
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* __MILKYMIST_VIDEO_H_ */
Note: See TracBrowser for help on using the repository browser.