Added a test driver program.

Regenerate videomode.c to pick up NetBSD tag.
This commit is contained in:
gdamore 2006-03-04 02:37:24 +00:00
parent aba10b3dc5
commit d1f918faef
2 changed files with 27 additions and 2 deletions

25
sys/dev/videomode/test.c Normal file
View File

@ -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]);
}
}
}

View File

@ -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>