vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / accelerants / matrox / GetTimingConstraints.c
blob7e34855c4428a6811154747465a9891525121a2f
1 /*
2 Author:
3 Rudolf Cornelissen 11/2004
4 */
6 #define MODULE_BIT 0x01000000
8 #include "acc_std.h"
10 /* Used to help generate mode lines */
11 status_t GET_TIMING_CONSTRAINTS(display_timing_constraints * dtc)
13 LOG(4, ("GET_TIMING_CONSTRAINTS: returning info\n"));
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;
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;
33 return B_OK;