summaryrefslogtreecommitdiffstats
path: root/sys/dev/videomode/test.c
blob: d51ffddcc77f3875d0d9b32a33088475aa75ddac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* $FreeBSD$ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "videomode.h"

int
main(int argc, char **argv)
{
	int	i, j;

	for (i = 1; i < argc ; i++) {
		for (j = 0; j < videomode_count; j++) {
			if (strcmp(videomode_list[j].name, argv[i]) == 0) {
				printf("dotclock for mode %s = %d, flags %x\n",
				    argv[i],
				    videomode_list[j].dot_clock,
				    videomode_list[j].flags);
				break;
			}
		}
		if (j == videomode_count) {
			printf("dotclock for mode %s not found\n", argv[i]);
		}
	}
}
OpenPOWER on IntegriCloud