xref: /freebsd/sys/dev/videomode/test.c (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
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