Lines Matching +full:2 +full:- +full:7
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
4 * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
33 #define VIA_STATE_SUSPEND 2
43 #define IGA2_HOR_TOTAL_SHADOW_FORMULA(x) ((x/8)-5)
44 #define IGA2_HOR_BLANK_END_SHADOW_FORMULA(x, y) (((x+y)/8)-1)
45 #define IGA2_VER_TOTAL_SHADOW_FORMULA(x) ((x)-2)
46 #define IGA2_VER_ADDR_SHADOW_FORMULA(x) ((x)-1)
47 #define IGA2_VER_BLANK_START_SHADOW_FORMULA(x) ((x)-1)
48 #define IGA2_VER_BLANK_END_SHADOW_FORMULA(x, y) ((x+y)-1)
54 /* location: {CR6D,0,7},{CR71,3,3} */
55 #define IGA2_SHADOW_HOR_TOTAL_REG_NUM 2
56 /* location: {CR6E,0,7} */
58 /* location: {CR6F,0,7},{CR71,0,2} */
59 #define IGA2_SHADOW_VER_TOTAL_REG_NUM 2
60 /* location: {CR70,0,7},{CR71,4,6} */
61 #define IGA2_SHADOW_VER_ADDR_REG_NUM 2
62 /* location: {CR72,0,7},{CR74,4,6} */
63 #define IGA2_SHADOW_VER_BLANK_START_REG_NUM 2
64 /* location: {CR73,0,7},{CR74,0,2} */
65 #define IGA2_SHADOW_VER_BLANK_END_REG_NUM 2
66 /* location: {CR75,0,7},{CR76,4,6} */
67 #define IGA2_SHADOW_VER_SYNC_START_REG_NUM 2
73 /* location: {SR1C,0,7},{SR1D,0,1} */
74 #define IGA1_FETCH_COUNT_REG_NUM 2
82 /* location: {CR65,0,7},{CR67,2,3} */
83 #define IGA2_FETCH_COUNT_REG_NUM 2
91 /* location: {CR0C,0,7},{CR0D,0,7},{CR34,0,7},{CR48,0,1} */
93 /* location: {CR62,1,7},{CR63,0,7},{CR64,0,7} */
98 /* location: {SR17,0,7} */
100 /* location: {SR16,0,5},{SR16,7,7} */
102 /* location: {SR18,0,5},{SR18,7,7} */
108 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
112 /* location: {CR92,0,3},{CR95,0,2} */
117 /* location: {SR17,0,7} */
119 /* location: {SR16,0,5},{SR16,7,7} */
121 /* location: {SR18,0,5},{SR18,7,7} */
127 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
131 /* location: {CR92,0,3},{CR95,0,2} */
138 /* location: {SR17,0,7} */
140 /* location: {SR16,0,5},{SR16,7,7} */
142 /* location: {SR18,0,5},{SR18,7,7} */
147 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
151 /* location: {CR92,0,3},{CR95,0,2} */
157 /* location: {SR17,0,7} */
159 /* location: {SR16,0,5},{SR16,7,7} */
161 /* location: {SR18,0,5},{SR18,7,7} */
166 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
170 /* location: {CR92,0,3},{CR95,0,2} */
176 /* location: {SR17,0,7} */
178 /* location: {SR16,0,5},{SR16,7,7} */
180 /* location: {SR18,0,5},{SR18,7,7} */
185 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
189 /* location: {CR92,0,3},{CR95,0,2} */
195 /* location: {SR17,0,7} */
197 /* location: {SR16,0,5},{SR16,7,7} */
199 /* location: {SR18,0,5},{SR18,7,7} */
203 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
207 /* location: {CR92,0,3},{CR95,0,2} */
213 /* location: {SR17,0,7} */
215 /* location: {SR16,0,5},{SR16,7,7} */
217 /* location: {SR18,0,5},{SR18,7,7} */
221 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
225 /* location: {CR92,0,3},{CR95,0,2} */
231 /* location: {SR17,0,7} */
233 /* location: {SR16,0,5},{SR16,7,7} */
235 /* location: {SR18,0,5},{SR18,7,7} */
239 /* location: {CR68,4,7},{CR94,7,7},{CR95,7,7} */
243 /* location: {CR92,0,3},{CR95,0,2} */
271 #define IGA1_FIFO_THRESHOLD_REG_NUM 2
272 #define IGA1_FIFO_HIGH_THRESHOLD_REG_NUM 2
276 #define IGA2_FIFO_THRESHOLD_REG_NUM 2
277 #define IGA2_FIFO_HIGH_THRESHOLD_REG_NUM 2
280 #define IGA1_FIFO_DEPTH_SELECT_FORMULA(x) ((x/2)-1)
284 #define IGA2_FIFO_DEPTH_SELECT_FORMULA(x) (((x/2)/4)-1)
301 /* 2^10 * (1/14.31818M) = 71.475 us (K400.revA) */
303 /* 2^11 * (1/14.31818M) = 142.95 us (K400.revB) */
305 /* 2^13 * (1/14.31818M) = 572.1 us */
312 /* location: {CR8B,0,7},{CR8F,0,3} */
313 #define LCD_POWER_SEQ_TD0_REG_NUM 2
314 /* location: {CR8C,0,7},{CR8F,4,7} */
315 #define LCD_POWER_SEQ_TD1_REG_NUM 2
316 /* location: {CR8D,0,7},{CR90,0,3} */
317 #define LCD_POWER_SEQ_TD2_REG_NUM 2
318 /* location: {CR8E,0,7},{CR90,4,7} */
319 #define LCD_POWER_SEQ_TD3_REG_NUM 2
325 /* Horizontal scaling factor 10 bits (2^10) */
326 #define CLE266_LCD_HOR_SCF_FORMULA(x, y) (((x-1)*1024)/(y-1))
327 /* Vertical scaling factor 10 bits (2^10) */
328 #define CLE266_LCD_VER_SCF_FORMULA(x, y) (((x-1)*1024)/(y-1))
329 /* Horizontal scaling factor 10 bits (2^12) */
330 #define K800_LCD_HOR_SCF_FORMULA(x, y) (((x-1)*4096)/(y-1))
331 /* Vertical scaling factor 10 bits (2^11) */
332 #define K800_LCD_VER_SCF_FORMULA(x, y) (((x-1)*2048)/(y-1))
334 /* location: {CR9F,0,1},{CR77,0,7},{CR79,4,5} */
336 /* location: {CR79,3,3},{CR78,0,7},{CR79,6,7} */
338 /* location: {CR77,0,7},{CR79,4,5} */
339 #define LCD_HOR_SCALING_FACTOR_REG_NUM_CLE 2
340 /* location: {CR78,0,7},{CR79,6,7} */
341 #define LCD_VER_SCALING_FACTOR_REG_NUM_CLE 2