1*9a0dfe9bSDmitry Baryshkov /* 2*9a0dfe9bSDmitry Baryshkov * Copyright (C) 2010 Francisco Jerez. 3*9a0dfe9bSDmitry Baryshkov * All Rights Reserved. 4*9a0dfe9bSDmitry Baryshkov * 5*9a0dfe9bSDmitry Baryshkov * Permission is hereby granted, free of charge, to any person obtaining 6*9a0dfe9bSDmitry Baryshkov * a copy of this software and associated documentation files (the 7*9a0dfe9bSDmitry Baryshkov * "Software"), to deal in the Software without restriction, including 8*9a0dfe9bSDmitry Baryshkov * without limitation the rights to use, copy, modify, merge, publish, 9*9a0dfe9bSDmitry Baryshkov * distribute, sublicense, and/or sell copies of the Software, and to 10*9a0dfe9bSDmitry Baryshkov * permit persons to whom the Software is furnished to do so, subject to 11*9a0dfe9bSDmitry Baryshkov * the following conditions: 12*9a0dfe9bSDmitry Baryshkov * 13*9a0dfe9bSDmitry Baryshkov * The above copyright notice and this permission notice (including the 14*9a0dfe9bSDmitry Baryshkov * next paragraph) shall be included in all copies or substantial 15*9a0dfe9bSDmitry Baryshkov * portions of the Software. 16*9a0dfe9bSDmitry Baryshkov * 17*9a0dfe9bSDmitry Baryshkov * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18*9a0dfe9bSDmitry Baryshkov * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19*9a0dfe9bSDmitry Baryshkov * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20*9a0dfe9bSDmitry Baryshkov * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 21*9a0dfe9bSDmitry Baryshkov * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 22*9a0dfe9bSDmitry Baryshkov * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23*9a0dfe9bSDmitry Baryshkov * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24*9a0dfe9bSDmitry Baryshkov * 25*9a0dfe9bSDmitry Baryshkov */ 26*9a0dfe9bSDmitry Baryshkov 27*9a0dfe9bSDmitry Baryshkov #ifndef __NOUVEAU_I2C_SIL164_H__ 28*9a0dfe9bSDmitry Baryshkov #define __NOUVEAU_I2C_SIL164_H__ 29*9a0dfe9bSDmitry Baryshkov 30*9a0dfe9bSDmitry Baryshkov /** 31*9a0dfe9bSDmitry Baryshkov * struct sil164_encoder_params 32*9a0dfe9bSDmitry Baryshkov * 33*9a0dfe9bSDmitry Baryshkov * Describes how the sil164 is connected to the GPU. It should be used 34*9a0dfe9bSDmitry Baryshkov * as the @params parameter of its @set_config method. 35*9a0dfe9bSDmitry Baryshkov * 36*9a0dfe9bSDmitry Baryshkov * See "http://www.siliconimage.com/docs/SiI-DS-0021-E-164.pdf". 37*9a0dfe9bSDmitry Baryshkov */ 38*9a0dfe9bSDmitry Baryshkov struct sil164_encoder_params { 39*9a0dfe9bSDmitry Baryshkov /* private: FIXME: document the members */ 40*9a0dfe9bSDmitry Baryshkov enum { 41*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_EDGE_FALLING = 0, 42*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_EDGE_RISING 43*9a0dfe9bSDmitry Baryshkov } input_edge; 44*9a0dfe9bSDmitry Baryshkov 45*9a0dfe9bSDmitry Baryshkov enum { 46*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_WIDTH_12BIT = 0, 47*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_WIDTH_24BIT 48*9a0dfe9bSDmitry Baryshkov } input_width; 49*9a0dfe9bSDmitry Baryshkov 50*9a0dfe9bSDmitry Baryshkov enum { 51*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_SINGLE_EDGE = 0, 52*9a0dfe9bSDmitry Baryshkov SIL164_INPUT_DUAL_EDGE 53*9a0dfe9bSDmitry Baryshkov } input_dual; 54*9a0dfe9bSDmitry Baryshkov 55*9a0dfe9bSDmitry Baryshkov enum { 56*9a0dfe9bSDmitry Baryshkov SIL164_PLL_FILTER_ON = 0, 57*9a0dfe9bSDmitry Baryshkov SIL164_PLL_FILTER_OFF, 58*9a0dfe9bSDmitry Baryshkov } pll_filter; 59*9a0dfe9bSDmitry Baryshkov 60*9a0dfe9bSDmitry Baryshkov int input_skew; /** < Allowed range [-4, 3], use 0 for no de-skew. */ 61*9a0dfe9bSDmitry Baryshkov int duallink_skew; /** < Allowed range [-4, 3]. */ 62*9a0dfe9bSDmitry Baryshkov }; 63*9a0dfe9bSDmitry Baryshkov 64*9a0dfe9bSDmitry Baryshkov #endif 65