xref: /haiku/src/add-ons/accelerants/skeleton/GetTimingConstraints.c (revision ed24eb5ff12640d052171c6a7feba37fab8a75d1)
1 /*
2 	Author:
3 	Rudolf Cornelissen 7/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 nVidia cards */
16 	dtc->h_res = 8;
17 	dtc->h_sync_min = 8;
18 	dtc->h_sync_max = 248;
19 	/* Note:
20 	 * h_blank info is used to determine the max. diff. between h_total and h_display! */
21 	dtc->h_blank_min = 8;
22 	dtc->h_blank_max = 1016;
23 
24 	dtc->v_res = 1;
25 	dtc->v_sync_min = 1;
26 	dtc->v_sync_max = 15;
27 	/* Note:
28 	 * v_blank info is used to determine the max. diff. between v_total and v_display! */
29 	dtc->v_blank_min = 1;
30 	dtc->v_blank_max = 255;
31 
32 	return B_OK;
33 }
34