src/video/fbcon/3dfx_regs.h
author Edgar Simo <bobbens@gmail.com>
Sun, 06 Jul 2008 17:06:37 +0000
branchgsoc2008_force_feedback
changeset 2498 ab567bd667bf
parent 1895 c121d94672cb
child 2859 99210400e8b9
permissions -rw-r--r--
Fixed various mistakes in the doxygen.
slouken@0
     1
/*
slouken@0
     2
    SDL - Simple DirectMedia Layer
slouken@1312
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@0
     4
slouken@0
     5
    This library is free software; you can redistribute it and/or
slouken@1312
     6
    modify it under the terms of the GNU Lesser General Public
slouken@0
     7
    License as published by the Free Software Foundation; either
slouken@1312
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@0
     9
slouken@0
    10
    This library is distributed in the hope that it will be useful,
slouken@0
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@0
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1312
    13
    Lesser General Public License for more details.
slouken@0
    14
slouken@1312
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1312
    16
    License along with this library; if not, write to the Free Software
slouken@1312
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@0
    18
slouken@0
    19
    Sam Lantinga
slouken@252
    20
    slouken@libsdl.org
slouken@0
    21
*/
slouken@1402
    22
#include "SDL_config.h"
slouken@0
    23
slouken@0
    24
#ifndef _3DFX_REGS_H
slouken@0
    25
#define _3DFX_REGS_H
slouken@0
    26
slouken@0
    27
/* This information comes from the public 3Dfx specs for the Voodoo 3000 */
slouken@0
    28
slouken@0
    29
/* mapped_io register offsets */
slouken@0
    30
#define TDFX_STATUS	0x00
slouken@0
    31
slouken@0
    32
#define INTCTRL		(0x00100000 + 0x04)
slouken@0
    33
#define CLIP0MIN	(0x00100000 + 0x08)
slouken@0
    34
#define CLIP0MAX	(0x00100000 + 0x0c)
slouken@0
    35
#define DSTBASE		(0x00100000 + 0x10)
slouken@0
    36
#define DSTFORMAT	(0x00100000 + 0x14)
slouken@0
    37
#define SRCCOLORKEYMIN	(0x00100000 + 0x18)
slouken@0
    38
#define SRCCOLORKEYMAX	(0x00100000 + 0x1c)
slouken@0
    39
#define DSTCOLORKEYMIN	(0x00100000 + 0x20)
slouken@0
    40
#define DSTCOLORKEYMAX	(0x00100000 + 0x24)
slouken@0
    41
#define BRESERROR0	(0x00100000 + 0x28)
slouken@0
    42
#define BRESERROR1	(0x00100000 + 0x2c)
slouken@0
    43
#define ROP_2D		(0x00100000 + 0x30)
slouken@0
    44
#define SRCBASE		(0x00100000 + 0x34)
slouken@0
    45
#define COMMANDEXTRA_2D	(0x00100000 + 0x38)
slouken@0
    46
#define PATTERN0	(0x00100000 + 0x44)
slouken@0
    47
#define PATTERN1	(0x00100000 + 0x48)
slouken@0
    48
#define CLIP1MIN	(0x00100000 + 0x4c)
slouken@0
    49
#define CLIP1MAX	(0x00100000 + 0x50)
slouken@0
    50
#define SRCFORMAT	(0x00100000 + 0x54)
slouken@0
    51
#define SRCSIZE		(0x00100000 + 0x58)
slouken@0
    52
#define SRCXY		(0x00100000 + 0x5c)
slouken@0
    53
#define COLORBACK	(0x00100000 + 0x60)
slouken@0
    54
#define COLORFORE	(0x00100000 + 0x64)
slouken@0
    55
#define DSTSIZE		(0x00100000 + 0x68)
slouken@0
    56
#define DSTXY		(0x00100000 + 0x6c)
slouken@0
    57
#define COMMAND_2D	(0x00100000 + 0x70)
slouken@0
    58
#define LAUNCH_2D	(0x00100000 + 0x80)
slouken@0
    59
#define PATTERNBASE	(0x00100000 + 0x100)
slouken@0
    60
slouken@0
    61
#define COMMAND_3D	(0x00200000 + 0x120)
slouken@0
    62
slouken@0
    63
/* register bitfields (not all, only as needed) */
slouken@0
    64
slouken@0
    65
#define BIT(x) (1UL << (x))
slouken@0
    66
slouken@0
    67
#define COMMAND_2D_BITBLT		0x01
slouken@0
    68
#define COMMAND_2D_FILLRECT		0x05
slouken@0
    69
#define COMMAND_2D_LINE			0x06
slouken@0
    70
#define COMMAND_2D_POLYGON_FILL		0x08
slouken@0
    71
#define COMMAND_2D_INITIATE		BIT(8)
slouken@0
    72
#define COMMAND_2D_REVERSELINE		BIT(9)
slouken@0
    73
#define COMMAND_2D_STIPPLELINE		BIT(12)
slouken@0
    74
#define COMMAND_2D_MONOCHROME_PATT	BIT(13)
slouken@0
    75
#define COMMAND_2D_MONOCHROME_TRANSP    BIT(16)
slouken@0
    76
slouken@0
    77
#define COMMAND_3D_NOP			0x00
slouken@0
    78
slouken@0
    79
#define STATUS_RETRACE			BIT(6)
slouken@0
    80
#define STATUS_BUSY			BIT(9)
slouken@0
    81
slouken@0
    82
#endif /* _3DFX_REGS_H */
slouken@1895
    83
/* vi: set ts=4 sw=4 expandtab: */