Lines Matching +full:1 +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.
32 #define VIA_STATE_STANDBY 1
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} */
56 /* location: {CR6E,0,7} */
57 #define IGA2_SHADOW_HOR_BLANK_END_REG_NUM 1
58 /* location: {CR6F,0,7},{CR71,0,2} */
60 /* location: {CR70,0,7},{CR71,4,6} */
62 /* location: {CR72,0,7},{CR74,4,6} */
64 /* location: {CR73,0,7},{CR74,0,2} */
66 /* location: {CR75,0,7},{CR76,4,6} */
69 #define IGA2_SHADOW_VER_SYNC_END_REG_NUM 1
73 /* location: {SR1C,0,7},{SR1D,0,1} */
82 /* location: {CR65,0,7},{CR67,2,3} */
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} */
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} */
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} */
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} */
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} */
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} */
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} */
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} */
270 #define IGA1_FIFO_DEPTH_SELECT_REG_NUM 1
273 #define IGA1_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM 1
278 #define IGA2_DISPLAY_QUEUE_EXPIRE_NUM_REG_NUM 1
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} */
314 /* location: {CR8C,0,7},{CR8F,4,7} */
316 /* location: {CR8D,0,7},{CR90,0,3} */
318 /* location: {CR8E,0,7},{CR90,4,7} */
326 #define CLE266_LCD_HOR_SCF_FORMULA(x, y) (((x-1)*1024)/(y-1))
328 #define CLE266_LCD_VER_SCF_FORMULA(x, y) (((x-1)*1024)/(y-1))
330 #define K800_LCD_HOR_SCF_FORMULA(x, y) (((x-1)*4096)/(y-1))
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} */
340 /* location: {CR78,0,7},{CR79,6,7} */