From 5639141200da79b8d203dc19454a84ff45059c87 Mon Sep 17 00:00:00 2001 From: drochner Date: Sat, 9 Jan 1999 15:44:45 +0000 Subject: [PATCH] add ioctl()s for screen allocation/deallocation --- sys/dev/wscons/wsconsio.h | 21 ++++++++++++++++++++- sys/dev/wscons/wsdisplayvar.h | 6 +++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index d794c1e18fc6..dc342c4cf383 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $NetBSD: wsconsio.h,v 1.11 1998/12/30 19:15:11 augustss Exp $ */ +/* $NetBSD: wsconsio.h,v 1.12 1999/01/09 15:44:45 drochner Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -238,6 +238,11 @@ struct wsdisplay_cursor { #define WSDISPLAYIO_MODE_EMUL 0 /* emulation (text) mode */ #define WSDISPLAYIO_MODE_MAPPED 1 /* mapped (graphics) mode */ +/* + * XXX WARNING + * XXX The following 3 definitions are very preliminary and are likely + * XXX to be changed without care about backwards compatibility! + */ struct wsdisplay_font { int firstchar, numchars; int fontwidth, fontheight, stride; @@ -245,6 +250,20 @@ struct wsdisplay_font { }; #define WSDISPLAYIO_SFONT _IOW('W', 77, struct wsdisplay_font) +struct wsdisplay_addscreendata { + int idx; /* screen index */ + char *screentype; + char *emul; +}; +#define WSDISPLAYIO_ADDSCREEN _IOW('W', 78, struct wsdisplay_addscreendata) + +struct wsdisplay_delscreendata { + int idx; /* screen index */ + int flags; +#define WSDISPLAY_DELSCR_FORCE 1 +}; +#define WSDISPLAYIO_DELSCREEN _IOW('W', 79, struct wsdisplay_delscreendata) + /* XXX NOT YET DEFINED */ /* Mapping information retrieval. */ diff --git a/sys/dev/wscons/wsdisplayvar.h b/sys/dev/wscons/wsdisplayvar.h index 63bbb3b23cfd..fd9124df40ae 100644 --- a/sys/dev/wscons/wsdisplayvar.h +++ b/sys/dev/wscons/wsdisplayvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: wsdisplayvar.h,v 1.7 1998/08/13 02:10:56 eeh Exp $ */ +/* $NetBSD: wsdisplayvar.h,v 1.8 1999/01/09 15:44:45 drochner Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -184,3 +184,7 @@ int wsdisplay_internal_ioctl __P((struct wsdisplay_softc *sc, int wsdisplay_usl_ioctl __P((struct wsdisplay_softc *, struct wsscreen *, u_long, caddr_t, int, struct proc *)); + +int wsdisplay_cfg_ioctl __P((struct wsdisplay_softc *sc, + u_long cmd, caddr_t data, + int flag, struct proc *p));