![]() |
|
|||
0001 /* 0002 * Copyright (C) 2009 Francisco Jerez. 0003 * All Rights Reserved. 0004 * 0005 * Permission is hereby granted, free of charge, to any person obtaining 0006 * a copy of this software and associated documentation files (the 0007 * "Software"), to deal in the Software without restriction, including 0008 * without limitation the rights to use, copy, modify, merge, publish, 0009 * distribute, sublicense, and/or sell copies of the Software, and to 0010 * permit persons to whom the Software is furnished to do so, subject to 0011 * the following conditions: 0012 * 0013 * The above copyright notice and this permission notice (including the 0014 * next paragraph) shall be included in all copies or substantial 0015 * portions of the Software. 0016 * 0017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 0018 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 0019 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 0020 * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE 0021 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 0022 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 0023 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 0024 * 0025 */ 0026 0027 #ifndef __DRM_I2C_CH7006_H__ 0028 #define __DRM_I2C_CH7006_H__ 0029 0030 /** 0031 * struct ch7006_encoder_params 0032 * 0033 * Describes how the ch7006 is wired up with the GPU. It should be 0034 * used as the @params parameter of its @set_config method. 0035 * 0036 * See "http://www.chrontel.com/pdf/7006.pdf" for their precise 0037 * meaning. 0038 */ 0039 struct ch7006_encoder_params { 0040 enum { 0041 CH7006_FORMAT_RGB16 = 0, 0042 CH7006_FORMAT_YCrCb24m16, 0043 CH7006_FORMAT_RGB24m16, 0044 CH7006_FORMAT_RGB15, 0045 CH7006_FORMAT_RGB24m12C, 0046 CH7006_FORMAT_RGB24m12I, 0047 CH7006_FORMAT_RGB24m8, 0048 CH7006_FORMAT_RGB16m8, 0049 CH7006_FORMAT_RGB15m8, 0050 CH7006_FORMAT_YCrCb24m8, 0051 } input_format; 0052 0053 enum { 0054 CH7006_CLOCK_SLAVE = 0, 0055 CH7006_CLOCK_MASTER, 0056 } clock_mode; 0057 0058 enum { 0059 CH7006_CLOCK_EDGE_NEG = 0, 0060 CH7006_CLOCK_EDGE_POS, 0061 } clock_edge; 0062 0063 int xcm, pcm; 0064 0065 enum { 0066 CH7006_SYNC_SLAVE = 0, 0067 CH7006_SYNC_MASTER, 0068 } sync_direction; 0069 0070 enum { 0071 CH7006_SYNC_SEPARATED = 0, 0072 CH7006_SYNC_EMBEDDED, 0073 } sync_encoding; 0074 0075 enum { 0076 CH7006_POUT_1_8V = 0, 0077 CH7006_POUT_3_3V, 0078 } pout_level; 0079 0080 enum { 0081 CH7006_ACTIVE_HSYNC = 0, 0082 CH7006_ACTIVE_DSTART, 0083 } active_detect; 0084 }; 0085 0086 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |