diff --git a/sys/dev/videomode/test.c b/sys/dev/videomode/test.c new file mode 100644 index 000000000000..21c7e4884123 --- /dev/null +++ b/sys/dev/videomode/test.c @@ -0,0 +1,25 @@ +#include +#include +#include +#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]); + } + } +} diff --git a/sys/dev/videomode/videomode.c b/sys/dev/videomode/videomode.c index 890adba9ae0c..07385cb78c50 100644 --- a/sys/dev/videomode/videomode.c +++ b/sys/dev/videomode/videomode.c @@ -1,10 +1,10 @@ -/* $NetBSD: videomode.c,v 1.1 2006/03/04 02:34:27 gdamore Exp $ */ +/* $NetBSD: videomode.c,v 1.2 2006/03/04 02:37:24 gdamore Exp $ */ /* * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. * * generated from: - * NetBSD + * NetBSD: modelines,v 1.1 2006/03/04 02:34:27 gdamore Exp */ #include