~gma500/gma500/emgd

« back to all changes in this revision

Viewing changes to emgd/emgd-dkms-1.5.15.2856/emgd/video/overlay/tnc/ovl2_regs_tnc.h

  • Committer: José Bernardo Bandos
  • Date: 2010-08-28 15:59:13 UTC
  • Revision ID: jbs@jbs-laptop-20100828155913-pjb47bto6d9h10ey
Reverted to version 54, will add emgd as a new brach. Sorry for the mess.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- pse-c -*-
2
 
 *-----------------------------------------------------------------------------
3
 
 * Filename: ovl2_regs_tnc.h
4
 
 * $Revision: 1.2 $
5
 
 *-----------------------------------------------------------------------------
6
 
 * Copyright © 2002-2010, Intel Corporation.
7
 
 *  
8
 
 * This program is free software; you can redistribute it and/or modify it
9
 
 * under the terms and conditions of the GNU General Public License,
10
 
 * version 2, as published by the Free Software Foundation.
11
 
 * 
12
 
 * This program is distributed in the hope it will be useful, but WITHOUT
13
 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15
 
 * more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU General Public License along with
18
 
 * this program; if not, write to the Free Software Foundation, Inc., 
19
 
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
20
 
 *-----------------------------------------------------------------------------
21
 
 * Description:
22
 
 *  This is the internal header file for napa overlay engine. It should be not be 
23
 
 *  by any other module besides the overlay module itself. It contains the
24
 
 *  neccessary hardware virtualized structures and functions internal to 
25
 
 *  the napa core's overlay engine
26
 
 *-----------------------------------------------------------------------------
27
 
 */
28
 
#ifndef _OVL2_REGS_TNC_H
29
 
#define _OVL2_REGS_TNC_H
30
 
/* Second Overlay Structure.
31
 
 * These registers are the trigger registers and should be written 
32
 
 * last. */
33
 
typedef struct _ovl2_reg_tnc{
34
 
        unsigned int control;
35
 
        unsigned int start;
36
 
} ovl2_reg_tnc_t;
37
 
 
38
 
/* Color Correction */
39
 
#define OVL2_RGB_COLOR_DEF_CONT_BRGHT    0x1000000
40
 
#define OVL2_RGB_COLOR_DEF_SATN_HUE      0x0000080
41
 
 
42
 
/* Overlay Command Definitions */
43
 
/* 422 Swap */
44
 
#define OVL2_CMD_YVYU                           0x00020000
45
 
#define OVL2_CMD_UYVY                           0x00010000
46
 
#define OVL2_CMD_VYUY                           0x00030000
47
 
 
48
 
/* Source Format */
49
 
#define OVL2_CMD_RGB_8888                       0x18000000
50
 
#define OVL2_CMD_RGB_565                        0x14000000
51
 
#define OVL2_CMD_RGB_555                        0x10000000
52
 
#define OVL2_CMD_RGB_8                          0x08000000
53
 
#define OVL2_CMD_YUV_422                        0x00000000 /*packed YUV422*/
54
 
#define OVL2_CMD_SRC_FMT_MASK           0x3C000000 /*mask for above*/
55
 
 
56
 
#define OVL2_REG_ADDR_GAMMA5                                            0x721E0
57
 
#define OVL2_REG_ADDR_GAMMA4                                            0x721E4
58
 
#define OVL2_REG_ADDR_GAMMA3                                            0x721E8
59
 
#define OVL2_REG_ADDR_GAMMA2                                            0x721EC
60
 
#define OVL2_REG_ADDR_GAMMA1                                            0x721F0
61
 
#define OVL2_REG_ADDR_GAMMA0                                            0x721F4
62
 
#define OVL2_TOTAL_GAMMA_REG                                            6
63
 
 
64
 
/* following value are needed because hardware seems to display yuv slightly dimmer 
65
 
   than RGB when color data is calculated out to be equal */
66
 
#define MID_CONTRAST_YUV                                        0x43//4a
67
 
#define MID_SATURATION_YUV                                      0x91//92
68
 
#define MID_BRIGHTNESS_YUV                                      -5
69
 
#endif /* _OVL2_REGS_NAP_H */