add ioctl()s for screen allocation/deallocation

This commit is contained in:
drochner 1999-01-09 15:44:45 +00:00
parent a541ccbcb2
commit 5639141200
2 changed files with 25 additions and 2 deletions

View File

@ -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. */

View File

@ -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));