Importing sys/dev/videomode
NetBSD provides an in-kernel EDID parser, validator, and printer along with other useful functions. This code will be re-used by the Minix fb driver as it is a complete and well tested implementation. Change-Id: I46fe3005d9957cd90d4972030ddcce7bc3bd7924
This commit is contained in:
committed by
Gerrit Code Review
parent
6405d78182
commit
bdf33c702a
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user