summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-31 13:40:07 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-31 13:40:07 +0000
commitd18ce66da98d108f5f166e4cd314b6989abefb96 (patch)
tree7a4bf356fbdc2520232e6ec68e9faf128f97e9a9 /sys/dev/ic
parentcb80d106aae3b78c45f5a8b3e460630c6b1b3ef8 (diff)
text video attributes, tested only on vga, send me E-mail if it breaks something, thx.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/vga.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c
index a67d5dd65d6..85f5c349ad0 100644
--- a/sys/dev/ic/vga.c
+++ b/sys/dev/ic/vga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga.c,v 1.5 1997/07/31 04:03:43 kstailey Exp $ */
+/* $OpenBSD: vga.c,v 1.6 1997/07/31 13:40:01 kstailey Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -50,6 +50,7 @@ void vga_copycols __P((void *, int, int, int, int));
void vga_erasecols __P((void *, int, int, int));
void vga_copyrows __P((void *, int, int, int));
void vga_eraserows __P((void *, int, int));
+void vga_set_attr __P((void *, int));
struct wscons_emulfuncs vga_emulfuncs = {
vga_cursor,
@@ -58,6 +59,7 @@ struct wscons_emulfuncs vga_emulfuncs = {
vga_erasecols,
vga_copyrows,
vga_eraserows,
+ vga_set_attr,
};
int vgaprint __P((void *, const char *));
@@ -350,3 +352,13 @@ vga_eraserows(id, startrow, nrows)
bus_space_set_region_2(vc->vc_memt, vc->vc_memh, off, val, count);
}
+
+void
+vga_set_attr(id, val)
+ void *id;
+ int val;
+{
+ struct vga_config *vc = id;
+
+ vc->vc_so = val;
+}