summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsconsio.h
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2010-07-01 02:33:07 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2010-07-01 02:33:07 +0000
commita939565a3afc49c30e3d7adb3d1d79235e3fbe3a (patch)
treeafcdbe399f5e90b493d04150a2859511f98502cf /sys/dev/wscons/wsconsio.h
parent45ca25a442bb20327ed354e7d7e41562c1a44bd3 (diff)
Make it possible to get the screen types and emulations for a wsdisplay.
Information needed for wsconscfg. feedback and ok miod@. -moj
Diffstat (limited to 'sys/dev/wscons/wsconsio.h')
-rw-r--r--sys/dev/wscons/wsconsio.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h
index 75bcd2c6421..882b1343691 100644
--- a/sys/dev/wscons/wsconsio.h
+++ b/sys/dev/wscons/wsconsio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsio.h,v 1.60 2010/03/07 21:26:24 miod Exp $ */
+/* $OpenBSD: wsconsio.h,v 1.61 2010/07/01 02:33:05 maja Exp $ */
/* $NetBSD: wsconsio.h,v 1.74 2005/04/28 07:15:44 martin Exp $ */
/*
@@ -480,6 +480,23 @@ struct wsdisplay_gfx_mode {
#define WSDISPLAYIO_SETGFXMODE _IOW('W', 92, struct wsdisplay_gfx_mode)
+struct wsdisplay_screentype {
+ int idx;
+ int nidx;
+ char name[WSSCREEN_NAME_SIZE];
+ int ncols, nrows;
+ int fontwidth, fontheight;
+};
+
+#define WSDISPLAYIO_GETSCREENTYPE _IOWR('W', 93, struct wsdisplay_screentype)
+
+struct wsdisplay_emultype {
+ int idx;
+ char name[WSSCREEN_NAME_SIZE];
+};
+
+#define WSDISPLAYIO_GETEMULTYPE _IOWR('W', 94, struct wsdisplay_emultype)
+
/* XXX NOT YET DEFINED */
/* Mapping information retrieval. */