Added:
- wscons support - acceleration - virtual consoles - colour - made cg3 emulation optional for native XFree driver
This commit is contained in:
parent
5d7cb1a721
commit
9efeaffa68
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files.sbus,v 1.20 2005/02/27 00:27:48 perry Exp $
|
||||
# $NetBSD: files.sbus,v 1.21 2005/05/16 14:43:23 macallan Exp $
|
||||
#
|
||||
# Config file and device description for machine-independent SBUS code.
|
||||
# Included by ports that need it.
|
||||
|
@ -121,6 +121,6 @@ attach zx at sbus
|
|||
file dev/sbus/zx.c zx
|
||||
|
||||
# Tadpole 3GX/3GS (P9100 -- P Nine One Zero Zero -> pnozz)
|
||||
device pnozz: fb, bt_dac, rasops8, rasops16, rasops32
|
||||
device pnozz: fb, bt_dac, rasops8, rasops16, rasops32, wsemuldisplaydev
|
||||
attach pnozz at sbus
|
||||
file dev/sbus/p9100.c pnozz needs-flag
|
||||
|
|
1071
sys/dev/sbus/p9100.c
1071
sys/dev/sbus/p9100.c
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,168 @@
|
|||
/* $NetBSD: p9100reg.h,v 1.1 2005/05/16 14:43:23 macallan Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
* by Matt Thomas.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by the NetBSD
|
||||
* Foundation, Inc. and its contributors.
|
||||
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef P9100_REG_H
|
||||
#define P9100_REG_H
|
||||
|
||||
/* The Tadpole 3GX Technical Reference Manual lies. The ramdac registers
|
||||
* are map in 4 byte increments, not 8.
|
||||
*/
|
||||
#define SCRN_RPNT_CTL_1 0x0138 /* Screen Respaint Timing Control 1 */
|
||||
#define VIDEO_ENABLED 0x00000020
|
||||
#define PWRUP_CNFG 0x0194 /* Power Up Configuration */
|
||||
#define DAC_CMAP_WRIDX 0x0200 /* IBM RGB528 Palette Address (Write) */
|
||||
#define DAC_CMAP_DATA 0x0204 /* IBM RGB528 Palette Data */
|
||||
#define DAC_PXL_MASK 0x0208 /* IBM RGB528 Pixel Mask */
|
||||
#define DAC_CMAP_RDIDX 0x020c /* IBM RGB528 Palette Address (Read) */
|
||||
#define DAC_INDX_LO 0x0210 /* IBM RGB528 Index Low */
|
||||
#define DAC_INDX_HI 0x0214 /* IBM RGB528 Index High */
|
||||
#define DAC_INDX_DATA 0x0218 /* IBM RGB528 Index Data (Indexed Registers) */
|
||||
#define DAC_INDX_CTL 0x021c /* IBM RGB528 Index Control */
|
||||
|
||||
#define ENGINE_STATUS 0x2000 /* drawing engine status register */
|
||||
#define BLITTER_BUSY 0x80000000
|
||||
#define ENGINE_BUSY 0x40000000
|
||||
#define COMMAND_BLIT 0x2004
|
||||
#define COMMAND_QUAD 0x2008
|
||||
#define PIXEL_1 0x2080 /* pixel data for monochrome colour expansion */
|
||||
/* apparently bits 2-6 control how many pixels we write - n+1 */
|
||||
|
||||
/* drawing engine registers */
|
||||
#define COORD_INDEX 0x218c
|
||||
#define WINDOW_OFFSET 0x2190
|
||||
|
||||
#define FOREGROUND_COLOR 0x2200
|
||||
#define BACKGROUND_COLOR 0x2204
|
||||
#define PLANE_MASK 0x2208
|
||||
#define DRAW_MODE 0x220c
|
||||
#define PATTERN_ORIGIN_X 0x2210
|
||||
#define PATTERN_ORIGIN_Y 0x2214
|
||||
#define RASTER_OP 0x2218
|
||||
#define ROP_NO_SOLID 0x02000 /* if set use pattern instead of color for quad operations */
|
||||
#define ROP_2BIT_PATTERN 0x04000 /* 4-colour pattern instead of mono */
|
||||
#define ROP_PIX1_TRANS 0x08000 /* transparent background in mono */
|
||||
#define ROP_OVERSIZE 0x10000
|
||||
#define ROP_PATTERN 0x20000 /* the manual says pattern enable */
|
||||
#define ROP_TRANS 0x20000 /* but XFree86 says trans */
|
||||
#define ROP_SRC 0xCC
|
||||
#define ROP_PAT 0xF0
|
||||
#define ROP_DST 0xAA
|
||||
#define ROP_SET 0xff
|
||||
|
||||
#define PIXEL_8 0x221c
|
||||
#define WINDOW_MIN 0x2220
|
||||
#define WINDOW_MAX 0x2224
|
||||
|
||||
#define PATTERN0 0x2280
|
||||
#define PATTERN1 0x2284
|
||||
#define PATTERN2 0x2288
|
||||
#define PATTERN3 0x228c
|
||||
#define USER0 0x2290
|
||||
#define USER1 0x2294
|
||||
#define USER2 0x2298
|
||||
#define USER3 0x229c
|
||||
#define BYTE_CLIP_MIN 0x22a0
|
||||
#define BYTE_CLIP_MAX 0x22a4
|
||||
|
||||
/* coordinate registers */
|
||||
#define ABS_X0 0x3008
|
||||
#define ABS_Y0 0x3010
|
||||
#define ABS_XY0 0x3018
|
||||
#define REL_X0 0x3028
|
||||
#define REL_Y0 0x3030
|
||||
#define REL_XY0 0x3038
|
||||
|
||||
#define ABS_X1 0x3048
|
||||
#define ABS_Y1 0x3050
|
||||
#define ABS_XY1 0x3058
|
||||
#define REL_X1 0x3068
|
||||
#define REL_Y1 0x3070
|
||||
#define REL_XY1 0x3078
|
||||
|
||||
#define ABS_X2 0x3088
|
||||
#define ABS_Y2 0x3090
|
||||
#define ABS_XY2 0x3098
|
||||
#define REL_X2 0x30a8
|
||||
#define REL_Y2 0x30b0
|
||||
#define REL_XY2 0x30b8
|
||||
|
||||
#define ABS_X3 0x30c8
|
||||
#define ABS_Y3 0x30d0
|
||||
#define ABS_XY3 0x30d8
|
||||
#define REL_X3 0x30e8
|
||||
#define REL_Y3 0x30f0
|
||||
#define REL_XY3 0x30f8
|
||||
|
||||
/* meta-coordinates */
|
||||
#define POINT_RTW_X 0x3208
|
||||
#define POINT_RTW_Y 0x3210
|
||||
#define POINT_RTW_XY 0x3218
|
||||
#define POINT_RTP_X 0x3228
|
||||
#define POINT_RTP_Y 0x3220
|
||||
#define POINT_RTP_XY 0x3238
|
||||
|
||||
#define LINE_RTW_X 0x3248
|
||||
#define LINE_RTW_Y 0x3250
|
||||
#define LINE_RTW_XY 0x3258
|
||||
#define LINE_RTP_X 0x3268
|
||||
#define LINE_RTP_Y 0x3260
|
||||
#define LINE_RTP_XY 0x3278
|
||||
|
||||
#define TRIANGLE_RTW_X 0x3288
|
||||
#define TRIANGLE_RTW_Y 0x3290
|
||||
#define TRIANGLE_RTW_XY 0x3298
|
||||
#define TRIANGLE_RTP_X 0x32a8
|
||||
#define TRIANGLE_RTP_Y 0x32a0
|
||||
#define TRIANGLE_RTP_XY 0x32b8
|
||||
|
||||
#define QUAD_RTW_X 0x32c8
|
||||
#define QUAD_RTW_Y 0x32d0
|
||||
#define QUAD_RTW_XY 0x32d8
|
||||
#define QUAD_RTP_X 0x32e8
|
||||
#define QUAD_RTP_Y 0x32e0
|
||||
#define QUAD_RTP_XY 0x32f8
|
||||
|
||||
#define RECT_RTW_X 0x3308
|
||||
#define RECT_RTW_Y 0x3310
|
||||
#define RECT_RTW_XY 0x3318
|
||||
#define RECT_RTP_X 0x3328
|
||||
#define RECT_RTP_Y 0x3320
|
||||
#define RECT_RTP_XY 0x3338
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue