Search
lxdream.org :: lxdream/src/pvr2/pvr2mmio.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2mmio.h
changeset 103:9b9cfc5855e0
next108:565de331ccec
author nkeynes
date Mon Mar 13 12:39:07 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change More rendering work in progress. Almost there now...
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/pvr2/pvr2mmio.h Mon Mar 13 12:39:07 2006 +0000
1.3 @@ -0,0 +1,80 @@
1.4 +/**
1.5 + * $Id: pvr2mmio.h,v 1.1 2006-03-13 12:39:07 nkeynes Exp $
1.6 + *
1.7 + * PVR2 (video chip) MMIO register definitions.
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +#include "mmio.h"
1.23 +
1.24 +MMIO_REGION_BEGIN( 0x005F8000, PVR2, "Power VR/2" )
1.25 + LONG_PORT( 0x000, PVRID, PORT_MR, 0x17FD11DB, "PVR2 Core ID" )
1.26 + LONG_PORT( 0x004, PVRVER, PORT_MR, 0x00000011, "PVR2 Core Version" )
1.27 + LONG_PORT( 0x008, PVRRST, PORT_MR, 0, "PVR2 Reset" )
1.28 + LONG_PORT( 0x014, RENDSTART, PORT_W, 0, "Start render" )
1.29 + LONG_PORT( 0x020, OBJBASE, PORT_MRW, 0, "Object buffer base offset" )
1.30 + LONG_PORT( 0x02C, TILEBASE, PORT_MRW, 0, "Tile buffer base offset" )
1.31 + LONG_PORT( 0x040, DISPBORDER, PORT_MRW, 0, "Border Colour (RGB)" )
1.32 + LONG_PORT( 0x044, DISPMODE, PORT_MRW, 0, "Display Mode" )
1.33 + LONG_PORT( 0x048, RENDMODE, PORT_MRW, 0, "Rendering Mode" )
1.34 + LONG_PORT( 0x04C, RENDSIZE, PORT_MRW, 0, "Rendering width (bytes/2)" )
1.35 + LONG_PORT( 0x050, DISPADDR1, PORT_MRW, 0, "Video memory base 1" )
1.36 + LONG_PORT( 0x054, DISPADDR2, PORT_MRW, 0, "Video memory base 2" )
1.37 + LONG_PORT( 0x05C, DISPSIZE, PORT_MRW, 0, "Display size" )
1.38 + LONG_PORT( 0x060, RENDADDR1, PORT_MRW, 0, "Rendering memory base 1" )
1.39 + LONG_PORT( 0x064, RENDADDR2, PORT_MRW, 0, "Rendering memory base 2" )
1.40 + LONG_PORT( 0x068, HCLIP, PORT_MRW, 0, "Horizontal clipping area" )
1.41 + LONG_PORT( 0x06C, VCLIP, PORT_MRW, 0, "Vertical clipping area" )
1.42 + LONG_PORT( 0x074, SHADOW, PORT_MRW, 0, "Shadowing" )
1.43 + LONG_PORT( 0x078, OBJCLIP, PORT_MRW, 0, "Object clip distance (float32)" )
1.44 + LONG_PORT( 0x07C, OBJCFG, PORT_MRW, 0, "Object config" )
1.45 + LONG_PORT( 0x084, TSPCLIP, PORT_MRW, 0, "Texture clip distance (float32)" )
1.46 + LONG_PORT( 0x088, BGPLANEZ, PORT_MRW, 0, "Background plane depth (float32)" )
1.47 + LONG_PORT( 0x08C, BGPLANECFG, PORT_MRW, 0, "Background plane config" )
1.48 + LONG_PORT( 0x0B0, FOGTBLCOL, PORT_MRW, 0, "Fog table colour" )
1.49 + LONG_PORT( 0x0B4, FOGVRTCOL, PORT_MRW, 0, "Fog vertex colour" )
1.50 + LONG_PORT( 0x0B8, FOGCOEFF, PORT_MRW, 0, "Fog density coefficient (float16)" )
1.51 + LONG_PORT( 0x0BC, CLAMPHI, PORT_MRW, 0, "Clamp high colour" )
1.52 + LONG_PORT( 0x0C0, CLAMPLO, PORT_MRW, 0, "Clamp low colour" )
1.53 + LONG_PORT( 0x0C4, GUNPOS, PORT_MRW, 0, "Lightgun position" )
1.54 + LONG_PORT( 0x0CC, VPOS_IRQ, PORT_MRW, 0, "Raster event position" )
1.55 + LONG_PORT( 0x0D0, DISPCFG, PORT_MRW, 0, "Sync configuration & enable" )
1.56 + LONG_PORT( 0x0D4, HBORDER, PORT_MRW, 0, "Horizontal border area" )
1.57 + LONG_PORT( 0x0D8, REFRESH, PORT_MRW, 0, "Refresh rates?" )
1.58 + LONG_PORT( 0x0DC, VBORDER, PORT_MRW, 0, "Vertical border area" )
1.59 + LONG_PORT( 0x0E0, SYNCPOS, PORT_MRW, 0, "Sync pulse timing" )
1.60 + LONG_PORT( 0x0E4, TSPCFG, PORT_MRW, 0, "Texture modulo width" )
1.61 + LONG_PORT( 0x0E8, DISPCFG2, PORT_MRW, 0, "Video configuration 2" )
1.62 + LONG_PORT( 0x0F0, VPOS, PORT_MRW, 0, "Vertical display position" )
1.63 + LONG_PORT( 0x0F4, SCALERCFG, PORT_MRW, 0, "Scaler configuration (?)" )
1.64 + LONG_PORT( 0x10C, BEAMPOS, PORT_R, 0, "Raster beam position" )
1.65 + LONG_PORT( 0x124, TAOBJPBASE, PORT_MRW, 0, "TA Object Pointer Buffer start" )
1.66 + LONG_PORT( 0x128, TAOBJBASE, PORT_MRW, 0, "TA Object Buffer start" )
1.67 + LONG_PORT( 0x12C, TAOBJPEND, PORT_MRW, 0, "TA Object Pointer Buffer end" )
1.68 + LONG_PORT( 0x130, TAOBJEND, PORT_MRW, 0, "TA Object Buffer end" )
1.69 + LONG_PORT( 0x134, TAOBJPPOS, PORT_MRW, 0, "TA Object Pointer Buffer position" )
1.70 + LONG_PORT( 0x138, TAOBJPOS, PORT_MRW, 0, "TA Object Buffer position" )
1.71 + LONG_PORT( 0x13C, TATBSZ, PORT_MRW, 0, "TA Tile Buffer size" )
1.72 + LONG_PORT( 0x140, TAOPBCFG, PORT_MRW, 0, "TA Object Pointer Buffer config" )
1.73 + LONG_PORT( 0x144, TAINIT, PORT_MRW, 0, "TA Initialize" )
1.74 + LONG_PORT( 0x164, TAOPLST, PORT_MRW, 0, "TA Object Pointer List start" )
1.75 +MMIO_REGION_END
1.76 +
1.77 +MMIO_REGION_BEGIN( 0x005F9000, PVR2PAL, "Power VR/2 CLUT Palettes" )
1.78 + LONG_PORT( 0x000, PAL0_0, PORT_MRW, 0, "Pal0 colour 0" )
1.79 +MMIO_REGION_END
1.80 +
1.81 +MMIO_REGION_BEGIN( 0x10000000, PVR2TA, "Power VR/2 TA Command port" )
1.82 + LONG_PORT( 0x000, TACMD, PORT_MRW, 0, "TA Command port" )
1.83 +MMIO_REGION_END
.