sfbreg.h Source File

Back to the index.

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

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18