xref: /haiku/src/add-ons/accelerants/matrox/GetTimingConstraints.c (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1 /*
2 	Author:
3 	Rudolf Cornelissen 11/2004
4 */
5 
6 #define MODULE_BIT 0x01000000
7 
8 #include "acc_std.h"
9 
10 /* Used to help generate mode lines */
11 status_t GET_TIMING_CONSTRAINTS(display_timing_constraints * dtc)
12 {
13 	LOG(4, ("GET_TIMING_CONSTRAINTS: returning info\n"));
14 
15 	/* specs are identical for all Matrox cards on CRTC1 (Mil-1 - G550) */
16 	/* Note: G400-G550 CRTC2 have wider constraints, so this is OK. */
17 	dtc->h_res = 8;
18 	dtc->h_sync_min = 8;
19 	dtc->h_sync_max = 248;
20 	/* Note:
21 	 * h_blank info is used to determine the max. diff. between h_total and h_display! */
22 	dtc->h_blank_min = 8;
23 	dtc->h_blank_max = 1016;
24 
25 	dtc->v_res = 1;
26 	dtc->v_sync_min = 1;
27 	dtc->v_sync_max = 15;
28 	/* Note:
29 	 * v_blank info is used to determine the max. diff. between v_total and v_display! */
30 	dtc->v_blank_min = 1;
31 	dtc->v_blank_max = 255;
32 
33 	return B_OK;
34 }
35