summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/btvar.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-08-12 10:44:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-08-12 10:44:05 +0000
commit15dafe6228319925897f71b6a78bb04ebfb3abc4 (patch)
tree2bfbe764cfc6f9b1e3c6ca9d29d0881a4283149e /sys/arch/sparc/dev/btvar.h
parenta83486fe3ff711d8b3727f8abae7995141bb7562 (diff)
Convert sparc console code from rcons and pseudo-devices to rasops and wscons.
For most framebuffers it is faster. Other changes include: o 24 bit support in tcx(4) for the S24 framebuffer o accelerated cgsix(4) text console o new cgtwelve(4) driver for the GS framebuffer o improved serial driver code o better keyboard support The following framebuffers have not been tested but should work: cgfour, cgeight and cgfourteen These changes will require XF4 changes, to use Xwsfb instead of Xsun*, to be commited later today. Most of the work by me during the LSM and the week after, with code borrowed from jason@, NetBSD (new serial code), and feedback from mickey@. Work on pnozz(4) done by millert@
Diffstat (limited to 'sys/arch/sparc/dev/btvar.h')
-rw-r--r--sys/arch/sparc/dev/btvar.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/btvar.h b/sys/arch/sparc/dev/btvar.h
index f33e9907eba..1cbbaf9b2e6 100644
--- a/sys/arch/sparc/dev/btvar.h
+++ b/sys/arch/sparc/dev/btvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: btvar.h,v 1.3 2002/03/14 01:26:42 millert Exp $ */
+/* $OpenBSD: btvar.h,v 1.4 2002/08/12 10:44:03 miod Exp $ */
/* $NetBSD: btvar.h,v 1.2 1994/11/20 20:51:56 deraadt Exp $ */
/*
@@ -62,8 +62,12 @@ union bt_cmap {
/*
* Routines in bt_subr.c.
*/
-int bt_getcmap(struct fbcmap *, union bt_cmap *, int);
-int bt_putcmap(struct fbcmap *, union bt_cmap *, int);
+int bt_getcmap(union bt_cmap *, struct wsdisplay_cmap *);
+int bt_putcmap(union bt_cmap *, struct wsdisplay_cmap *);
+void bt_loadcmap(union bt_cmap *, volatile struct bt_regs *,
+ u_int, u_int, int);
+void bt_setcolor(union bt_cmap *, volatile struct bt_regs *,
+ u_int, u_int8_t, u_int8_t, u_int8_t, int);
/*
* Compute (x / 4) * 3 and (x / 4) * 4. These are used in turning