source: rtems/c/src/lib/libbsp/lm32/shared/milkymist_tmu/milkymist_tmu.h @ dce1032b

4.115
Last change on this file since dce1032b 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.8 KB
Line 
1/*  milkymist_tmu.h
2 *
3 *  Milkymist TMU 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_TMU_H_
15#define __MILKYMIST_TMU_H_
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21/* Ioctls */
22#define TMU_EXECUTE             0x5400
23#define TMU_EXECUTE_NONBLOCK    0x5401
24#define TMU_EXECUTE_WAIT        0x5402
25
26struct tmu_vertex {
27  int x;
28  int y;
29} __attribute__((packed));
30
31struct tmu_td {
32  unsigned int flags;
33  unsigned int hmeshlast;
34  unsigned int vmeshlast;
35  unsigned int brightness;
36  unsigned short chromakey;
37  struct tmu_vertex *vertices;
38  unsigned short *texfbuf;
39  unsigned int texhres;
40  unsigned int texvres;
41  unsigned int texhmask;
42  unsigned int texvmask;
43  unsigned short *dstfbuf;
44  unsigned int dsthres;
45  unsigned int dstvres;
46  int dsthoffset;
47  int dstvoffset;
48  unsigned int dstsquarew;
49  unsigned int dstsquareh;
50  unsigned int alpha;
51
52  bool invalidate_before;
53  bool invalidate_after;
54};
55
56#define TMU_BRIGHTNESS_MAX     (63)
57#define TMU_MASK_NOFILTER      (0x3ffc0)
58#define TMU_MASK_FULL          (0x3ffff)
59#define TMU_FIXEDPOINT_SHIFT   (6)
60#define TMU_ALPHA_MAX          (63)
61#define TMU_MESH_MAXSIZE       (128)
62
63#define TMU_FLAG_CHROMAKEY     (2)
64#define TMU_FLAG_ADDITIVE      (4)
65
66rtems_device_driver tmu_initialize(
67  rtems_device_major_number major,
68  rtems_device_minor_number minor,
69  void *arg
70);
71
72rtems_device_driver tmu_control(
73  rtems_device_major_number major,
74  rtems_device_minor_number minor,
75  void *arg
76);
77
78#define TMU_DRIVER_TABLE_ENTRY {tmu_initialize, \
79NULL, NULL, NULL, NULL, tmu_control}
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* __MILKYMIST_TMU_H_ */
Note: See TracBrowser for help on using the repository browser.