xref: /freebsd/sys/dev/videomode/test.c (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include "videomode.h"
5 
6 int
7 main(int argc, char **argv)
8 {
9 	int	i, j;
10 
11 	for (i = 1; i < argc ; i++) {
12 		for (j = 0; j < videomode_count; j++) {
13 			if (strcmp(videomode_list[j].name, argv[i]) == 0) {
14 				printf("dotclock for mode %s = %d, flags %x\n",
15 				    argv[i],
16 				    videomode_list[j].dot_clock,
17 				    videomode_list[j].flags);
18 				break;
19 			}
20 		}
21 		if (j == videomode_count) {
22 			printf("dotclock for mode %s not found\n", argv[i]);
23 		}
24 	}
25 }
26