/[gxemul]/trunk/src/include/sfbreg.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/src/include/sfbreg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Mon Oct 8 16:18:00 2007 UTC (12 years ago) by dpavlin
File MIME type: text/plain
File size: 4145 byte(s)
++ trunk/HISTORY	(local)
$Id: HISTORY,v 1.707 2005/04/27 16:37:33 debug Exp $
20050408	Some minor updates to the wdc. Linux now doesn't complain
		anymore if a disk is non-present.
20050409	Various minor fixes (a bintrans bug, and some other things).
		The wdc seems to work with Playstation2 emulation, but there
		is a _long_ annoying delay when disks are detected.
		Fixing a really important bintrans bug (when devices and RAM
		are mixed within 4KB pages), which was triggered with
		NetBSD/playstation2 kernels.
20050410	Adding a dummy dev_ps2_ether (just so that NetBSD doesn't
		complain as much during bootup).
		Symbols starting with '$' are now ignored.
		Renaming dev_ps2_ohci.c to dev_ohci.c, etc.
20050411	Moving the bintrans-cache-isolation check from cpu_mips.c to
		cpu_mips_coproc.c. (I thought this would give a speedup, but
		it's not noticable.)
		Better playstation2 sbus interrupt code.
		Skip ahead many ticks if the count register is read manually.
		(This increases the speed of delay-loops that simply read
		the count register.)
20050412	Updates to the playstation2 timer/interrupt code.
		Some other minor updates.
20050413	NetBSD/cobalt runs from a disk image :-) including userland;
		updating the documentation on how to install NetBSD/cobalt
		using NetBSD/pmax (!).
		Some minor bintrans updates (no real speed improvement) and
		other minor updates (playstation2 now uses the -o options).
20050414	Adding a dummy x86 (and AMD64) mode.
20050415	Adding some (32-bit and 16-bit) x86 instructions.
		Adding some initial support for non-SCSI, non-IDE floppy
		images. (The x86 mode can boot from these, more or less.)
		Moving the devices/ and include/ directories to src/devices/
		and src/include/, respectively.
20050416	Continuing on the x86 stuff. (Adding pc_bios.c and some simple
		support for software interrupts in 16-bit mode.)
20050417	Ripping out most of the x86 instruction decoding stuff, trying
		to rewrite it in a cleaner way.
		Disabling some of the least working CPU families in the
		configure script (sparc, x86, alpha, hppa), so that they are
		not enabled by default.
20050418	Trying to fix the bug which caused problems when turning on
		and off bintrans interactively, by flushing the bintrans cache
		whenever bintrans is manually (re)enabled.
20050419	Adding the 'lswi' ppc instruction.
		Minor updates to the x86 instruction decoding.
20050420	Renaming x86 register name indices from R_xx to X86_R_xx (this
		makes building on Tru64 nicer).
20050422	Adding a check for duplicate MIPS TLB entries on tlbwr/tlbwi.
20050427	Adding screenshots to guestoses.html.
		Some minor fixes and testing for the next release.

==============  RELEASE 0.3.2  ==============


1 /* gxemul: $Id: sfbreg.h,v 1.2 2005/03/05 12:34:03 debug Exp $ */
2
3 #ifndef SFBREG_H
4 #define SFBREG_H
5
6 /*-
7 * Copyright (c) 1995
8 * The Regents of the University of California. All rights reserved.
9 *
10 * This code is derived from software contributed to Berkeley by
11 * Ralph Campbell and Rick Macklem.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 * 3. All advertising materials mentioning features or use of this software
22 * must display the following acknowledgement:
23 * This product includes software developed by the University of
24 * California, Berkeley and its contributors.
25 * 4. Neither the name of the University nor the names of its contributors
26 * may be used to endorse or promote products derived from this software
27 * without specific prior written permission.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 * from: @(#)sfb.c 8.1 (Berkeley) 6/10/93
42 * $NetBSD: sfbreg.h,v 1.2 1997/10/13 14:22:41 lukem Exp $
43 */
44
45 #define SFB_OFFSET_VRAM 0x201000 /* from module's base */
46 #define SFB_OFFSET_BT459 0x1C0000 /* Bt459 registers */
47 #define SFB_ASIC_OFFSET 0x100000 /* SFB ASIC registers... */
48 #define SFB_COPY_REG0 0x100000 /* Copy Buffer Register0 */
49 #define SFB_COPY_REG1 0x100004 /* Copy Buffer Register1 */
50 #define SFB_COPY_REG2 0x100008 /* Copy Buffer Register2 */
51 #define SFB_COPY_REG3 0x10000C /* Copy Buffer Register3 */
52 #define SFB_COPY_REG4 0x100010 /* Copy Buffer Register4 */
53 #define SFB_COPY_REG5 0x100014 /* Copy Buffer Register5 */
54 #define SFB_COPY_REG6 0x100018 /* Copy Buffer Register6 */
55 #define SFB_COPY_REG7 0x10001C /* Copy Buffer Register7 */
56 #define SFB_FOREGROUND 0x100020 /* Foreground */
57 #define SFB_BACKGROUND 0x100024 /* Background */
58 #define SFB_PLANEMASK 0x100028 /* PlaneMask */
59 #define SFB_PIXELMASK 0x10002C /* PixelMask Register */
60 #define SFB_MODE 0x100030 /* Mode Register */
61 #define SFB_BOOL_OP 0x100034 /* Boolean Op Register */
62 #define SFB_PIXELSHIFT 0x100038 /* PixelShift Register */
63 #define SFB_ADDRESS 0x10003C /* Address Register */
64 #define SFB_BRESENHAM1 0x100040 /* Bresenham Register 1 */
65 #define SFB_BRESENHAM2 0x100044 /* Bresenham Register 2 */
66 #define SFB_BRESENHAM3 0x100048 /* Bresenham Register 3 */
67 #define SFB_BCONT 0x10004C /* BCont */
68 #define SFB_DEEP 0x100050 /* Deep Register */
69 #define SFB_START 0x100054 /* Start Register */
70 #define SFB_CLEAR 0x100058 /* Clear Interrupt */
71 #define SFB_VREFRESH_COUNT 0x100060 /* Video Refresh Count */
72 #define SFB_VHORIZONTAL 0x100064 /* Video Horizontal Setup */
73 #define SFB_VVERTICAL 0x100068 /* Video Vertical Setup */
74 #define SFB_VBASE 0x10006C /* Video Base Address */
75 #define SFB_VVALID 0x100070 /* Video Valid */
76 #define SFB_INTERRUPT_ENABLE 0x100074 /* Enable/disable interrupts */
77 #define SFB_TCCLK 0x100078 /* TCCLK count */
78 #define SFB_VIDCLK 0x10007C /* VIDCLK count */
79 #define SFB_FB_SIZE 0x1FF000 /* frame buffer size */
80
81 #endif /* SFBREG_H */
82

  ViewVC Help
Powered by ViewVC 1.1.26