Search
lxdream.org :: lxdream/src/pvr2/pvr2mmio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2mmio.h
changeset 191:df4441cf3128
prev189:615b70cfd729
next193:31151fcc3cb7
author nkeynes
date Wed Aug 02 06:24:08 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Add more register masks (in line with test case)
Rename renderer registers for consistency
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2mmio.h Wed Aug 02 04:06:45 2006 +0000
1.2 +++ b/src/pvr2/pvr2mmio.h Wed Aug 02 06:24:08 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2mmio.h,v 1.4 2006-08-02 04:06:45 nkeynes Exp $
1.6 + * $Id: pvr2mmio.h,v 1.5 2006-08-02 06:24:08 nkeynes Exp $
1.7 *
1.8 * PVR2 (video chip) MMIO register definitions.
1.9 *
1.10 @@ -22,32 +22,34 @@
1.11 LONG_PORT( 0x000, PVRID, PORT_R, 0x17FD11DB, "PVR2 Core ID" )
1.12 LONG_PORT( 0x004, PVRVER, PORT_R, 0x00000011, "PVR2 Core Version" )
1.13 LONG_PORT( 0x008, PVRRST, PORT_MRW, 0, "PVR2 Reset" )
1.14 - LONG_PORT( 0x014, RENDSTART, PORT_W, 0, "Start render" )
1.15 - LONG_PORT( 0x020, OBJBASE, PORT_MRW, 0, "Object buffer base offset" )
1.16 - LONG_PORT( 0x02C, TILEBASE, PORT_MRW, 0, "Tile buffer base offset" )
1.17 + LONG_PORT( 0x014, RENDER_START, PORT_W, 0, "Start render" )
1.18 + LONG_PORT( 0x018, PVRUNK1, PORT_MRW, 0, "PVR2 unknown register 1" )
1.19 + LONG_PORT( 0x020, RENDER_POLYBASE, PORT_MRW, 0, "Object buffer base offset" )
1.20 + LONG_PORT( 0x02C, RENDER_TILEBASE, PORT_MRW, 0, "Tile buffer base offset" )
1.21 + LONG_PORT( 0x030, RENDER_TSPCFG, PORT_MRW, 0, "TSP config?" )
1.22 LONG_PORT( 0x040, DISPBORDER, PORT_MRW, 0, "Border Colour (RGB)" )
1.23 LONG_PORT( 0x044, DISPMODE, PORT_MRW, 0, "Display Mode" )
1.24 - LONG_PORT( 0x048, RENDMODE, PORT_MRW, 0, "Rendering Mode" )
1.25 - LONG_PORT( 0x04C, RENDSIZE, PORT_MRW, 0, "Rendering width (bytes/2)" )
1.26 + LONG_PORT( 0x048, RENDER_MODE, PORT_MRW, 0, "Rendering Mode" )
1.27 + LONG_PORT( 0x04C, RENDER_SIZE, PORT_MRW, 0, "Rendering width (bytes/2)" )
1.28 LONG_PORT( 0x050, DISPADDR1, PORT_MRW, 0, "Video memory base 1" )
1.29 LONG_PORT( 0x054, DISPADDR2, PORT_MRW, 0, "Video memory base 2" )
1.30 LONG_PORT( 0x05C, DISPSIZE, PORT_MRW, 0, "Display size" )
1.31 - LONG_PORT( 0x060, RENDADDR1, PORT_MRW, 0, "Rendering memory base 1" )
1.32 - LONG_PORT( 0x064, RENDADDR2, PORT_MRW, 0, "Rendering memory base 2" )
1.33 - LONG_PORT( 0x068, HCLIP, PORT_MRW, 0, "Horizontal clipping area" )
1.34 - LONG_PORT( 0x06C, VCLIP, PORT_MRW, 0, "Vertical clipping area" )
1.35 - LONG_PORT( 0x074, SHADOW, PORT_MRW, 0, "Shadowing" )
1.36 - LONG_PORT( 0x078, OBJCLIP, PORT_MRW, 0, "Object clip distance (float32)" )
1.37 - LONG_PORT( 0x07C, OBJCFG, PORT_MRW, 0, "Object config" )
1.38 - LONG_PORT( 0x084, TSPCLIP, PORT_MRW, 0, "Texture clip distance (float32)" )
1.39 - LONG_PORT( 0x088, BGPLANEZ, PORT_MRW, 0, "Background plane depth (float32)" )
1.40 - LONG_PORT( 0x08C, BGPLANE, PORT_MRW, 0, "Background plane config" )
1.41 - LONG_PORT( 0x098, ISPCFG, PORT_MRW, 0, "ISP config" )
1.42 - LONG_PORT( 0x0B0, FOGTBLCOL, PORT_MRW, 0, "Fog table colour" )
1.43 - LONG_PORT( 0x0B4, FOGVRTCOL, PORT_MRW, 0, "Fog vertex colour" )
1.44 - LONG_PORT( 0x0B8, FOGCOEFF, PORT_MRW, 0, "Fog density coefficient (float16)" )
1.45 - LONG_PORT( 0x0BC, CLAMPHI, PORT_MRW, 0, "Clamp high colour" )
1.46 - LONG_PORT( 0x0C0, CLAMPLO, PORT_MRW, 0, "Clamp low colour" )
1.47 + LONG_PORT( 0x060, RENDER_ADDR1, PORT_MRW, 0, "Rendering memory base 1" )
1.48 + LONG_PORT( 0x064, RENDER_ADDR2, PORT_MRW, 0, "Rendering memory base 2" )
1.49 + LONG_PORT( 0x068, RENDER_HCLIP, PORT_MRW, 0, "Horizontal clipping area" )
1.50 + LONG_PORT( 0x06C, RENDER_VCLIP, PORT_MRW, 0, "Vertical clipping area" )
1.51 + LONG_PORT( 0x074, RENDER_SHADOW, PORT_MRW, 0, "Shadowing" )
1.52 + LONG_PORT( 0x078, RENDER_NEARCLIP, PORT_MRW, 0, "Object clip distance (float32)" )
1.53 + LONG_PORT( 0x07C, RENDER_OBJCFG, PORT_MRW, 0, "Object config" )
1.54 + LONG_PORT( 0x084, RENDER_TSPCLIP, PORT_MRW, 0, "Texture clip distance (float32)" )
1.55 + LONG_PORT( 0x088, RENDER_FARCLIP, PORT_MRW, 0, "Background plane depth (float32)" )
1.56 + LONG_PORT( 0x08C, RENDER_BGPLANE, PORT_MRW, 0, "Background plane config" )
1.57 + LONG_PORT( 0x098, RENDER_ISPCFG, PORT_MRW, 0, "ISP config" )
1.58 + LONG_PORT( 0x0B0, RENDER_FOGTBLCOL, PORT_MRW, 0, "Fog table colour" )
1.59 + LONG_PORT( 0x0B4, RENDER_FOGVRTCOL, PORT_MRW, 0, "Fog vertex colour" )
1.60 + LONG_PORT( 0x0B8, RENDER_FOGCOEFF, PORT_MRW, 0, "Fog density coefficient (float16)" )
1.61 + LONG_PORT( 0x0BC, RENDER_CLAMPHI, PORT_MRW, 0, "Clamp high colour" )
1.62 + LONG_PORT( 0x0C0, RENDER_CLAMPLO, PORT_MRW, 0, "Clamp low colour" )
1.63 LONG_PORT( 0x0C4, GUNPOS, PORT_MRW, 0, "Lightgun position" )
1.64 LONG_PORT( 0x0C8, HPOS_IRQ, PORT_MRW, 0, "Raster horizontal event position" )
1.65 LONG_PORT( 0x0CC, VPOS_IRQ, PORT_MRW, 0, "Raster event position" )
1.66 @@ -56,11 +58,11 @@
1.67 LONG_PORT( 0x0D8, REFRESH, PORT_MRW, 0, "Refresh rates?" )
1.68 LONG_PORT( 0x0DC, VBORDER, PORT_MRW, 0, "Vertical border area" )
1.69 LONG_PORT( 0x0E0, SYNCPOS, PORT_MRW, 0, "Sync pulse timing" )
1.70 - LONG_PORT( 0x0E4, TSPCFG, PORT_MRW, 0, "Texture modulo width" )
1.71 + LONG_PORT( 0x0E4, RENDER_TEXSIZE, PORT_MRW, 0, "Texture modulo width" )
1.72 LONG_PORT( 0x0E8, DISPCFG2, PORT_MRW, 0, "Video configuration 2" )
1.73 LONG_PORT( 0x0F0, VPOS, PORT_MRW, 0, "Vertical display position" )
1.74 LONG_PORT( 0x0F4, SCALERCFG, PORT_MRW, 0, "Scaler configuration (?)" )
1.75 - LONG_PORT( 0x108, PALETTECFG, PORT_MRW, 0, "Palette configuration" )
1.76 + LONG_PORT( 0x108, RENDER_PALETTE, PORT_MRW, 0, "Palette configuration" )
1.77 LONG_PORT( 0x10C, BEAMPOS, PORT_R, 0, "Raster beam position" )
1.78 LONG_PORT( 0x124, TA_TILEBASE, PORT_MRW, 0, "TA Tile matrix start" )
1.79 LONG_PORT( 0x128, TA_POLYBASE, PORT_MRW, 0, "TA Polygon buffer start" )
.