27#ifndef __DC_PVR_PVR_REGS_H
28#define __DC_PVR_PVR_REGS_H
52#define PVR_GET(REG) (* ( (vuint32*)( 0xa05f8000 + (REG) ) ) )
59#define PVR_SET(REG, VALUE) PVR_GET(REG) = (VALUE)
77#define PVR_REVISION 0x0004
78#define PVR_RESET 0x0008
80#define PVR_ISP_START 0x0014
81#define PVR_UNK_0018 0x0018
83#define PVR_ISP_VERTBUF_ADDR 0x0020
85#define PVR_ISP_TILEMAT_ADDR 0x002c
86#define PVR_SPANSORT_CFG 0x0030
88#define PVR_BORDER_COLOR 0x0040
89#define PVR_FB_CFG_1 0x0044
90#define PVR_FB_CFG_2 0x0048
91#define PVR_RENDER_MODULO 0x004c
92#define PVR_FB_ADDR 0x0050
93#define PVR_FB_IL_ADDR 0x0054
95#define PVR_FB_SIZE 0x005c
96#define PVR_RENDER_ADDR 0x0060
97#define PVR_RENDER_ADDR_2 0x0064
98#define PVR_PCLIP_X 0x0068
99#define PVR_PCLIP_Y 0x006c
101#define PVR_CHEAP_SHADOW 0x0074
102#define PVR_OBJECT_CLIP 0x0078
103#define PVR_UNK_007C 0x007c
104#define PVR_UNK_0080 0x0080
105#define PVR_TEXTURE_CLIP 0x0084
106#define PVR_BGPLANE_Z 0x0088
107#define PVR_BGPLANE_CFG 0x008c
109#define PVR_UNK_0098 0x0098
111#define PVR_UNK_00A0 0x00a0
113#define PVR_UNK_00A8 0x00a8
115#define PVR_FOG_TABLE_COLOR 0x00b0
116#define PVR_FOG_VERTEX_COLOR 0x00b4
117#define PVR_FOG_DENSITY 0x00b8
118#define PVR_COLOR_CLAMP_MAX 0x00bc
119#define PVR_COLOR_CLAMP_MIN 0x00c0
120#define PVR_GUN_POS 0x00c4
121#define PVR_HPOS_IRQ 0x00c8
122#define PVR_VPOS_IRQ 0x00cc
123#define PVR_IL_CFG 0x00d0
124#define PVR_BORDER_X 0x00d4
125#define PVR_SCAN_CLK 0x00d8
126#define PVR_BORDER_Y 0x00dc
128#define PVR_TEXTURE_MODULO 0x00e4
129#define PVR_VIDEO_CFG 0x00e8
130#define PVR_BITMAP_X 0x00ec
131#define PVR_BITMAP_Y 0x00f0
132#define PVR_SCALER_CFG 0x00f4
134#define PVR_PALETTE_CFG 0x0108
135#define PVR_SYNC_STATUS 0x010c
136#define PVR_UNK_0110 0x0110
137#define PVR_UNK_0114 0x0114
138#define PVR_UNK_0118 0x0118
140#define PVR_TA_OPB_START 0x0124
141#define PVR_TA_VERTBUF_START 0x0128
142#define PVR_TA_OPB_END 0x012c
143#define PVR_TA_VERTBUF_END 0x0130
144#define PVR_TA_OPB_POS 0x0134
145#define PVR_TA_VERTBUF_POS 0x0138
146#define PVR_TILEMAT_CFG 0x013c
147#define PVR_OPB_CFG 0x0140
148#define PVR_TA_INIT 0x0144
149#define PVR_YUV_ADDR 0x0148
150#define PVR_YUV_CFG 0x014c
151#define PVR_YUV_STAT 0x0150
153#define PVR_UNK_0160 0x0160
154#define PVR_TA_OPB_INIT 0x0164
156#define PVR_FOG_TABLE_BASE 0x0200
158#define PVR_PALETTE_TABLE_BASE 0x1000
169#define PVR_TA_INPUT 0x10000000
170#define PVR_TA_YUV_CONV 0x10800000
171#define PVR_TA_TEX_MEM 0x11000000
172#define PVR_TA_TEX_MEM_32 0x13000000
173#define PVR_RAM_BASE_32_P0 0x05000000
174#define PVR_RAM_BASE_64_P0 0x04000000
175#define PVR_RAM_BASE 0xa5000000
176#define PVR_RAM_INT_BASE 0xa4000000
178#define PVR_RAM_SIZE_MB (hardware_sys_mode(NULL) == HW_TYPE_RETAIL ? 8 : 16)
179#define PVR_RAM_SIZE (PVR_RAM_SIZE_MB*1024*1024)
181#define PVR_RAM_TOP (PVR_RAM_BASE + PVR_RAM_SIZE)
182#define PVR_RAM_INT_TOP (PVR_RAM_INT_BASE + PVR_RAM_SIZE)
197#define PVR_RESET_ALL 0xffffffff
198#define PVR_RESET_NONE 0x00000000
199#define PVR_RESET_TA 0x00000001
200#define PVR_RESET_ISPTSP 0x00000002
208#define PVR_ISP_START_GO 0xffffffff
210#define PVR_TA_INIT_GO 0x80000000
218#define PVR_TXR_STRIDE_MULT GENMASK(4, 0)
226#define PVR_SCALER_CFG_FSAA BIT(16)
228#define PVR_SCALER_CFG_VSCALE_FACTOR GENMASK(15, 0)
Dreamcast architecture specific options.
Various common macros used throughout the codebase.