/[gxemul]/upstream/0.4.4/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 /upstream/0.4.4/src/include/sfbreg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35 - (show annotations)
Mon Oct 8 16:21:26 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 4145 byte(s)
0.4.4
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