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