unichromehw.h revision 1.1.14.2 1 1.1.14.2 yamt /* $NetBSD: unichromehw.h,v 1.1.14.2 2006/12/30 20:48:48 yamt Exp $ */
2 1.1.14.2 yamt
3 1.1.14.2 yamt /*
4 1.1.14.2 yamt * Copyright 1998-2006 VIA Technologies, Inc. All Rights Reserved.
5 1.1.14.2 yamt * Copyright 2001-2006 S3 Graphics, Inc. All Rights Reserved.
6 1.1.14.2 yamt *
7 1.1.14.2 yamt * Permission is hereby granted, free of charge, to any person obtaining a
8 1.1.14.2 yamt * copy of this software and associated documentation files (the "Software"),
9 1.1.14.2 yamt * to deal in the Software without restriction, including without limitation
10 1.1.14.2 yamt * the rights to use, copy, modify, merge, publish, distribute, sub license,
11 1.1.14.2 yamt * and/or sell copies of the Software, and to permit persons to whom the
12 1.1.14.2 yamt * Software is furnished to do so, subject to the following conditions:
13 1.1.14.2 yamt *
14 1.1.14.2 yamt * The above copyright notice and this permission notice (including the
15 1.1.14.2 yamt * next paragraph) shall be included in all copies or substantial portions
16 1.1.14.2 yamt * of the Software.
17 1.1.14.2 yamt *
18 1.1.14.2 yamt * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 1.1.14.2 yamt * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 1.1.14.2 yamt * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
21 1.1.14.2 yamt * THE AUTHOR(S) OR COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
22 1.1.14.2 yamt * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
23 1.1.14.2 yamt * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 1.1.14.2 yamt * DEALINGS IN THE SOFTWARE.
25 1.1.14.2 yamt */
26 1.1.14.2 yamt
27 1.1.14.2 yamt #ifndef _DEV_PCI_UNICHROMEHW_H
28 1.1.14.2 yamt #define _DEV_PCI_UNICHROMEHW_H
29 1.1.14.2 yamt
30 1.1.14.2 yamt //***************************************************//
31 1.1.14.2 yamt //* Definition IGA1 Design Method of CRTC Registers *//
32 1.1.14.2 yamt //***************************************************//
33 1.1.14.2 yamt #define IGA1_HOR_TOTAL_FORMULA(x) ((x)/8)-5
34 1.1.14.2 yamt #define IGA1_HOR_ADDR_FORMULA(x) ((x)/8)-1
35 1.1.14.2 yamt #define IGA1_HOR_BLANK_START_FORMULA(x) ((x)/8)-1
36 1.1.14.2 yamt #define IGA1_HOR_BLANK_END_FORMULA(x,y) ((x+y)/8)-1
37 1.1.14.2 yamt #define IGA1_HOR_SYNC_START_FORMULA(x) ((x)/8)-1
38 1.1.14.2 yamt #define IGA1_HOR_SYNC_END_FORMULA(x,y) ((x+y)/8)-1
39 1.1.14.2 yamt
40 1.1.14.2 yamt #define IGA1_VER_TOTAL_FORMULA(x) (x)-2
41 1.1.14.2 yamt #define IGA1_VER_ADDR_FORMULA(x) (x)-1
42 1.1.14.2 yamt #define IGA1_VER_BLANK_START_FORMULA(x) (x)-1
43 1.1.14.2 yamt #define IGA1_VER_BLANK_END_FORMULA(x,y) (x+y)-1
44 1.1.14.2 yamt #define IGA1_VER_SYNC_START_FORMULA(x) (x)-1
45 1.1.14.2 yamt #define IGA1_VER_SYNC_END_FORMULA(x,y) (x+y)-1
46 1.1.14.2 yamt
47 1.1.14.2 yamt //***************************************************//
48 1.1.14.2 yamt //* Definition IGA2 Design Method of CRTC Registers *//
49 1.1.14.2 yamt //***************************************************//
50 1.1.14.2 yamt #define IGA2_HOR_TOTAL_FORMULA(x) (x)-1
51 1.1.14.2 yamt #define IGA2_HOR_ADDR_FORMULA(x) (x)-1
52 1.1.14.2 yamt #define IGA2_HOR_BLANK_START_FORMULA(x) (x)-1
53 1.1.14.2 yamt #define IGA2_HOR_BLANK_END_FORMULA(x,y) (x+y)-1
54 1.1.14.2 yamt #define IGA2_HOR_SYNC_START_FORMULA(x) (x)-1
55 1.1.14.2 yamt #define IGA2_HOR_SYNC_END_FORMULA(x,y) (x+y)-1
56 1.1.14.2 yamt
57 1.1.14.2 yamt #define IGA2_VER_TOTAL_FORMULA(x) (x)-1
58 1.1.14.2 yamt #define IGA2_VER_ADDR_FORMULA(x) (x)-1
59 1.1.14.2 yamt #define IGA2_VER_BLANK_START_FORMULA(x) (x)-1
60 1.1.14.2 yamt #define IGA2_VER_BLANK_END_FORMULA(x,y) (x+y)-1
61 1.1.14.2 yamt #define IGA2_VER_SYNC_START_FORMULA(x) (x)-1
62 1.1.14.2 yamt #define IGA2_VER_SYNC_END_FORMULA(x,y) (x+y)-1
63 1.1.14.2 yamt
64 1.1.14.2 yamt /**********************************************************/
65 1.1.14.2 yamt /* Definition IGA2 Design Method of CRTC Shadow Registers */
66 1.1.14.2 yamt /**********************************************************/
67 1.1.14.2 yamt #define IGA2_HOR_TOTAL_SHADOW_FORMULA(x) (x/8)-5
68 1.1.14.2 yamt #define IGA2_HOR_BLANK_END_SHADOW_FORMULA(x,y) ((x+y)/8)-1
69 1.1.14.2 yamt #define IGA2_VER_TOTAL_SHADOW_FORMULA(x) (x)-2
70 1.1.14.2 yamt #define IGA2_VER_ADDR_SHADOW_FORMULA(x) (x)-1
71 1.1.14.2 yamt #define IGA2_VER_BLANK_START_SHADOW_FORMULA(x) (x)-1
72 1.1.14.2 yamt #define IGA2_VER_BLANK_END_SHADOW_FORMULA(x,y) (x+y)-1
73 1.1.14.2 yamt #define IGA2_VER_SYNC_START_SHADOW_FORMULA(x) (x)
74 1.1.14.2 yamt #define IGA2_VER_SYNC_END_SHADOW_FORMULA(x,y) (x+y)
75 1.1.14.2 yamt
76 1.1.14.2 yamt /* Define Register Number for IGA1 CRTC Timing */
77 1.1.14.2 yamt #define IGA1_HOR_TOTAL_REG_NUM 2 // location: {CR00,0,7},{CR36,3,3}
78 1.1.14.2 yamt #define IGA1_HOR_ADDR_REG_NUM 1 // location: {CR01,0,7}
79 1.1.14.2 yamt #define IGA1_HOR_BLANK_START_REG_NUM 1 // location: {CR02,0,7}
80 1.1.14.2 yamt #define IGA1_HOR_BLANK_END_REG_NUM 3 // location: {CR03,0,4},{CR05,7,7},{CR33,5,5}
81 1.1.14.2 yamt #define IGA1_HOR_SYNC_START_REG_NUM 2 // location: {CR04,0,7},{CR33,4,4}
82 1.1.14.2 yamt #define IGA1_HOR_SYNC_END_REG_NUM 1 // location: {CR05,0,4}
83 1.1.14.2 yamt #define IGA1_VER_TOTAL_REG_NUM 4 // location: {CR06,0,7},{CR07,0,0},{CR07,5,5},{CR35,0,0}
84 1.1.14.2 yamt #define IGA1_VER_ADDR_REG_NUM 4 // location: {CR12,0,7},{CR07,1,1},{CR07,6,6},{CR35,2,2}
85 1.1.14.2 yamt #define IGA1_VER_BLANK_START_REG_NUM 4 // location: {CR15,0,7},{CR07,3,3},{CR09,5,5},{CR35,3,3}
86 1.1.14.2 yamt #define IGA1_VER_BLANK_END_REG_NUM 1 // location: {CR16,0,7}
87 1.1.14.2 yamt #define IGA1_VER_SYNC_START_REG_NUM 4 // location: {CR10,0,7},{CR07,2,2},{CR07,7,7},{CR35,1,1}
88 1.1.14.2 yamt #define IGA1_VER_SYNC_END_REG_NUM 1 // location: {CR11,0,3}
89 1.1.14.2 yamt
90 1.1.14.2 yamt /* Define Register Number for IGA2 Shadow CRTC Timing */
91 1.1.14.2 yamt #define IGA2_SHADOW_HOR_TOTAL_REG_NUM 2 // location: {CR6D,0,7},{CR71,3,3}
92 1.1.14.2 yamt #define IGA2_SHADOW_HOR_BLANK_END_REG_NUM 1 // location: {CR6E,0,7}
93 1.1.14.2 yamt #define IGA2_SHADOW_VER_TOTAL_REG_NUM 2 // location: {CR6F,0,7},{CR71,0,2}
94 1.1.14.2 yamt #define IGA2_SHADOW_VER_ADDR_REG_NUM 2 // location: {CR70,0,7},{CR71,4,6}
95 1.1.14.2 yamt #define IGA2_SHADOW_VER_BLANK_START_REG_NUM 2 // location: {CR72,0,7},{CR74,4,6}
96 1.1.14.2 yamt #define IGA2_SHADOW_VER_BLANK_END_REG_NUM 2 // location: {CR73,0,7},{CR74,0,2}
97 1.1.14.2 yamt #define IGA2_SHADOW_VER_SYNC_START_REG_NUM 2 // location: {CR75,0,7},{CR76,4,6}
98 1.1.14.2 yamt #define IGA2_SHADOW_VER_SYNC_END_REG_NUM 1 // location: {CR76,0,3}
99 1.1.14.2 yamt
100 1.1.14.2 yamt /* Define Register Number for IGA2 CRTC Timing */
101 1.1.14.2 yamt #define IGA2_HOR_TOTAL_REG_NUM 2 // location: {CR50,0,7},{CR55,0,3}
102 1.1.14.2 yamt #define IGA2_HOR_ADDR_REG_NUM 2 // location: {CR51,0,7},{CR55,4,6}
103 1.1.14.2 yamt #define IGA2_HOR_BLANK_START_REG_NUM 2 // location: {CR52,0,7},{CR54,0,2}
104 1.1.14.2 yamt #define IGA2_HOR_BLANK_END_REG_NUM 3 // location: {CR53,0,7},{CR54,3,5},{CR5D,6,6}
105 1.1.14.2 yamt #define IGA2_HOR_SYNC_START_REG_NUM 3 // location: {CR56,0,7},{CR54,6,7},{CR5C,7,7}
106 1.1.14.2 yamt #define IGA2_HOR_SYNC_END_REG_NUM 2 // location: {CR57,0,7},{CR5C,6,6}
107 1.1.14.2 yamt #define IGA2_VER_TOTAL_REG_NUM 2 // location: {CR58,0,7},{CR5D,0,2}
108 1.1.14.2 yamt #define IGA2_VER_ADDR_REG_NUM 2 // location: {CR59,0,7},{CR5D,3,5}
109 1.1.14.2 yamt #define IGA2_VER_BLANK_START_REG_NUM 2 // location: {CR5A,0,7},{CR5C,0,2}
110 1.1.14.2 yamt #define IGA2_VER_BLANK_END_REG_NUM 2 // location: {CR5E,0,7},{CR5C,3,5}
111 1.1.14.2 yamt #define IGA2_VER_SYNC_START_REG_NUM 2 // location: {CR5E,0,7},{CR5F,5,7}
112 1.1.14.2 yamt #define IGA2_VER_SYNC_END_REG_NUM 1 // location: {CR5F,0,4}
113 1.1.14.2 yamt
114 1.1.14.2 yamt /* Define Offset and Fetch Count Register*/
115 1.1.14.2 yamt #define IGA1_OFFSET_REG_NUM 2 // location: {CR13,0,7},{CR35,5,7}
116 1.1.14.2 yamt #define IGA1_OFFSER_ALIGN_BYTE 8 // 8 bytes alignment.
117 1.1.14.2 yamt #define IGA1_OFFSET_FORMULA(x,y) (x*y)/IGA1_OFFSER_ALIGN_BYTE // x: H resolution, y: color depth
118 1.1.14.2 yamt
119 1.1.14.2 yamt #define IGA1_FETCH_COUNT_REG_NUM 2 // location: {SR1C,0,7},{SR1D,0,1}
120 1.1.14.2 yamt #define IGA1_FETCH_COUNT_ALIGN_BYTE 16 // 16 bytes alignment.
121 1.1.14.2 yamt #define IGA1_FETCH_COUNT_PATCH_VALUE 4 // x: H resolution, y: color depth
122 1.1.14.2 yamt #define IGA1_FETCH_COUNT_FORMULA(x,y) ((x*y)/IGA1_FETCH_COUNT_ALIGN_BYTE)+ IGA1_FETCH_COUNT_PATCH_VALUE
123 1.1.14.2 yamt
124 1.1.14.2 yamt #define IGA2_OFFSET_REG_NUM 2 // location: {CR66,0,7},{CR67,0,1}
125 1.1.14.2 yamt #define IGA2_OFFSET_ALIGN_BYTE 8
126 1.1.14.2 yamt #define IGA2_OFFSET_FORMULA(x,y) (x*y)/IGA2_OFFSET_ALIGN_BYTE // x: H resolution, y: color depth
127 1.1.14.2 yamt
128 1.1.14.2 yamt #define IGA2_FETCH_COUNT_REG_NUM 2 // location: {CR65,0,7},{CR67,2,3}
129 1.1.14.2 yamt #define IGA2_FETCH_COUNT_ALIGN_BYTE 16
130 1.1.14.2 yamt #define IGA2_FETCH_COUNT_PATCH_VALUE 0
131 1.1.14.2 yamt #define IGA2_FETCH_COUNT_FORMULA(x,y) ((x*y)/IGA2_FETCH_COUNT_ALIGN_BYTE)+ IGA2_FETCH_COUNT_PATCH_VALUE
132 1.1.14.2 yamt
133 1.1.14.2 yamt // Staring Address
134 1.1.14.2 yamt #define IGA1_STARTING_ADDR_REG_NUM 4 // location: {CR0C,0,7},{CR0D,0,7},{CR34,0,7},{CR48,0,1}
135 1.1.14.2 yamt #define IGA2_STARTING_ADDR_REG_NUM 3 // location: {CR62,1,7},{CR63,0,7},{CR64,0,7}
136 1.1.14.2 yamt
137 1.1.14.2 yamt // Define Display OFFSET
138 1.1.14.2 yamt // These value are by HW suggested value
139 1.1.14.2 yamt #define K800_IGA1_FIFO_MAX_DEPTH 384 // location: {SR17,0,7}
140 1.1.14.2 yamt #define K800_IGA1_FIFO_THRESHOLD 328 // location: {SR16,0,5},{SR16,7,7}
141 1.1.14.2 yamt #define K800_IGA1_FIFO_HIGH_THRESHOLD 296 // location: {SR18,0,5},{SR18,7,7}
142 1.1.14.2 yamt #define K800_IGA1_DISPLAY_QUEUE_EXPIRE_NUM 0 // location: {SR22,0,4}. (128/4) =64, K800 must be set zero,
143 1.1.14.2 yamt // because HW only 5 bits
144 1.1.14.2 yamt
145 1.1.14.2 yamt #define K800_IGA2_FIFO_MAX_DEPTH 384 // location: {CR68,4,7},{CR94,7,7},{CR95,7,7}
146 1.1.14.2 yamt #define K800_IGA2_FIFO_THRESHOLD 328 // location: {CR68,0,3},{CR95,4,6}
147 1.1.14.2 yamt #define K800_IGA2_FIFO_HIGH_THRESHOLD 296 // location: {CR92,0,3},{CR95,0,2}
148 1.1.14.2 yamt #define K800_IGA2_DISPLAY_QUEUE_EXPIRE_NUM 128 // location: {CR94,0,6}
149 1.1.14.2 yamt
150 1.1.14.2 yamt #define P880_IGA1_FIFO_MAX_DEPTH 192 // location: {SR17,0,7}
151 1.1.14.2 yamt #define P880_IGA1_FIFO_THRESHOLD 128 // location: {SR16,0,5},{SR16,7,7}
152 1.1.14.2 yamt #define P880_IGA1_FIFO_HIGH_THRESHOLD 64 // location: {SR18,0,5},{SR18,7,7}
153 1.1.14.2 yamt #define P880_IGA1_DISPLAY_QUEUE_EXPIRE_NUM 0 // location: {SR22,0,4}. (128/4) =64, K800 must be set zero,
154 1.1.14.2 yamt // because HW only 5 bits
155 1.1.14.2 yamt
156 1.1.14.2 yamt #define P880_IGA2_FIFO_MAX_DEPTH 96 // location: {CR68,4,7},{CR94,7,7},{CR95,7,7}
157 1.1.14.2 yamt #define P880_IGA2_FIFO_THRESHOLD 64 // location: {CR68,0,3},{CR95,4,6}
158 1.1.14.2 yamt #define P880_IGA2_FIFO_HIGH_THRESHOLD 32 // location: {CR92,0,3},{CR95,0,2}
159 1.1.14.2 yamt #define P880_IGA2_DISPLAY_QUEUE_EXPIRE_NUM 128 // location: {CR94,0,6}
160 1.1.14.2 yamt
161 1.1.14.2 yamt /* VT3314 chipset*/
162 1.1.14.2 yamt #define CN900_IGA1_FIFO_MAX_DEPTH 96 /* location: {SR17,0,7}*/
163 1.1.14.2 yamt #define CN900_IGA1_FIFO_THRESHOLD 80 /* location: {SR16,0,5},{SR16,7,7}*/
164 1.1.14.2 yamt #define CN900_IGA1_FIFO_HIGH_THRESHOLD 64 /* location: {SR18,0,5},{SR18,7,7}*/
165 1.1.14.2 yamt #define CN900_IGA1_DISPLAY_QUEUE_EXPIRE_NUM 0 /* location: {SR22,0,4}. (128/4) =64, P800 must be set zero, because HW only 5 bits*/
166 1.1.14.2 yamt
167 1.1.14.2 yamt #define CN900_IGA2_FIFO_MAX_DEPTH 96 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7}*/
168 1.1.14.2 yamt #define CN900_IGA2_FIFO_THRESHOLD 80 /* location: {CR68,0,3},{CR95,4,6}*/
169 1.1.14.2 yamt #define CN900_IGA2_FIFO_HIGH_THRESHOLD 32 /* location: {CR92,0,3},{CR95,0,2}*/
170 1.1.14.2 yamt #define CN900_IGA2_DISPLAY_QUEUE_EXPIRE_NUM 128 /* location: {CR94,0,6}*/
171 1.1.14.2 yamt
172 1.1.14.2 yamt /* For VT3324, these values are suggested by HW */
173 1.1.14.2 yamt #define CX700_IGA1_FIFO_MAX_DEPTH 192 /* location: {SR17,0,7}*/
174 1.1.14.2 yamt #define CX700_IGA1_FIFO_THRESHOLD 128 /* location: {SR16,0,5},{SR16,7,7}*/
175 1.1.14.2 yamt #define CX700_IGA1_FIFO_HIGH_THRESHOLD 128 /* location: {SR18,0,5},{SR18,7,7} */
176 1.1.14.2 yamt #define CX700_IGA1_DISPLAY_QUEUE_EXPIRE_NUM 124 /* location: {SR22,0,4} */
177 1.1.14.2 yamt
178 1.1.14.2 yamt #define CX700_IGA2_FIFO_MAX_DEPTH 96 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7}*/
179 1.1.14.2 yamt #define CX700_IGA2_FIFO_THRESHOLD 64 /* location: {CR68,0,3},{CR95,4,6}*/
180 1.1.14.2 yamt #define CX700_IGA2_FIFO_HIGH_THRESHOLD 32 /* location: {CR92,0,3},{CR95,0,2} */
181 1.1.14.2 yamt #define CX700_IGA2_DISPLAY_QUEUE_EXPIRE_NUM 128 /* location: {CR94,0,6}*/
182 1.1.14.2 yamt
183 1.1.14.2 yamt #define IGA1_FIFO_DEPTH_SELECT_REG_NUM 1
184 1.1.14.2 yamt #define IGA1_FIFO_THRESHOLD_REG_NUM 2
185 1.1.14.2 yamt #define IGA1_FIFO_HIGH_THRESHOLD_REG_NUM 2
186 1.1.14.2 yamt #define IGA1_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM 1
187 1.1.14.2 yamt
188 1.1.14.2 yamt #define IGA2_FIFO_DEPTH_SELECT_REG_NUM 3
189 1.1.14.2 yamt #define IGA2_FIFO_THRESHOLD_REG_NUM 2
190 1.1.14.2 yamt #define IGA2_FIFO_HIGH_THRESHOLD_REG_NUM 2
191 1.1.14.2 yamt #define IGA2_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM 1
192 1.1.14.2 yamt
193 1.1.14.2 yamt
194 1.1.14.2 yamt #define IGA1_FIFO_DEPTH_SELECT_FORMULA(x) (x/2)-1
195 1.1.14.2 yamt #define IGA1_FIFO_THRESHOLD_FORMULA(x) (x/4)
196 1.1.14.2 yamt #define IGA1_DISPLAY_QUEUE_EXPIRE_NUM_FORMULA(x) (x/4)
197 1.1.14.2 yamt #define IGA1_FIFO_HIGH_THRESHOLD_FORMULA(x) (x/4)
198 1.1.14.2 yamt #define IGA2_FIFO_DEPTH_SELECT_FORMULA(x) ((x/2)/4)-1
199 1.1.14.2 yamt #define IGA2_FIFO_THRESHOLD_FORMULA(x) (x/4)
200 1.1.14.2 yamt #define IGA2_DISPLAY_QUEUE_EXPIRE_NUM_FORMULA(x) (x/4)
201 1.1.14.2 yamt #define IGA2_FIFO_HIGH_THRESHOLD_FORMULA(x) (x/4)
202 1.1.14.2 yamt
203 1.1.14.2 yamt /************************************************************************/
204 1.1.14.2 yamt /* LCD Timing */
205 1.1.14.2 yamt /************************************************************************/
206 1.1.14.2 yamt #define LCD_POWER_SEQ_TD0 500000 // 500 ms = 500000 us
207 1.1.14.2 yamt #define LCD_POWER_SEQ_TD1 50000 // 50 ms = 50000 us
208 1.1.14.2 yamt #define LCD_POWER_SEQ_TD2 0 // 0 us
209 1.1.14.2 yamt #define LCD_POWER_SEQ_TD3 210000 // 210 ms = 210000 us
210 1.1.14.2 yamt
211 1.1.14.2 yamt #define CLE266_POWER_SEQ_UNIT 71 // 2^10 * (1/14.31818M) = 71.475 us (K400.revA)
212 1.1.14.2 yamt #define K800_POWER_SEQ_UNIT 142 // 2^11 * (1/14.31818M) = 142.95 us (K400.revB)
213 1.1.14.2 yamt #define P880_POWER_SEQ_UNIT 572 // 2^13 * (1/14.31818M) = 572.1 us
214 1.1.14.2 yamt
215 1.1.14.2 yamt #define CLE266_POWER_SEQ_FORMULA(x) (x)/CLE266_POWER_SEQ_UNIT
216 1.1.14.2 yamt #define K800_POWER_SEQ_FORMULA(x) (x)/K800_POWER_SEQ_UNIT
217 1.1.14.2 yamt #define P880_POWER_SEQ_FORMULA(x) (x)/P880_POWER_SEQ_UNIT
218 1.1.14.2 yamt
219 1.1.14.2 yamt
220 1.1.14.2 yamt #define LCD_POWER_SEQ_TD0_REG_NUM 2 // location: {CR8B,0,7},{CR8F,0,3}
221 1.1.14.2 yamt #define LCD_POWER_SEQ_TD1_REG_NUM 2 // location: {CR8C,0,7},{CR8F,4,7}
222 1.1.14.2 yamt #define LCD_POWER_SEQ_TD2_REG_NUM 2 // location: {CR8D,0,7},{CR90,0,3}
223 1.1.14.2 yamt #define LCD_POWER_SEQ_TD3_REG_NUM 2 // location: {CR8E,0,7},{CR90,4,7}
224 1.1.14.2 yamt
225 1.1.14.2 yamt
226 1.1.14.2 yamt // LCD Scaling factor
227 1.1.14.2 yamt // x: indicate setting horizontal size
228 1.1.14.2 yamt // y: indicate panel horizontal size
229 1.1.14.2 yamt
230 1.1.14.2 yamt #define CLE266_LCD_HOR_SCF_FORMULA(x,y) (((x-1)*1024)/(y-1)) // Horizontal scaling factor 10 bits (2^10)
231 1.1.14.2 yamt #define CLE266_LCD_VER_SCF_FORMULA(x,y) (((x-1)*1024)/(y-1)) // Vertical scaling factor 10 bits (2^10)
232 1.1.14.2 yamt #define K800_LCD_HOR_SCF_FORMULA(x,y) (((x-1)*4096)/(y-1)) // Horizontal scaling factor 10 bits (2^12)
233 1.1.14.2 yamt #define K800_LCD_VER_SCF_FORMULA(x,y) (((x-1)*2048)/(y-1)) // Vertical scaling factor 10 bits (2^11)
234 1.1.14.2 yamt
235 1.1.14.2 yamt #define LCD_HOR_SCALING_FACTOR_REG_NUM 3 // location: {CR9F,0,1},{CR77,0,7},{CR79,4,5}
236 1.1.14.2 yamt #define LCD_VER_SCALING_FACTOR_REG_NUM 3 // location: {CR79,3,3},{CR78,0,7},{CR79,6,7}
237 1.1.14.2 yamt #define LCD_HOR_SCALING_FACTOR_REG_NUM_CLE 2 /* location: {CR77,0,7},{CR79,4,5} */
238 1.1.14.2 yamt #define LCD_VER_SCALING_FACTOR_REG_NUM_CLE 2 /* location: {CR78,0,7},{CR79,6,7} */
239 1.1.14.2 yamt
240 1.1.14.2 yamt
241 1.1.14.2 yamt
242 1.1.14.2 yamt //************************************************//
243 1.1.14.2 yamt //* Define IGA1 Display Timing *//
244 1.1.14.2 yamt //************************************************//
245 1.1.14.2 yamt struct io_register {
246 1.1.14.2 yamt uint8_t io_addr;
247 1.1.14.2 yamt uint8_t start_bit;
248 1.1.14.2 yamt uint8_t end_bit;
249 1.1.14.2 yamt };
250 1.1.14.2 yamt
251 1.1.14.2 yamt
252 1.1.14.2 yamt /* IGA1 Horizontal Total */
253 1.1.14.2 yamt struct iga1_hor_total
254 1.1.14.2 yamt {
255 1.1.14.2 yamt int reg_num;
256 1.1.14.2 yamt struct io_register reg[IGA1_HOR_TOTAL_REG_NUM];
257 1.1.14.2 yamt };
258 1.1.14.2 yamt
259 1.1.14.2 yamt /* IGA1 Horizontal Addressable Video */
260 1.1.14.2 yamt struct iga1_hor_addr {
261 1.1.14.2 yamt int reg_num;
262 1.1.14.2 yamt struct io_register reg[IGA1_HOR_ADDR_REG_NUM];
263 1.1.14.2 yamt };
264 1.1.14.2 yamt
265 1.1.14.2 yamt /* IGA1 Horizontal Blank Start */
266 1.1.14.2 yamt struct iga1_hor_blank_start {
267 1.1.14.2 yamt int reg_num;
268 1.1.14.2 yamt struct io_register reg[IGA1_HOR_BLANK_START_REG_NUM];
269 1.1.14.2 yamt };
270 1.1.14.2 yamt
271 1.1.14.2 yamt /* IGA1 Horizontal Blank End */
272 1.1.14.2 yamt struct iga1_hor_blank_end {
273 1.1.14.2 yamt int reg_num;
274 1.1.14.2 yamt struct io_register reg[IGA1_HOR_BLANK_END_REG_NUM];
275 1.1.14.2 yamt };
276 1.1.14.2 yamt
277 1.1.14.2 yamt /* IGA1 Horizontal Sync Start */
278 1.1.14.2 yamt struct iga1_hor_sync_start {
279 1.1.14.2 yamt int reg_num;
280 1.1.14.2 yamt struct io_register reg[IGA1_HOR_SYNC_START_REG_NUM];
281 1.1.14.2 yamt };
282 1.1.14.2 yamt
283 1.1.14.2 yamt /* IGA1 Horizontal Sync End */
284 1.1.14.2 yamt struct iga1_hor_sync_end {
285 1.1.14.2 yamt int reg_num;
286 1.1.14.2 yamt struct io_register reg[IGA1_HOR_SYNC_END_REG_NUM];
287 1.1.14.2 yamt };
288 1.1.14.2 yamt
289 1.1.14.2 yamt /* IGA1 Vertical Total */
290 1.1.14.2 yamt struct iga1_ver_total {
291 1.1.14.2 yamt int reg_num;
292 1.1.14.2 yamt struct io_register reg[IGA1_VER_TOTAL_REG_NUM];
293 1.1.14.2 yamt };
294 1.1.14.2 yamt
295 1.1.14.2 yamt /* IGA1 Vertical Addressable Video */
296 1.1.14.2 yamt struct iga1_ver_addr {
297 1.1.14.2 yamt int reg_num;
298 1.1.14.2 yamt struct io_register reg[IGA1_VER_ADDR_REG_NUM];
299 1.1.14.2 yamt };
300 1.1.14.2 yamt
301 1.1.14.2 yamt /* IGA1 Vertical Blank Start */
302 1.1.14.2 yamt struct iga1_ver_blank_start {
303 1.1.14.2 yamt int reg_num;
304 1.1.14.2 yamt struct io_register reg[IGA1_VER_BLANK_START_REG_NUM];
305 1.1.14.2 yamt };
306 1.1.14.2 yamt
307 1.1.14.2 yamt /* IGA1 Vertical Blank End */
308 1.1.14.2 yamt struct iga1_ver_blank_end {
309 1.1.14.2 yamt int reg_num;
310 1.1.14.2 yamt struct io_register reg[IGA1_VER_BLANK_END_REG_NUM];
311 1.1.14.2 yamt };
312 1.1.14.2 yamt
313 1.1.14.2 yamt /* IGA1 Vertical Sync Start */
314 1.1.14.2 yamt struct iga1_ver_sync_start {
315 1.1.14.2 yamt int reg_num;
316 1.1.14.2 yamt struct io_register reg[IGA1_VER_SYNC_START_REG_NUM];
317 1.1.14.2 yamt };
318 1.1.14.2 yamt
319 1.1.14.2 yamt /* IGA1 Vertical Sync End */
320 1.1.14.2 yamt struct iga1_ver_sync_end {
321 1.1.14.2 yamt int reg_num;
322 1.1.14.2 yamt struct io_register reg[IGA1_VER_SYNC_END_REG_NUM];
323 1.1.14.2 yamt };
324 1.1.14.2 yamt
325 1.1.14.2 yamt //************************************************//
326 1.1.14.2 yamt // Define IGA2 Shadow Display Timing //
327 1.1.14.2 yamt //************************************************//
328 1.1.14.2 yamt
329 1.1.14.2 yamt /* IGA2 Shadow Horizontal Total */
330 1.1.14.2 yamt struct iga2_shadow_hor_total
331 1.1.14.2 yamt {
332 1.1.14.2 yamt int reg_num;
333 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_HOR_TOTAL_REG_NUM];
334 1.1.14.2 yamt };
335 1.1.14.2 yamt
336 1.1.14.2 yamt /* IGA2 Shadow Horizontal Blank End */
337 1.1.14.2 yamt struct iga2_shadow_hor_blank_end {
338 1.1.14.2 yamt int reg_num;
339 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_HOR_BLANK_END_REG_NUM];
340 1.1.14.2 yamt };
341 1.1.14.2 yamt
342 1.1.14.2 yamt
343 1.1.14.2 yamt /* IGA2 Shadow Vertical Total */
344 1.1.14.2 yamt struct iga2_shadow_ver_total {
345 1.1.14.2 yamt int reg_num;
346 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_TOTAL_REG_NUM];
347 1.1.14.2 yamt };
348 1.1.14.2 yamt
349 1.1.14.2 yamt /* IGA2 Shadow Vertical Addressable Video */
350 1.1.14.2 yamt struct iga2_shadow_ver_addr {
351 1.1.14.2 yamt int reg_num;
352 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_ADDR_REG_NUM];
353 1.1.14.2 yamt };
354 1.1.14.2 yamt
355 1.1.14.2 yamt /* IGA2 Shadow Vertical Blank Start */
356 1.1.14.2 yamt struct iga2_shadow_ver_blank_start {
357 1.1.14.2 yamt int reg_num;
358 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_BLANK_START_REG_NUM];
359 1.1.14.2 yamt };
360 1.1.14.2 yamt
361 1.1.14.2 yamt /* IGA2 Shadow Vertical Blank End */
362 1.1.14.2 yamt struct iga2_shadow_ver_blank_end {
363 1.1.14.2 yamt int reg_num;
364 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_BLANK_END_REG_NUM];
365 1.1.14.2 yamt };
366 1.1.14.2 yamt
367 1.1.14.2 yamt /* IGA2 Shadow Vertical Sync Start */
368 1.1.14.2 yamt struct iga2_shadow_ver_sync_start {
369 1.1.14.2 yamt int reg_num;
370 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_SYNC_START_REG_NUM];
371 1.1.14.2 yamt };
372 1.1.14.2 yamt
373 1.1.14.2 yamt /* IGA2 Shadow Vertical Sync End */
374 1.1.14.2 yamt struct iga2_shadow_ver_sync_end {
375 1.1.14.2 yamt int reg_num;
376 1.1.14.2 yamt struct io_register reg[IGA2_SHADOW_VER_SYNC_END_REG_NUM];
377 1.1.14.2 yamt };
378 1.1.14.2 yamt
379 1.1.14.2 yamt //************************************************//
380 1.1.14.2 yamt // Define IGA2 Display Timing //
381 1.1.14.2 yamt //************************************************//
382 1.1.14.2 yamt
383 1.1.14.2 yamt /* IGA2 Horizontal Total */
384 1.1.14.2 yamt struct iga2_hor_total {
385 1.1.14.2 yamt int reg_num;
386 1.1.14.2 yamt struct io_register reg[IGA2_HOR_TOTAL_REG_NUM];
387 1.1.14.2 yamt };
388 1.1.14.2 yamt
389 1.1.14.2 yamt /* IGA2 Horizontal Addressable Video */
390 1.1.14.2 yamt struct iga2_hor_addr {
391 1.1.14.2 yamt int reg_num;
392 1.1.14.2 yamt struct io_register reg[IGA2_HOR_ADDR_REG_NUM];
393 1.1.14.2 yamt };
394 1.1.14.2 yamt
395 1.1.14.2 yamt /* IGA2 Horizontal Blank Start */
396 1.1.14.2 yamt struct iga2_hor_blank_start {
397 1.1.14.2 yamt int reg_num;
398 1.1.14.2 yamt struct io_register reg[IGA2_HOR_BLANK_START_REG_NUM];
399 1.1.14.2 yamt };
400 1.1.14.2 yamt
401 1.1.14.2 yamt /* IGA2 Horizontal Blank End */
402 1.1.14.2 yamt struct iga2_hor_blank_end {
403 1.1.14.2 yamt int reg_num;
404 1.1.14.2 yamt struct io_register reg[IGA2_HOR_BLANK_END_REG_NUM];
405 1.1.14.2 yamt };
406 1.1.14.2 yamt
407 1.1.14.2 yamt /* IGA2 Horizontal Sync Start */
408 1.1.14.2 yamt struct iga2_hor_sync_start {
409 1.1.14.2 yamt int reg_num;
410 1.1.14.2 yamt struct io_register reg[IGA2_HOR_SYNC_START_REG_NUM];
411 1.1.14.2 yamt };
412 1.1.14.2 yamt
413 1.1.14.2 yamt /* IGA2 Horizontal Sync End */
414 1.1.14.2 yamt struct iga2_hor_sync_end {
415 1.1.14.2 yamt int reg_num;
416 1.1.14.2 yamt struct io_register reg[IGA2_HOR_SYNC_END_REG_NUM];
417 1.1.14.2 yamt };
418 1.1.14.2 yamt
419 1.1.14.2 yamt /* IGA2 Vertical Total */
420 1.1.14.2 yamt struct iga2_ver_total {
421 1.1.14.2 yamt int reg_num;
422 1.1.14.2 yamt struct io_register reg[IGA2_VER_TOTAL_REG_NUM];
423 1.1.14.2 yamt };
424 1.1.14.2 yamt
425 1.1.14.2 yamt /* IGA2 Vertical Addressable Video */
426 1.1.14.2 yamt struct iga2_ver_addr {
427 1.1.14.2 yamt int reg_num;
428 1.1.14.2 yamt struct io_register reg[IGA2_VER_ADDR_REG_NUM];
429 1.1.14.2 yamt };
430 1.1.14.2 yamt
431 1.1.14.2 yamt /* IGA2 Vertical Blank Start */
432 1.1.14.2 yamt struct iga2_ver_blank_start {
433 1.1.14.2 yamt int reg_num;
434 1.1.14.2 yamt struct io_register reg[IGA2_VER_BLANK_START_REG_NUM];
435 1.1.14.2 yamt };
436 1.1.14.2 yamt
437 1.1.14.2 yamt /* IGA2 Vertical Blank End */
438 1.1.14.2 yamt struct iga2_ver_blank_end {
439 1.1.14.2 yamt int reg_num;
440 1.1.14.2 yamt struct io_register reg[IGA2_VER_BLANK_END_REG_NUM];
441 1.1.14.2 yamt };
442 1.1.14.2 yamt
443 1.1.14.2 yamt /* IGA2 Vertical Sync Start */
444 1.1.14.2 yamt struct iga2_ver_sync_start {
445 1.1.14.2 yamt int reg_num;
446 1.1.14.2 yamt struct io_register reg[IGA2_VER_SYNC_START_REG_NUM];
447 1.1.14.2 yamt };
448 1.1.14.2 yamt
449 1.1.14.2 yamt /* IGA2 Vertical Sync End */
450 1.1.14.2 yamt struct iga2_ver_sync_end {
451 1.1.14.2 yamt int reg_num;
452 1.1.14.2 yamt struct io_register reg[IGA2_VER_SYNC_END_REG_NUM];
453 1.1.14.2 yamt };
454 1.1.14.2 yamt
455 1.1.14.2 yamt /* IGA1 Offset Register */
456 1.1.14.2 yamt struct iga1_offset {
457 1.1.14.2 yamt int reg_num;
458 1.1.14.2 yamt struct io_register reg[IGA1_OFFSET_REG_NUM];
459 1.1.14.2 yamt };
460 1.1.14.2 yamt
461 1.1.14.2 yamt /* IGA2 Offset Register */
462 1.1.14.2 yamt struct iga2_offset {
463 1.1.14.2 yamt int reg_num;
464 1.1.14.2 yamt struct io_register reg[IGA2_OFFSET_REG_NUM];
465 1.1.14.2 yamt };
466 1.1.14.2 yamt
467 1.1.14.2 yamt struct offset{
468 1.1.14.2 yamt struct iga1_offset iga1_offset_reg;
469 1.1.14.2 yamt struct iga2_offset iga2_offset_reg;
470 1.1.14.2 yamt };
471 1.1.14.2 yamt
472 1.1.14.2 yamt /* IGA1 Fetch Count Register */
473 1.1.14.2 yamt struct iga1_fetch_count {
474 1.1.14.2 yamt int reg_num;
475 1.1.14.2 yamt struct io_register reg[IGA1_FETCH_COUNT_REG_NUM];
476 1.1.14.2 yamt };
477 1.1.14.2 yamt
478 1.1.14.2 yamt /* IGA2 Fetch Count Register */
479 1.1.14.2 yamt struct iga2_fetch_count {
480 1.1.14.2 yamt int reg_num;
481 1.1.14.2 yamt struct io_register reg[IGA2_FETCH_COUNT_REG_NUM];
482 1.1.14.2 yamt };
483 1.1.14.2 yamt
484 1.1.14.2 yamt struct fetch_count{
485 1.1.14.2 yamt struct iga1_fetch_count iga1_fetch_count_reg;
486 1.1.14.2 yamt struct iga2_fetch_count iga2_fetch_count_reg;
487 1.1.14.2 yamt };
488 1.1.14.2 yamt
489 1.1.14.2 yamt /* Starting Address Register */
490 1.1.14.2 yamt struct iga1_starting_addr {
491 1.1.14.2 yamt int reg_num;
492 1.1.14.2 yamt struct io_register reg[IGA1_STARTING_ADDR_REG_NUM];
493 1.1.14.2 yamt };
494 1.1.14.2 yamt
495 1.1.14.2 yamt struct iga2_starting_addr {
496 1.1.14.2 yamt int reg_num;
497 1.1.14.2 yamt struct io_register reg[IGA2_STARTING_ADDR_REG_NUM];
498 1.1.14.2 yamt };
499 1.1.14.2 yamt
500 1.1.14.2 yamt struct starting_addr {
501 1.1.14.2 yamt struct iga1_starting_addr iga1_starting_addr_reg;
502 1.1.14.2 yamt struct iga2_starting_addr iga2_starting_addr_reg;
503 1.1.14.2 yamt };
504 1.1.14.2 yamt
505 1.1.14.2 yamt /* LCD Power Sequence Timer */
506 1.1.14.2 yamt struct lcd_pwd_seq_td0{
507 1.1.14.2 yamt int reg_num;
508 1.1.14.2 yamt struct io_register reg[LCD_POWER_SEQ_TD0_REG_NUM];
509 1.1.14.2 yamt };
510 1.1.14.2 yamt
511 1.1.14.2 yamt struct lcd_pwd_seq_td1{
512 1.1.14.2 yamt int reg_num;
513 1.1.14.2 yamt struct io_register reg[LCD_POWER_SEQ_TD1_REG_NUM];
514 1.1.14.2 yamt };
515 1.1.14.2 yamt
516 1.1.14.2 yamt struct lcd_pwd_seq_td2{
517 1.1.14.2 yamt int reg_num;
518 1.1.14.2 yamt struct io_register reg[LCD_POWER_SEQ_TD2_REG_NUM];
519 1.1.14.2 yamt };
520 1.1.14.2 yamt
521 1.1.14.2 yamt struct lcd_pwd_seq_td3{
522 1.1.14.2 yamt int reg_num;
523 1.1.14.2 yamt struct io_register reg[LCD_POWER_SEQ_TD3_REG_NUM];
524 1.1.14.2 yamt };
525 1.1.14.2 yamt
526 1.1.14.2 yamt struct _lcd_pwd_seq_timer{
527 1.1.14.2 yamt struct lcd_pwd_seq_td0 td0;
528 1.1.14.2 yamt struct lcd_pwd_seq_td1 td1;
529 1.1.14.2 yamt struct lcd_pwd_seq_td2 td2;
530 1.1.14.2 yamt struct lcd_pwd_seq_td3 td3;
531 1.1.14.2 yamt };
532 1.1.14.2 yamt
533 1.1.14.2 yamt /* LCD Scaling Factor */
534 1.1.14.2 yamt struct _lcd_hor_scaling_factor{
535 1.1.14.2 yamt int reg_num;
536 1.1.14.2 yamt struct io_register reg[LCD_HOR_SCALING_FACTOR_REG_NUM];
537 1.1.14.2 yamt };
538 1.1.14.2 yamt
539 1.1.14.2 yamt struct _lcd_ver_scaling_factor{
540 1.1.14.2 yamt int reg_num;
541 1.1.14.2 yamt struct io_register reg[LCD_VER_SCALING_FACTOR_REG_NUM];
542 1.1.14.2 yamt };
543 1.1.14.2 yamt
544 1.1.14.2 yamt
545 1.1.14.2 yamt struct _lcd_scaling_factor{
546 1.1.14.2 yamt struct _lcd_hor_scaling_factor lcd_hor_scaling_factor;
547 1.1.14.2 yamt struct _lcd_ver_scaling_factor lcd_ver_scaling_factor;
548 1.1.14.2 yamt };
549 1.1.14.2 yamt
550 1.1.14.2 yamt struct pll_map {
551 1.1.14.2 yamt uint32_t clk;
552 1.1.14.2 yamt uint32_t cle266_pll;
553 1.1.14.2 yamt uint32_t k800_pll;
554 1.1.14.2 yamt uint32_t cx700_pll;
555 1.1.14.2 yamt };
556 1.1.14.2 yamt
557 1.1.14.2 yamt struct rgbLUT {
558 1.1.14.2 yamt uint8_t red;
559 1.1.14.2 yamt uint8_t green;
560 1.1.14.2 yamt uint8_t blue;
561 1.1.14.2 yamt };
562 1.1.14.2 yamt
563 1.1.14.2 yamt struct lcd_pwd_seq_timer {
564 1.1.14.2 yamt uint16_t td0;
565 1.1.14.2 yamt uint16_t td1;
566 1.1.14.2 yamt uint16_t td2;
567 1.1.14.2 yamt uint16_t td3;
568 1.1.14.2 yamt };
569 1.1.14.2 yamt
570 1.1.14.2 yamt
571 1.1.14.2 yamt // Display FIFO Relation Registers
572 1.1.14.2 yamt struct iga1_fifo_depth_select {
573 1.1.14.2 yamt int reg_num;
574 1.1.14.2 yamt struct io_register reg[IGA1_FIFO_DEPTH_SELECT_REG_NUM];
575 1.1.14.2 yamt };
576 1.1.14.2 yamt
577 1.1.14.2 yamt struct iga1_fifo_threshold_select {
578 1.1.14.2 yamt int reg_num;
579 1.1.14.2 yamt struct io_register reg[IGA1_FIFO_THRESHOLD_REG_NUM];
580 1.1.14.2 yamt };
581 1.1.14.2 yamt
582 1.1.14.2 yamt struct iga1_fifo_high_threshold_select {
583 1.1.14.2 yamt int reg_num;
584 1.1.14.2 yamt struct io_register reg[IGA1_FIFO_HIGH_THRESHOLD_REG_NUM];
585 1.1.14.2 yamt };
586 1.1.14.2 yamt
587 1.1.14.2 yamt struct iga1_display_queue_expire_num {
588 1.1.14.2 yamt int reg_num;
589 1.1.14.2 yamt struct io_register reg[IGA1_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM];
590 1.1.14.2 yamt };
591 1.1.14.2 yamt
592 1.1.14.2 yamt struct iga2_fifo_depth_select {
593 1.1.14.2 yamt int reg_num;
594 1.1.14.2 yamt struct io_register reg[IGA2_FIFO_DEPTH_SELECT_REG_NUM];
595 1.1.14.2 yamt };
596 1.1.14.2 yamt
597 1.1.14.2 yamt struct iga2_fifo_threshold_select {
598 1.1.14.2 yamt int reg_num;
599 1.1.14.2 yamt struct io_register reg[IGA2_FIFO_THRESHOLD_REG_NUM];
600 1.1.14.2 yamt };
601 1.1.14.2 yamt
602 1.1.14.2 yamt struct iga2_fifo_high_threshold_select {
603 1.1.14.2 yamt int reg_num;
604 1.1.14.2 yamt struct io_register reg[IGA2_FIFO_HIGH_THRESHOLD_REG_NUM];
605 1.1.14.2 yamt };
606 1.1.14.2 yamt
607 1.1.14.2 yamt struct iga2_display_queue_expire_num {
608 1.1.14.2 yamt int reg_num;
609 1.1.14.2 yamt struct io_register reg[IGA2_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM];
610 1.1.14.2 yamt };
611 1.1.14.2 yamt
612 1.1.14.2 yamt struct fifo_depth_select {
613 1.1.14.2 yamt struct iga1_fifo_depth_select iga1_fifo_depth_select_reg;
614 1.1.14.2 yamt struct iga2_fifo_depth_select iga2_fifo_depth_select_reg;
615 1.1.14.2 yamt };
616 1.1.14.2 yamt
617 1.1.14.2 yamt struct fifo_threshold_select {
618 1.1.14.2 yamt struct iga1_fifo_threshold_select iga1_fifo_threshold_select_reg;
619 1.1.14.2 yamt struct iga2_fifo_threshold_select iga2_fifo_threshold_select_reg;
620 1.1.14.2 yamt };
621 1.1.14.2 yamt
622 1.1.14.2 yamt struct fifo_high_threshold_select {
623 1.1.14.2 yamt struct iga1_fifo_high_threshold_select iga1_fifo_high_threshold_select_reg;
624 1.1.14.2 yamt struct iga2_fifo_high_threshold_select iga2_fifo_high_threshold_select_reg;
625 1.1.14.2 yamt };
626 1.1.14.2 yamt
627 1.1.14.2 yamt struct display_queue_expire_num {
628 1.1.14.2 yamt struct iga1_display_queue_expire_num iga1_display_queue_expire_num_reg;
629 1.1.14.2 yamt struct iga2_display_queue_expire_num iga2_display_queue_expire_num_reg;
630 1.1.14.2 yamt };
631 1.1.14.2 yamt
632 1.1.14.2 yamt
633 1.1.14.2 yamt
634 1.1.14.2 yamt struct iga1_crtc_timing {
635 1.1.14.2 yamt struct iga1_hor_total hor_total;
636 1.1.14.2 yamt struct iga1_hor_addr hor_addr;
637 1.1.14.2 yamt struct iga1_hor_blank_start hor_blank_start;
638 1.1.14.2 yamt struct iga1_hor_blank_end hor_blank_end;
639 1.1.14.2 yamt struct iga1_hor_sync_start hor_sync_start;
640 1.1.14.2 yamt struct iga1_hor_sync_end hor_sync_end;
641 1.1.14.2 yamt struct iga1_ver_total ver_total;
642 1.1.14.2 yamt struct iga1_ver_addr ver_addr;
643 1.1.14.2 yamt struct iga1_ver_blank_start ver_blank_start;
644 1.1.14.2 yamt struct iga1_ver_blank_end ver_blank_end;
645 1.1.14.2 yamt struct iga1_ver_sync_start ver_sync_start;
646 1.1.14.2 yamt struct iga1_ver_sync_end ver_sync_end;
647 1.1.14.2 yamt };
648 1.1.14.2 yamt
649 1.1.14.2 yamt struct iga2_shadow_crtc_timing {
650 1.1.14.2 yamt struct iga2_shadow_hor_total hor_total_shadow;
651 1.1.14.2 yamt struct iga2_shadow_hor_blank_end hor_blank_end_shadow;
652 1.1.14.2 yamt struct iga2_shadow_ver_total ver_total_shadow;
653 1.1.14.2 yamt struct iga2_shadow_ver_addr ver_addr_shadow;
654 1.1.14.2 yamt struct iga2_shadow_ver_blank_start ver_blank_start_shadow;
655 1.1.14.2 yamt struct iga2_shadow_ver_blank_end ver_blank_end_shadow;
656 1.1.14.2 yamt struct iga2_shadow_ver_sync_start ver_sync_start_shadow;
657 1.1.14.2 yamt struct iga2_shadow_ver_sync_end ver_sync_end_shadow;
658 1.1.14.2 yamt };
659 1.1.14.2 yamt
660 1.1.14.2 yamt struct iga2_crtc_timing {
661 1.1.14.2 yamt struct iga2_hor_total hor_total;
662 1.1.14.2 yamt struct iga2_hor_addr hor_addr;
663 1.1.14.2 yamt struct iga2_hor_blank_start hor_blank_start;
664 1.1.14.2 yamt struct iga2_hor_blank_end hor_blank_end;
665 1.1.14.2 yamt struct iga2_hor_sync_start hor_sync_start;
666 1.1.14.2 yamt struct iga2_hor_sync_end hor_sync_end;
667 1.1.14.2 yamt struct iga2_ver_total ver_total;
668 1.1.14.2 yamt struct iga2_ver_addr ver_addr;
669 1.1.14.2 yamt struct iga2_ver_blank_start ver_blank_start;
670 1.1.14.2 yamt struct iga2_ver_blank_end ver_blank_end;
671 1.1.14.2 yamt struct iga2_ver_sync_start ver_sync_start;
672 1.1.14.2 yamt struct iga2_ver_sync_end ver_sync_end;
673 1.1.14.2 yamt };
674 1.1.14.2 yamt
675 1.1.14.2 yamt #endif /* _DEV_PCI_UNICHROMEHW_H */
676