diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-15 20:17:39 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-11-15 20:17:39 +0000 |
commit | c6b81477957194a276e75a185a4b2e87ac43f413 (patch) | |
tree | a24c07c89b6e504a43f01f148b3fb2f81474904a /sys/dev/isa/vga_isavar.h | |
parent | 459bffc0f4130f9bdbcdbcd9321bf367300f927c (diff) |
Updated VGA driver; from NetBSD. Needed for wscons on i386 and alpha. These
files could probably be updated even a bit further (they are from mid-summer).
In addition, I've added support for console scrollback, somewhat inspired by
Linux's vgacon driver. Basically, instead of allocating our own buffer and
doing lots of copies, we take advantage of Video RAM and just modify the VGA
display origin register as appropriate. This approach has a few advantages:
simple to implement, no wasted KVM, it's fast, and after a boot you can now
scroll back all the way to the BIOS messages (assuming your msgbuf is of a
typical length :). Disadvantages are that the VRAM buffer is relatively
small (only 32k) and we do not support raster devices through this method.
(thanks to mickey@ for pointing this out).
The code for this is fairly unobtrusive, so should we come up with a better
approach to console scrollback at a later time (i.e., even more platform
independent) it should be easy to revert this.
We're one step further in porting nice features of PCVT over to wscons.
Diffstat (limited to 'sys/dev/isa/vga_isavar.h')
-rw-r--r-- | sys/dev/isa/vga_isavar.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/vga_isavar.h b/sys/dev/isa/vga_isavar.h index 0b752a0566a..5eabb16ad61 100644 --- a/sys/dev/isa/vga_isavar.h +++ b/sys/dev/isa/vga_isavar.h @@ -1,5 +1,5 @@ -/* $OpenBSD: vga_isavar.h,v 1.2 1997/11/06 12:26:55 niklas Exp $ */ -/* $NetBSD: vga_isavar.h,v 1.2 1996/11/23 06:06:45 cgd Exp $ */ +/* $OpenBSD: vga_isavar.h,v 1.3 2000/11/15 20:17:38 aaron Exp $ */ +/* $NetBSD: vga_isavar.h,v 1.1 1998/03/22 15:14:36 drochner Exp $ */ /* * Copyright (c) 1996 Carnegie-Mellon University. @@ -28,5 +28,4 @@ * rights to redistribute these changes. */ -int vga_isa_console_match __P((bus_space_tag_t, bus_space_tag_t)); -void vga_isa_console_attach __P((bus_space_tag_t, bus_space_tag_t)); +int vga_isa_cnattach __P((bus_space_tag_t, bus_space_tag_t)); |