consio.h (146235) | consio.h (162711) |
---|---|
1/*- 2 * Copyright (c) 1991-1996 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1991-1996 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/sys/consio.h 146235 2005-05-15 07:35:49Z nyan $ | 28 * $FreeBSD: head/sys/sys/consio.h 162711 2006-09-27 19:57:02Z ru $ |
29 */ 30 31#ifndef _SYS_CONSIO_H_ 32#define _SYS_CONSIO_H_ 33 34#ifndef _KERNEL 35#include <sys/types.h> 36#endif --- 9 unchanged lines hidden (view full) --- 46 47/* get/set video mode */ 48#define KD_TEXT 0 /* set text mode restore fonts */ 49#define KD_TEXT0 0 /* ditto */ 50#define KD_GRAPHICS 1 /* set graphics mode */ 51#define KD_TEXT1 2 /* set text mode !restore fonts */ 52#define KD_PIXEL 3 /* set pixel mode */ 53#define KDGETMODE _IOR('K', 9, int) | 29 */ 30 31#ifndef _SYS_CONSIO_H_ 32#define _SYS_CONSIO_H_ 33 34#ifndef _KERNEL 35#include <sys/types.h> 36#endif --- 9 unchanged lines hidden (view full) --- 46 47/* get/set video mode */ 48#define KD_TEXT 0 /* set text mode restore fonts */ 49#define KD_TEXT0 0 /* ditto */ 50#define KD_GRAPHICS 1 /* set graphics mode */ 51#define KD_TEXT1 2 /* set text mode !restore fonts */ 52#define KD_PIXEL 3 /* set pixel mode */ 53#define KDGETMODE _IOR('K', 9, int) |
54#define KDSETMODE _IO('K', 10 /*, int */) | 54#define KDSETMODE _IOWINT('K', 10) |
55 56/* set border color */ | 55 56/* set border color */ |
57#define KDSBORDER _IO('K', 13 /*, int */) | 57#define KDSBORDER _IOWINT('K', 13) |
58 59/* set up raster(pixel) text mode */ 60struct _scr_size { 61 int scr_size[3]; 62}; 63typedef struct _scr_size scr_size_t; 64 65#define KDRASTER _IOW('K', 100, scr_size_t) --- 184 unchanged lines hidden (view full) --- 250 251/* get the video mode information (equivalent to FBIO_MODEINFO) */ 252#define CONS_MODEINFO _IOWR('c', 102, video_info_t) 253 254/* find a video mode (equivalent to FBIO_FINDMODE) */ 255#define CONS_FINDMODE _IOWR('c', 103, video_info_t) 256 257/* set the frame buffer window origin (equivalent to FBIO_SETWINORG) */ | 58 59/* set up raster(pixel) text mode */ 60struct _scr_size { 61 int scr_size[3]; 62}; 63typedef struct _scr_size scr_size_t; 64 65#define KDRASTER _IOW('K', 100, scr_size_t) --- 184 unchanged lines hidden (view full) --- 250 251/* get the video mode information (equivalent to FBIO_MODEINFO) */ 252#define CONS_MODEINFO _IOWR('c', 102, video_info_t) 253 254/* find a video mode (equivalent to FBIO_FINDMODE) */ 255#define CONS_FINDMODE _IOWR('c', 103, video_info_t) 256 257/* set the frame buffer window origin (equivalent to FBIO_SETWINORG) */ |
258#define CONS_SETWINORG _IO('c', 104 /*, u_int */) | 258#define CONS_SETWINORG _IOWINT('c', 104) |
259 260/* use the specified keyboard */ | 259 260/* use the specified keyboard */ |
261#define CONS_SETKBD _IO('c', 110 /*, int */) | 261#define CONS_SETKBD _IOWINT('c', 110) |
262 263/* release the current keyboard */ 264#define CONS_RELKBD _IO('c', 111) 265 266struct scrshot { 267 int x; 268 int y; 269 int xsize; --- 45 unchanged lines hidden (view full) --- 315 316#define VT_SETMODE _IOW('v', 2, vtmode_t) 317#define VT_GETMODE _IOR('v', 3, vtmode_t) 318 319/* acknowledge release or acquisition of a vty */ 320#define VT_FALSE 0 321#define VT_TRUE 1 322#define VT_ACKACQ 2 | 262 263/* release the current keyboard */ 264#define CONS_RELKBD _IO('c', 111) 265 266struct scrshot { 267 int x; 268 int y; 269 int xsize; --- 45 unchanged lines hidden (view full) --- 315 316#define VT_SETMODE _IOW('v', 2, vtmode_t) 317#define VT_GETMODE _IOR('v', 3, vtmode_t) 318 319/* acknowledge release or acquisition of a vty */ 320#define VT_FALSE 0 321#define VT_TRUE 1 322#define VT_ACKACQ 2 |
323#define VT_RELDISP _IO('v', 4 /*, int */) | 323#define VT_RELDISP _IOWINT('v', 4) |
324 325/* activate the specified vty */ | 324 325/* activate the specified vty */ |
326#define VT_ACTIVATE _IO('v', 5 /*, int */) | 326#define VT_ACTIVATE _IOWINT('v', 5) |
327 328/* wait until the specified vty is activate */ | 327 328/* wait until the specified vty is activate */ |
329#define VT_WAITACTIVE _IO('v', 6 /*, int */) | 329#define VT_WAITACTIVE _IOWINT('v', 6) |
330 331/* get the currently active vty */ 332#define VT_GETACTIVE _IOR('v', 7, int) 333 334/* get the index of the vty */ 335#define VT_GETINDEX _IOR('v', 8, int) 336 337/* prevent switching vtys */ --- 103 unchanged lines hidden --- | 330 331/* get the currently active vty */ 332#define VT_GETACTIVE _IOR('v', 7, int) 333 334/* get the index of the vty */ 335#define VT_GETINDEX _IOR('v', 8, int) 336 337/* prevent switching vtys */ --- 103 unchanged lines hidden --- |