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