148104Syokota/*- 2230132Suqs * Copyright (c) 1991-1996 S��ren Schmidt 348104Syokota * All rights reserved. 448104Syokota * 548104Syokota * Redistribution and use in source and binary forms, with or without 648104Syokota * modification, are permitted provided that the following conditions 748104Syokota * are met: 848104Syokota * 1. Redistributions of source code must retain the above copyright 948104Syokota * notice, this list of conditions and the following disclaimer 1048104Syokota * in this position and unchanged. 1148104Syokota * 2. Redistributions in binary form must reproduce the above copyright 1248104Syokota * notice, this list of conditions and the following disclaimer in the 1348104Syokota * documentation and/or other materials provided with the distribution. 1448104Syokota * 3. The name of the author may not be used to endorse or promote products 1548104Syokota * derived from this software without specific prior written permission 1648104Syokota * 1748104Syokota * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1848104Syokota * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1948104Syokota * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2048104Syokota * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2148104Syokota * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2248104Syokota * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2348104Syokota * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2448104Syokota * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2548104Syokota * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2648104Syokota * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2748104Syokota * 2850477Speter * $FreeBSD$ 2948104Syokota */ 3048104Syokota 3148104Syokota#ifndef _SYS_CONSIO_H_ 3248104Syokota#define _SYS_CONSIO_H_ 3348104Syokota 3455205Speter#ifndef _KERNEL 3548104Syokota#include <sys/types.h> 3648104Syokota#endif 3748104Syokota#include <sys/ioccom.h> 3848104Syokota 3948104Syokota/* 4048104Syokota * Console ioctl commands. Some commands are named as KDXXXX, GIO_XXX, and 4148104Syokota * PIO_XXX, rather than CONS_XXX, for historical and compatibility reasons. 4248104Syokota * Some other CONS_XXX commands are works as wrapper around frame buffer 4348104Syokota * ioctl commands FBIO_XXX. Do not try to change all these commands, 4448104Syokota * otherwise we shall have compatibility problems. 4548104Syokota */ 4648104Syokota 4748104Syokota/* get/set video mode */ 4848104Syokota#define KD_TEXT 0 /* set text mode restore fonts */ 4948104Syokota#define KD_TEXT0 0 /* ditto */ 5048104Syokota#define KD_GRAPHICS 1 /* set graphics mode */ 5148104Syokota#define KD_TEXT1 2 /* set text mode !restore fonts */ 5248104Syokota#define KD_PIXEL 3 /* set pixel mode */ 5348104Syokota#define KDGETMODE _IOR('K', 9, int) 54162711Sru#define KDSETMODE _IOWINT('K', 10) 5548104Syokota 5648104Syokota/* set border color */ 57162711Sru#define KDSBORDER _IOWINT('K', 13) 5848104Syokota 5948104Syokota/* set up raster(pixel) text mode */ 6096724Ssobomaxstruct _scr_size { 6148104Syokota int scr_size[3]; 6248104Syokota}; 6396724Ssobomaxtypedef struct _scr_size scr_size_t; 6448104Syokota 6548104Syokota#define KDRASTER _IOW('K', 100, scr_size_t) 6648104Syokota 6748104Syokota/* get/set screen char map */ 6896724Ssobomaxstruct _scrmap { 6948104Syokota char scrmap[256]; 7048104Syokota}; 7196724Ssobomaxtypedef struct _scrmap scrmap_t; 7248104Syokota 7348104Syokota#define GIO_SCRNMAP _IOR('k', 2, scrmap_t) 7448104Syokota#define PIO_SCRNMAP _IOW('k', 3, scrmap_t) 7548104Syokota 7648104Syokota/* get the current text attribute */ 7748104Syokota#define GIO_ATTR _IOR('a', 0, int) 7848104Syokota 7948104Syokota/* get the current text color */ 8048104Syokota#define GIO_COLOR _IOR('c', 0, int) 8148104Syokota 8248104Syokota/* get the adapter type (equivalent to FBIO_ADPTYPE) */ 8348104Syokota#define CONS_CURRENT _IOR('c', 1, int) 8448104Syokota 8548104Syokota/* get the current video mode (equivalent to FBIO_GETMODE) */ 8648104Syokota#define CONS_GET _IOR('c', 2, int) 8748104Syokota 8848104Syokota/* not supported? */ 8948104Syokota#define CONS_IO _IO('c', 3) 9048104Syokota 9148104Syokota/* set blank time interval */ 9248104Syokota#define CONS_BLANKTIME _IOW('c', 4, int) 9348104Syokota 9448104Syokota/* set/get the screen saver (these ioctls are current noop) */ 9548104Syokotastruct ssaver { 9648104Syokota#define MAXSSAVER 16 9748104Syokota char name[MAXSSAVER]; 9848104Syokota int num; 9948104Syokota long time; 10048104Syokota}; 10148104Syokotatypedef struct ssaver ssaver_t; 10248104Syokota 10348104Syokota#define CONS_SSAVER _IOW('c', 5, ssaver_t) 10448104Syokota#define CONS_GSAVER _IOWR('c', 6, ssaver_t) 10548104Syokota 10681030Syokota/* set the text cursor type (obsolete, see CONS_CURSORSHAPE below) */ 10781030Syokota/* 10848104Syokota#define CONS_BLINK_CURSOR (1 << 0) 10948104Syokota#define CONS_CHAR_CURSOR (1 << 1) 11081030Syokota*/ 11148104Syokota#define CONS_CURSORTYPE _IOW('c', 7, int) 11248104Syokota 11348104Syokota/* set the bell type to audible or visual */ 11448104Syokota#define CONS_VISUAL_BELL (1 << 0) 11548104Syokota#define CONS_QUIET_BELL (1 << 1) 11648104Syokota#define CONS_BELLTYPE _IOW('c', 8, int) 11748104Syokota 11848104Syokota/* set the history (scroll back) buffer size (in lines) */ 11948104Syokota#define CONS_HISTORY _IOW('c', 9, int) 12048104Syokota 12177251Sdd/* clear the history (scroll back) buffer */ 12277251Sdd#define CONS_CLRHIST _IO('c', 10) 12377251Sdd 12448104Syokota/* mouse cursor ioctl */ 12548104Syokotastruct mouse_data { 12648104Syokota int x; 12748104Syokota int y; 12848104Syokota int z; 12948104Syokota int buttons; 13048104Syokota}; 13148104Syokotatypedef struct mouse_data mouse_data_t; 13248104Syokota 13348104Syokotastruct mouse_mode { 13448104Syokota int mode; 13548104Syokota int signal; 13648104Syokota}; 13748104Syokotatypedef struct mouse_mode mouse_mode_t; 13848104Syokota 13948104Syokotastruct mouse_event { 14048104Syokota int id; /* one based */ 14148104Syokota int value; 14248104Syokota}; 14348104Syokotatypedef struct mouse_event mouse_event_t; 14448104Syokota 14548104Syokotastruct mouse_info { 14648104Syokota int operation; 14748104Syokota#define MOUSE_SHOW 0x01 14848104Syokota#define MOUSE_HIDE 0x02 14948104Syokota#define MOUSE_MOVEABS 0x03 15048104Syokota#define MOUSE_MOVEREL 0x04 15148104Syokota#define MOUSE_GETINFO 0x05 15248104Syokota#define MOUSE_MODE 0x06 15348104Syokota#define MOUSE_ACTION 0x07 15448104Syokota#define MOUSE_MOTION_EVENT 0x08 15548104Syokota#define MOUSE_BUTTON_EVENT 0x09 15655849Syokota#define MOUSE_MOUSECHAR 0x0a 15748104Syokota union { 15848104Syokota mouse_data_t data; 15948104Syokota mouse_mode_t mode; 16048104Syokota mouse_event_t event; 16155849Syokota int mouse_char; 16248104Syokota } u; 16348104Syokota}; 16448104Syokotatypedef struct mouse_info mouse_info_t; 16548104Syokota 16648104Syokota#define CONS_MOUSECTL _IOWR('c', 10, mouse_info_t) 16748104Syokota 16848104Syokota/* see if the vty has been idle */ 16948104Syokota#define CONS_IDLE _IOR('c', 11, int) 17048104Syokota 17148104Syokota/* set the screen saver mode */ 17279622Syokota#define CONS_NO_SAVER (-1) 17348104Syokota#define CONS_LKM_SAVER 0 17448104Syokota#define CONS_USR_SAVER 1 17548104Syokota#define CONS_SAVERMODE _IOW('c', 12, int) 17648104Syokota 17748104Syokota/* start the screen saver */ 17848104Syokota#define CONS_SAVERSTART _IOW('c', 13, int) 17948104Syokota 18081030Syokota/* set the text cursor shape (see also CONS_CURSORTYPE above) */ 18181030Syokota#define CONS_BLINK_CURSOR (1 << 0) 18281030Syokota#define CONS_CHAR_CURSOR (1 << 1) 18381030Syokota#define CONS_HIDDEN_CURSOR (1 << 2) 18481030Syokota#define CONS_CURSOR_ATTRS (CONS_BLINK_CURSOR | CONS_CHAR_CURSOR | \ 18581030Syokota CONS_HIDDEN_CURSOR) 18681030Syokota#define CONS_RESET_CURSOR (1 << 30) 187261455Seadler#define CONS_LOCAL_CURSOR (1U << 31) 18881030Syokota#define CONS_CURSOR_FLAGS (CONS_RESET_CURSOR | CONS_LOCAL_CURSOR) 18981030Syokotastruct cshape { 19081030Syokota /* shape[0]: flags, shape[1]: base, shape[2]: height */ 19181030Syokota int shape[3]; 19281030Syokota}; 19381030Syokota#define CONS_GETCURSORSHAPE _IOWR('c', 14, struct cshape) 19481030Syokota#define CONS_SETCURSORSHAPE _IOW('c', 15, struct cshape) 19581030Syokota 19648104Syokota/* set/get font data */ 19748104Syokotastruct fnt8 { 19848104Syokota char fnt8x8[8*256]; 19948104Syokota}; 20048104Syokotatypedef struct fnt8 fnt8_t; 20148104Syokota 20248104Syokotastruct fnt14 { 20348104Syokota char fnt8x14[14*256]; 20448104Syokota}; 20548104Syokotatypedef struct fnt14 fnt14_t; 20648104Syokota 20748104Syokotastruct fnt16 { 20848104Syokota char fnt8x16[16*256]; 20948104Syokota}; 21048104Syokotatypedef struct fnt16 fnt16_t; 21148104Syokota 212262861Sjhbstruct vfnt_map { 213262861Sjhb uint32_t src; 214262861Sjhb uint16_t dst; 215262861Sjhb uint16_t len; 216262861Sjhb}; 217262861Sjhbtypedef struct vfnt_map vfnt_map_t; 218262861Sjhb 219262861Sjhb#define VFNT_MAP_NORMAL 0 220262861Sjhb#define VFNT_MAP_NORMAL_RIGHT 1 221262861Sjhb#define VFNT_MAP_BOLD 2 222262861Sjhb#define VFNT_MAP_BOLD_RIGHT 3 223262861Sjhb#define VFNT_MAPS 4 224262861Sjhbstruct vfnt { 225262861Sjhb vfnt_map_t *map[VFNT_MAPS]; 226262861Sjhb uint8_t *glyphs; 227262861Sjhb unsigned int map_count[VFNT_MAPS]; 228262861Sjhb unsigned int glyph_count; 229262861Sjhb unsigned int width; 230262861Sjhb unsigned int height; 231262861Sjhb}; 232262861Sjhbtypedef struct vfnt vfnt_t; 233262861Sjhb 23448104Syokota#define PIO_FONT8x8 _IOW('c', 64, fnt8_t) 23548104Syokota#define GIO_FONT8x8 _IOR('c', 65, fnt8_t) 23648104Syokota#define PIO_FONT8x14 _IOW('c', 66, fnt14_t) 23748104Syokota#define GIO_FONT8x14 _IOR('c', 67, fnt14_t) 23848104Syokota#define PIO_FONT8x16 _IOW('c', 68, fnt16_t) 23948104Syokota#define GIO_FONT8x16 _IOR('c', 69, fnt16_t) 240262861Sjhb#define PIO_VFONT _IOW('c', 70, vfnt_t) 241262861Sjhb#define GIO_VFONT _IOR('c', 71, vfnt_t) 242273921Sdumbbell#define PIO_VFONT_DEFAULT _IO('c', 72) 24348104Syokota 24448104Syokota/* get video mode information */ 24548104Syokotastruct colors { 24648104Syokota char fore; 24748104Syokota char back; 24848104Syokota}; 24948104Syokota 25048104Syokotastruct vid_info { 25148104Syokota short size; 25248104Syokota short m_num; 25392459Ssobomax u_short font_size; 25448104Syokota u_short mv_row, mv_col; 25548104Syokota u_short mv_rsz, mv_csz; 256102108Ssobomax u_short mv_hsz; 25748104Syokota struct colors mv_norm, 25848104Syokota mv_rev, 25948104Syokota mv_grfc; 26048104Syokota u_char mv_ovscan; 26148104Syokota u_char mk_keylock; 26248104Syokota}; 26348104Syokotatypedef struct vid_info vid_info_t; 26448104Syokota 26548104Syokota#define CONS_GETINFO _IOWR('c', 73, vid_info_t) 26648104Syokota 26748104Syokota/* get version */ 26848104Syokota#define CONS_GETVERS _IOR('c', 74, int) 26948104Syokota 27048104Syokota/* get the video adapter index (equivalent to FBIO_ADAPTER) */ 27148104Syokota#define CONS_CURRENTADP _IOR('c', 100, int) 27248104Syokota 27348104Syokota/* get the video adapter information (equivalent to FBIO_ADPINFO) */ 27448104Syokota#define CONS_ADPINFO _IOWR('c', 101, video_adapter_info_t) 27548104Syokota 27648104Syokota/* get the video mode information (equivalent to FBIO_MODEINFO) */ 27748104Syokota#define CONS_MODEINFO _IOWR('c', 102, video_info_t) 27848104Syokota 27948104Syokota/* find a video mode (equivalent to FBIO_FINDMODE) */ 28048104Syokota#define CONS_FINDMODE _IOWR('c', 103, video_info_t) 28148104Syokota 28248104Syokota/* set the frame buffer window origin (equivalent to FBIO_SETWINORG) */ 283162711Sru#define CONS_SETWINORG _IOWINT('c', 104) 28448104Syokota 28548104Syokota/* use the specified keyboard */ 286162711Sru#define CONS_SETKBD _IOWINT('c', 110) 28748104Syokota 28848104Syokota/* release the current keyboard */ 28948104Syokota#define CONS_RELKBD _IO('c', 111) 29048104Syokota 29176798Snikstruct scrshot { 292102108Ssobomax int x; 293102108Ssobomax int y; 29476798Snik int xsize; 29576798Snik int ysize; 29676798Snik u_int16_t* buf; 29776798Snik}; 29876798Sniktypedef struct scrshot scrshot_t; 29976798Snik 30080387Ssobomax/* Snapshot the current video buffer */ 30180387Ssobomax#define CONS_SCRSHOT _IOWR('c', 105, scrshot_t) 30280387Ssobomax 30356043Syokota/* get/set the current terminal emulator info. */ 30456043Syokota#define TI_NAME_LEN 32 30556043Syokota#define TI_DESC_LEN 64 30656043Syokota 30756043Syokotastruct term_info { 30856043Syokota int ti_index; 30956043Syokota int ti_flags; 31056043Syokota u_char ti_name[TI_NAME_LEN]; 31156043Syokota u_char ti_desc[TI_DESC_LEN]; 31256043Syokota}; 31356043Syokotatypedef struct term_info term_info_t; 31456043Syokota 31556043Syokota#define CONS_GETTERM _IOWR('c', 112, term_info_t) 31656043Syokota#define CONS_SETTERM _IOW('c', 113, term_info_t) 31756043Syokota 31848104Syokota/* 31948104Syokota * Vty switching ioctl commands. 32048104Syokota */ 32148104Syokota 32248104Syokota/* get the next available vty */ 32348104Syokota#define VT_OPENQRY _IOR('v', 1, int) 32448104Syokota 32548104Syokota/* set/get vty switching mode */ 32648104Syokota#ifndef _VT_MODE_DECLARED 32748104Syokota#define _VT_MODE_DECLARED 32848104Syokotastruct vt_mode { 32948104Syokota char mode; 33048104Syokota#define VT_AUTO 0 /* switching is automatic */ 33148104Syokota#define VT_PROCESS 1 /* switching controlled by prog */ 33248104Syokota#define VT_KERNEL 255 /* switching controlled in kernel */ 33348104Syokota char waitv; /* not implemented yet SOS */ 33448104Syokota short relsig; 33548104Syokota short acqsig; 33648104Syokota short frsig; /* not implemented yet SOS */ 33748104Syokota}; 33848104Syokotatypedef struct vt_mode vtmode_t; 33948104Syokota#endif /* !_VT_MODE_DECLARED */ 34048104Syokota 34148104Syokota#define VT_SETMODE _IOW('v', 2, vtmode_t) 34248104Syokota#define VT_GETMODE _IOR('v', 3, vtmode_t) 34348104Syokota 34448104Syokota/* acknowledge release or acquisition of a vty */ 34548104Syokota#define VT_FALSE 0 34648104Syokota#define VT_TRUE 1 34748104Syokota#define VT_ACKACQ 2 348162711Sru#define VT_RELDISP _IOWINT('v', 4) 34948104Syokota 35048104Syokota/* activate the specified vty */ 351162711Sru#define VT_ACTIVATE _IOWINT('v', 5) 35248104Syokota 35348104Syokota/* wait until the specified vty is activate */ 354162711Sru#define VT_WAITACTIVE _IOWINT('v', 6) 35548104Syokota 35648104Syokota/* get the currently active vty */ 35748104Syokota#define VT_GETACTIVE _IOR('v', 7, int) 35848104Syokota 35948104Syokota/* get the index of the vty */ 36048104Syokota#define VT_GETINDEX _IOR('v', 8, int) 36148104Syokota 36299704Sdd/* prevent switching vtys */ 36399704Sdd#define VT_LOCKSWITCH _IOW('v', 9, int) 36499704Sdd 36548104Syokota/* 36648104Syokota * Video mode switching ioctl. See sys/fbio.h for mode numbers. 36748104Syokota */ 36848104Syokota 36948104Syokota#define SW_B40x25 _IO('S', M_B40x25) 37048104Syokota#define SW_C40x25 _IO('S', M_C40x25) 37148104Syokota#define SW_B80x25 _IO('S', M_B80x25) 37248104Syokota#define SW_C80x25 _IO('S', M_C80x25) 37348104Syokota#define SW_BG320 _IO('S', M_BG320) 37448104Syokota#define SW_CG320 _IO('S', M_CG320) 37548104Syokota#define SW_BG640 _IO('S', M_BG640) 37648104Syokota#define SW_EGAMONO80x25 _IO('S', M_EGAMONO80x25) 37748104Syokota#define SW_CG320_D _IO('S', M_CG320_D) 37848104Syokota#define SW_CG640_E _IO('S', M_CG640_E) 37948104Syokota#define SW_EGAMONOAPA _IO('S', M_EGAMONOAPA) 38048104Syokota#define SW_CG640x350 _IO('S', M_CG640x350) 38148104Syokota#define SW_ENH_MONOAPA2 _IO('S', M_ENHMONOAPA2) 38248104Syokota#define SW_ENH_CG640 _IO('S', M_ENH_CG640) 38348104Syokota#define SW_ENH_B40x25 _IO('S', M_ENH_B40x25) 38448104Syokota#define SW_ENH_C40x25 _IO('S', M_ENH_C40x25) 38548104Syokota#define SW_ENH_B80x25 _IO('S', M_ENH_B80x25) 38648104Syokota#define SW_ENH_C80x25 _IO('S', M_ENH_C80x25) 38748104Syokota#define SW_ENH_B80x43 _IO('S', M_ENH_B80x43) 38848104Syokota#define SW_ENH_C80x43 _IO('S', M_ENH_C80x43) 38948104Syokota#define SW_MCAMODE _IO('S', M_MCA_MODE) 39048104Syokota#define SW_VGA_C40x25 _IO('S', M_VGA_C40x25) 39148104Syokota#define SW_VGA_C80x25 _IO('S', M_VGA_C80x25) 39248104Syokota#define SW_VGA_C80x30 _IO('S', M_VGA_C80x30) 39348104Syokota#define SW_VGA_C80x50 _IO('S', M_VGA_C80x50) 39448104Syokota#define SW_VGA_C80x60 _IO('S', M_VGA_C80x60) 39548104Syokota#define SW_VGA_M80x25 _IO('S', M_VGA_M80x25) 39648104Syokota#define SW_VGA_M80x30 _IO('S', M_VGA_M80x30) 39748104Syokota#define SW_VGA_M80x50 _IO('S', M_VGA_M80x50) 39848104Syokota#define SW_VGA_M80x60 _IO('S', M_VGA_M80x60) 39948104Syokota#define SW_VGA11 _IO('S', M_VGA11) 40048104Syokota#define SW_BG640x480 _IO('S', M_VGA11) 40148104Syokota#define SW_VGA12 _IO('S', M_VGA12) 40248104Syokota#define SW_CG640x480 _IO('S', M_VGA12) 40348104Syokota#define SW_VGA13 _IO('S', M_VGA13) 40448104Syokota#define SW_VGA_CG320 _IO('S', M_VGA13) 40548104Syokota#define SW_VGA_CG640 _IO('S', M_VGA_CG640) 40648104Syokota#define SW_VGA_MODEX _IO('S', M_VGA_MODEX) 40748104Syokota 40859689Snyan#define SW_PC98_80x25 _IO('S', M_PC98_80x25) 40959689Snyan#define SW_PC98_80x30 _IO('S', M_PC98_80x30) 41059689Snyan#define SW_PC98_EGC640x400 _IO('S', M_PC98_EGC640x400) 41159689Snyan#define SW_PC98_PEGC640x400 _IO('S', M_PC98_PEGC640x400) 41259689Snyan#define SW_PC98_PEGC640x480 _IO('S', M_PC98_PEGC640x480) 41348104Syokota 41448104Syokota#define SW_VGA_C90x25 _IO('S', M_VGA_C90x25) 41548104Syokota#define SW_VGA_M90x25 _IO('S', M_VGA_M90x25) 41648104Syokota#define SW_VGA_C90x30 _IO('S', M_VGA_C90x30) 41748104Syokota#define SW_VGA_M90x30 _IO('S', M_VGA_M90x30) 41848104Syokota#define SW_VGA_C90x43 _IO('S', M_VGA_C90x43) 41948104Syokota#define SW_VGA_M90x43 _IO('S', M_VGA_M90x43) 42048104Syokota#define SW_VGA_C90x50 _IO('S', M_VGA_C90x50) 42148104Syokota#define SW_VGA_M90x50 _IO('S', M_VGA_M90x50) 42248104Syokota#define SW_VGA_C90x60 _IO('S', M_VGA_C90x60) 42348104Syokota#define SW_VGA_M90x60 _IO('S', M_VGA_M90x60) 42448104Syokota 42548104Syokota#define SW_TEXT_80x25 _IO('S', M_TEXT_80x25) 42648104Syokota#define SW_TEXT_80x30 _IO('S', M_TEXT_80x30) 42748104Syokota#define SW_TEXT_80x43 _IO('S', M_TEXT_80x43) 42848104Syokota#define SW_TEXT_80x50 _IO('S', M_TEXT_80x50) 42948104Syokota#define SW_TEXT_80x60 _IO('S', M_TEXT_80x60) 43048104Syokota#define SW_TEXT_132x25 _IO('S', M_TEXT_132x25) 43148104Syokota#define SW_TEXT_132x30 _IO('S', M_TEXT_132x30) 43248104Syokota#define SW_TEXT_132x43 _IO('S', M_TEXT_132x43) 43348104Syokota#define SW_TEXT_132x50 _IO('S', M_TEXT_132x50) 43448104Syokota#define SW_TEXT_132x60 _IO('S', M_TEXT_132x60) 43548104Syokota 43648104Syokota#define SW_VESA_CG640x400 _IO('V', M_VESA_CG640x400 - M_VESA_BASE) 43748104Syokota#define SW_VESA_CG640x480 _IO('V', M_VESA_CG640x480 - M_VESA_BASE) 43848104Syokota#define SW_VESA_800x600 _IO('V', M_VESA_800x600 - M_VESA_BASE) 43948104Syokota#define SW_VESA_CG800x600 _IO('V', M_VESA_CG800x600 - M_VESA_BASE) 44048104Syokota#define SW_VESA_1024x768 _IO('V', M_VESA_1024x768 - M_VESA_BASE) 44148104Syokota#define SW_VESA_CG1024x768 _IO('V', M_VESA_CG1024x768 - M_VESA_BASE) 44248104Syokota#define SW_VESA_1280x1024 _IO('V', M_VESA_1280x1024 - M_VESA_BASE) 44348104Syokota#define SW_VESA_CG1280x1024 _IO('V', M_VESA_CG1280x1024 - M_VESA_BASE) 44448104Syokota#define SW_VESA_C80x60 _IO('V', M_VESA_C80x60 - M_VESA_BASE) 44548104Syokota#define SW_VESA_C132x25 _IO('V', M_VESA_C132x25 - M_VESA_BASE) 44648104Syokota#define SW_VESA_C132x43 _IO('V', M_VESA_C132x43 - M_VESA_BASE) 44748104Syokota#define SW_VESA_C132x50 _IO('V', M_VESA_C132x50 - M_VESA_BASE) 44848104Syokota#define SW_VESA_C132x60 _IO('V', M_VESA_C132x60 - M_VESA_BASE) 44948104Syokota#define SW_VESA_32K_320 _IO('V', M_VESA_32K_320 - M_VESA_BASE) 45048104Syokota#define SW_VESA_64K_320 _IO('V', M_VESA_64K_320 - M_VESA_BASE) 45148104Syokota#define SW_VESA_FULL_320 _IO('V', M_VESA_FULL_320 - M_VESA_BASE) 45248104Syokota#define SW_VESA_32K_640 _IO('V', M_VESA_32K_640 - M_VESA_BASE) 45348104Syokota#define SW_VESA_64K_640 _IO('V', M_VESA_64K_640 - M_VESA_BASE) 45448104Syokota#define SW_VESA_FULL_640 _IO('V', M_VESA_FULL_640 - M_VESA_BASE) 45548104Syokota#define SW_VESA_32K_800 _IO('V', M_VESA_32K_800 - M_VESA_BASE) 45648104Syokota#define SW_VESA_64K_800 _IO('V', M_VESA_64K_800 - M_VESA_BASE) 45748104Syokota#define SW_VESA_FULL_800 _IO('V', M_VESA_FULL_800 - M_VESA_BASE) 45848104Syokota#define SW_VESA_32K_1024 _IO('V', M_VESA_32K_1024 - M_VESA_BASE) 45948104Syokota#define SW_VESA_64K_1024 _IO('V', M_VESA_64K_1024 - M_VESA_BASE) 46048104Syokota#define SW_VESA_FULL_1024 _IO('V', M_VESA_FULL_1024 - M_VESA_BASE) 46148104Syokota#define SW_VESA_32K_1280 _IO('V', M_VESA_32K_1280 - M_VESA_BASE) 46248104Syokota#define SW_VESA_64K_1280 _IO('V', M_VESA_64K_1280 - M_VESA_BASE) 46348104Syokota#define SW_VESA_FULL_1280 _IO('V', M_VESA_FULL_1280 - M_VESA_BASE) 46448104Syokota 46548104Syokota#endif /* !_SYS_CONSIO_H_ */ 466