Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
adv7604.h
Go to the documentation of this file.
1 /*
2  * adv7604 - Analog Devices ADV7604 video decoder driver
3  *
4  * Copyright 2012 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
5  *
6  * This program is free software; you may redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
11  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
12  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
13  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
14  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
15  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
16  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17  * SOFTWARE.
18  *
19  */
20 
21 #ifndef _ADV7604_
22 #define _ADV7604_
23 
24 /* Analog input muxing modes (AFE register 0x02, [2:0]) */
31 };
32 
33 /* Bus rotation and reordering (IO register 0x04, [7:5]) */
41 };
42 
43 /* Input Color Space (IO register 0x02, [7:4]) */
54 };
55 
56 /* Select output format (IO register 0x03, [7:0]) */
79 };
80 
81 /* Platform dependent definition */
83  /* connector - HDMI or DVI? */
84  unsigned connector_hdmi:1;
85 
86  /* DIS_PWRDNB: 1 if the PWRDNB pin is unused and unconnected */
87  unsigned disable_pwrdnb:1;
88 
89  /* DIS_CABLE_DET_RST: 1 if the 5V pins are unused and unconnected */
91 
92  /* Analog input muxing mode */
94 
95  /* Bus rotation and reordering */
97 
98  /* Select output format */
100 
101  /* IO register 0x02 */
102  unsigned alt_gamma:1;
103  unsigned op_656_range:1;
104  unsigned rgb_out:1;
105  unsigned alt_data_sat:1;
106 
107  /* IO register 0x05 */
108  unsigned blank_data:1;
109  unsigned insert_av_codes:1;
110  unsigned replicate_av_codes:1;
111  unsigned invert_cbcr:1;
112 
113  /* IO register 0x30 */
115 
116  /* Free run */
118 
119  /* i2c addresses: 0 == use default */
132 };
133 
134 /*
135  * Mode of operation.
136  * This is used as the input argument of the s_routing video op.
137  */
142 };
143 
144 #define V4L2_CID_ADV_RX_ANALOG_SAMPLING_PHASE (V4L2_CID_DV_CLASS_BASE + 0x1000)
145 #define V4L2_CID_ADV_RX_FREE_RUN_COLOR_MANUAL (V4L2_CID_DV_CLASS_BASE + 0x1001)
146 #define V4L2_CID_ADV_RX_FREE_RUN_COLOR (V4L2_CID_DV_CLASS_BASE + 0x1002)
147 
148 /* notify events */
149 #define ADV7604_HOTPLUG 1
150 #define ADV7604_FMT_CHANGE 2
151 
152 #endif