diff options
| author | gdamore <gdamore@NetBSD.org> | 2006-03-04 02:37:24 +0000 |
|---|---|---|
| committer | gdamore <gdamore@NetBSD.org> | 2006-03-04 02:37:24 +0000 |
| commit | d1f918faef5b44313126c38afdc08ce1ec0b0333 (patch) | |
| tree | 94e7b255c8b0e3e689d28216cd975a8a6c6613ce /sys/dev | |
| parent | aba10b3dc5c9c4c5948177cab1cb277db832e99e (diff) | |
Added a test driver program.
Regenerate videomode.c to pick up NetBSD tag.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/videomode/test.c | 25 | ||||
| -rw-r--r-- | sys/dev/videomode/videomode.c | 4 |
2 files changed, 27 insertions, 2 deletions
diff --git a/sys/dev/videomode/test.c b/sys/dev/videomode/test.c new file mode 100644 index 00000000000..21c7e488412 --- /dev/null +++ b/sys/dev/videomode/test.c @@ -0,0 +1,25 @@ +#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]); + } + } +} diff --git a/sys/dev/videomode/videomode.c b/sys/dev/videomode/videomode.c index 890adba9ae0..07385cb78c5 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 <dev/videomode/videomode.h> |
