1 /**************************************************************************
3 Copyright 2000 Silicon Integrated Systems Corp, Inc., HsinChu, Taiwan.
6 Permission is hereby granted, free of charge, to any person obtaining a
7 copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sub license, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
14 The above copyright notice and this permission notice (including the
15 next paragraph) shall be included in all copies or substantial portions
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21 IN NO EVENT SHALL SILICON INTEGRATED SYSTEMS CORP BE LIABLE FOR
22 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 **************************************************************************/
27 /* $XFree86: xc/lib/GL/mesa/src/drv/sis/sis_common.h,v 1.5 2000/09/26 15:56:48 tsi Exp $ */
31 * Sung-Ching Lin <sclin@sis.com.tw>
34 #ifndef _sis_common_h_
35 #define _sis_common_h_
45 #define NullBox ((BoxPtr)0)
46 typedef struct _Box
*BoxPtr
;
49 #define CMD0_DD_ENABLE 0x06
50 #define CMD0_SRC_VIDEO 0x00
51 #define CMD0_SRC_CPU 0x10
52 #define CMD0_PAT_FG_COLOR 0x00
53 #define CMD1_DIR_X_DEC 0x00
54 #define CMD1_DIR_X_INC 0x01
55 #define CMD1_DIR_Y_DEC 0x00
56 #define CMD1_DIR_Y_INC 0x02
57 #define REG_SRC_ADDR 0x8200
58 #define REG_CMD0 0x823c
91 GLbyte cStatus0_GLbyte3
;
92 GLbyte cStatus0_GLbyte4
;
102 GLint dwDestBaseAddr
;
115 _CMDQUESTATUS stdwCmdQueStatus
;
117 ENGPACKET
, *LPENGPACKET
;
123 #define SIS_MAX_TEXTURE_SIZE 2048
124 #define SIS_MAX_TEXTURES 2
126 #define SIS_MAX_FRAME_LENGTH 3
128 GLint
doFPtoFixedNoRound( GLfloat dwInValue
, int nFraction
);