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