sc_machdep.h revision 48516
148187Skato/*- 248516Skato * Copyright (c) 1999 FreeBSD(98) Porting Team. 348516Skato * All rights reserved. 448516Skato * 548516Skato * Redistribution and use in source and binary forms, with or without 648516Skato * modification, are permitted provided that the following conditions 748516Skato * are met: 848516Skato * 1. Redistributions of source code must retain the above copyright 948516Skato * notice, this list of conditions and the following disclaimer as 1048516Skato * the first lines of this file unmodified. 1148516Skato * 2. Redistributions in binary form must reproduce the above copyright 1248516Skato * notice, this list of conditions and the following disclaimer in the 1348516Skato * documentation and/or other materials provided with the distribution. 1448516Skato * 1548516Skato * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 1648516Skato * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1748516Skato * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1848516Skato * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 1948516Skato * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2048516Skato * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2148516Skato * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2248516Skato * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2348516Skato * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2448516Skato * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2548516Skato * 2648516Skato * $Id: sc_machdep.h,v 1.1 1999/06/24 10:51:31 kato Exp $ 2748187Skato */ 2848187Skato 2948187Skato#ifndef _PC98_PC98_SC_MACHDEP_H_ 3048187Skato#define _PC98_PC98_SC_MACHDEP_H_ 3148187Skato 3248187Skato#undef SC_ALT_MOUSE_IMAGE 3348187Skato#undef SC_DFLT_FONT 3448187Skato#undef SC_MOUSE_CHAR 3548187Skato#undef SC_PIXEL_MODE 3648187Skato#undef SC_NO_FONT_LOADING 3748187Skato#define SC_NO_FONT_LOADING 1 3848187Skato#undef SC_NO_PALETTE_LOADING 3948187Skato#define SC_NO_PALETTE_LOADING 1 4048187Skato 4148187Skato#ifndef SC_KERNEL_CONS_ATTR 4248187Skato#define SC_KERNEL_CONS_ATTR (FG_LIGHTGREY | BG_BLACK) 4348187Skato#endif 4448187Skato 4548187Skato#define KANJI 1 4648187Skato 4748187Skato#define BELL_DURATION 5 4848187Skato#define BELL_PITCH_8M 1339 4948187Skato#define BELL_PITCH_5M 1678 5048187Skato 5148187Skato#define UJIS 0 5248187Skato#define SJIS 1 5348187Skato 5448187Skato#define PRINTABLE(c) ((c) > 0x1b || ((c) > 0x0f && (c) < 0x1b) \ 5548187Skato || (c) < 0x07) 5648187Skato 5748187Skato#define ISMOUSEAVAIL(af) (1) 5848187Skato#define ISFONTAVAIL(af) ((af) & V_ADP_FONT) 5948187Skato#define ISPALAVAIL(af) ((af) & V_ADP_PALETTE) 6048187Skato 6148187Skato#ifdef KANJI 6248187Skato 6348187Skato#define IS_KTYPE_ASCII_or_HANKAKU(A) (!((A) & 0xee)) 6448187Skato#define IS_KTYPE_KANA(A) ((A) & 0x11) 6548187Skato#define KTYPE_MASK_CTRL(A) ((A) &= 0xF0) 6648187Skato 6748187Skato#define _SCR_MD_STAT_DECLARED_ 6848187Skatotypedef struct { 6948187Skato u_char kanji_1st_char; 7048187Skato u_char kanji_type; 7148187Skato#define KTYPE_ASCII 0 /* ASCII */ 7248187Skato#define KTYPE_KANA 1 /* HANKAKU */ 7348187Skato#define KTYPE_JKANA 0x10 /* JIS HANKAKU */ 7448187Skato#define KTYPE_7JIS 0x20 /* JIS */ 7548187Skato#define KTYPE_SJIS 2 /* Shift JIS */ 7648187Skato#define KTYPE_UJIS 4 /* UJIS */ 7748187Skato#define KTYPE_SUKANA 3 /* Shift JIS or UJIS HANKAKU */ 7848187Skato#define KTYPE_SUJIS 6 /* SHift JIS or UJIS */ 7948187Skato#define KTYPE_KANIN 0x80 /* Kanji Invoke sequence */ 8048187Skato#define KTYPE_ASCIN 0x40 /* ASCII Invoke sequence */ 8148187Skato} scr_md_stat_t; 8248187Skato 8348187Skato#endif /* KANJI */ 8448187Skato 8548187Skato#endif /* !_PC98_PC98_SC_MACHDEP_H_ */ 86