diff options
author | yokota <yokota@FreeBSD.org> | 1999-01-11 03:20:32 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-01-11 03:20:32 +0000 |
commit | 5253fae34d9676e3ca3dd501b0b1d5fe2328d31e (patch) | |
tree | 96ee101cd7bb5351a92535944d1353eeb55f4b72 /usr.sbin/vidcontrol | |
parent | ae16d918a316eb60407be875de416efb373a652f (diff) | |
download | FreeBSD-src-5253fae34d9676e3ca3dd501b0b1d5fe2328d31e.zip FreeBSD-src-5253fae34d9676e3ca3dd501b0b1d5fe2328d31e.tar.gz |
The first stage of console driver reorganization: activate new
keyboard and video card drivers.
Diffstat (limited to 'usr.sbin/vidcontrol')
-rw-r--r-- | usr.sbin/vidcontrol/vidcontrol.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index d6a7df8..7fbc442 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -28,7 +28,7 @@ #ifndef lint static const char rcsid[] = - "$Id: vidcontrol.c,v 1.23 1998/09/24 01:36:36 gpalmer Exp $"; + "$Id: vidcontrol.c,v 1.24 1998/10/01 11:40:22 yokota Exp $"; #endif /* not lint */ #include <ctype.h> @@ -431,7 +431,7 @@ static char void show_adapter_info(void) { - struct video_adapter ad; + struct video_adapter_info ad; ad.va_index = 0; if (ioctl(0, CONS_ADPINFO, &ad)) { @@ -439,11 +439,11 @@ show_adapter_info(void) return; } - printf("adapter %d:\n", ad.va_index); - printf(" type:%s%s (%d), flags:0x%08x, CRTC:0x%x\n", + printf("fb%d:\n", ad.va_index); + printf(" %.*s%d, type:%s%s (%d), flags:0x%x\n", + (int)sizeof(ad.va_name), ad.va_name, ad.va_unit, (ad.va_flags & V_ADP_VESA) ? "VESA " : "", - adapter_name(ad.va_type), ad.va_type, - ad.va_flags, ad.va_crtc_addr); + adapter_name(ad.va_type), ad.va_type, ad.va_flags); printf(" initial mode:%d, current mode:%d, BIOS mode:%d\n", ad.va_initial_mode, ad.va_mode, ad.va_initial_bios_mode); } |