KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
Offsets to registers of the PVR

Macros

#define PVR_ID   0x0000
 Chip ID. More...
 
#define PVR_REVISION   0x0004
 Chip revision. More...
 
#define PVR_RESET   0x0008
 Reset pins. More...
 
#define PVR_ISP_START   0x0014
 Start the ISP/TSP. More...
 
#define PVR_UNK_0018   0x0018
 ?? More...
 
#define PVR_ISP_VERTBUF_ADDR   0x0020
 Vertex buffer address for scene rendering. More...
 
#define PVR_ISP_TILEMAT_ADDR   0x002c
 Tile matrix address for scene rendering. More...
 
#define PVR_SPANSORT_CFG   0x0030
 ?? – write 0x101 for now More...
 
#define PVR_FB_CFG_1   0x0044
 Framebuffer config 1. More...
 
#define PVR_FB_CFG_2   0x0048
 Framebuffer config 2. More...
 
#define PVR_RENDER_MODULO   0x004c
 Render modulo. More...
 
#define PVR_RENDER_ADDR   0x0060
 Render output address. More...
 
#define PVR_RENDER_ADDR_2   0x0064
 Output for strip-buffering. More...
 
#define PVR_PCLIP_X   0x0068
 Horizontal clipping area. More...
 
#define PVR_PCLIP_Y   0x006c
 Vertical clipping area. More...
 
#define PVR_CHEAP_SHADOW   0x0074
 Cheap shadow control. More...
 
#define PVR_OBJECT_CLIP   0x0078
 Distance for polygon culling. More...
 
#define PVR_UNK_007C   0x007c
 ?? – write 0x0027df77 for now More...
 
#define PVR_UNK_0080   0x0080
 ?? – write 7 for now More...
 
#define PVR_TEXTURE_CLIP   0x0084
 Distance for texture clipping. More...
 
#define PVR_BGPLANE_Z   0x0088
 Distance for background plane. More...
 
#define PVR_BGPLANE_CFG   0x008c
 Background plane config. More...
 
#define PVR_UNK_0098   0x0098
 ?? – write 0x00800408 for now More...
 
#define PVR_UNK_00A0   0x00a0
 ?? – write 0x20 for now More...
 
#define PVR_UNK_00A8   0x00a8
 ?? – write 0x15d1c951 for now More...
 
#define PVR_FOG_TABLE_COLOR   0x00b0
 Table fog color. More...
 
#define PVR_FOG_VERTEX_COLOR   0x00b4
 Vertex fog color. More...
 
#define PVR_FOG_DENSITY   0x00b8
 Fog density coefficient. More...
 
#define PVR_COLOR_CLAMP_MAX   0x00bc
 RGB Color clamp max. More...
 
#define PVR_COLOR_CLAMP_MIN   0x00c0
 RGB Color clamp min. More...
 
#define PVR_GUN_POS   0x00c4
 Light gun position. More...
 
#define PVR_UNK_00C8   0x00c8
 ?? – write same as border H in 00d4 << 16 More...
 
#define PVR_VPOS_IRQ   0x00cc
 Vertical position IRQ. More...
 
#define PVR_TEXTURE_MODULO   0x00e4
 Output texture width modulo. More...
 
#define PVR_VIDEO_CFG   0x00e8
 Misc video config. More...
 
#define PVR_SCALER_CFG   0x00f4
 Smoothing scaler. More...
 
#define PVR_PALETTE_CFG   0x0108
 Palette format. More...
 
#define PVR_SYNC_STATUS   0x010c
 V/H blank status. More...
 
#define PVR_UNK_0110   0x0110
 ?? – write 0x93f39 for now More...
 
#define PVR_UNK_0114   0x0114
 ?? – write 0x200000 for now More...
 
#define PVR_UNK_0118   0x0118
 ?? – write 0x8040 for now More...
 
#define PVR_TA_OPB_START   0x0124
 Object Pointer Buffer start for TA usage. More...
 
#define PVR_TA_VERTBUF_START   0x0128
 Vertex buffer start for TA usage. More...
 
#define PVR_TA_OPB_END   0x012c
 OPB end for TA usage. More...
 
#define PVR_TA_VERTBUF_END   0x0130
 Vertex buffer end for TA usage. More...
 
#define PVR_TA_OPB_POS   0x0134
 Top used memory location in OPB for TA usage. More...
 
#define PVR_TA_VERTBUF_POS   0x0138
 Top used memory location in vertbuf for TA usage. More...
 
#define PVR_TILEMAT_CFG   0x013c
 Tile matrix size config. More...
 
#define PVR_OPB_CFG   0x0140
 Active lists / list size. More...
 
#define PVR_TA_INIT   0x0144
 Initialize vertex reg. params. More...
 
#define PVR_YUV_ADDR   0x0148
 YUV conversion destination. More...
 
#define PVR_YUV_CFG_1   0x014c
 YUV configuration. More...
 
#define PVR_UNK_0160   0x0160
 ?? More...
 
#define PVR_TA_OPB_INIT   0x0164
 Object pointer buffer position init. More...
 
#define PVR_FOG_TABLE_BASE   0x0200
 Base of the fog table. More...
 
#define PVR_PALETTE_TABLE_BASE   0x1000
 Base of the palette table. More...
 

Detailed Description

Macro Definition Documentation

#define PVR_BGPLANE_CFG   0x008c

Background plane config.

#define PVR_BGPLANE_Z   0x0088

Distance for background plane.

#define PVR_CHEAP_SHADOW   0x0074

Cheap shadow control.

#define PVR_COLOR_CLAMP_MAX   0x00bc

RGB Color clamp max.

#define PVR_COLOR_CLAMP_MIN   0x00c0

RGB Color clamp min.

#define PVR_FB_CFG_1   0x0044

Framebuffer config 1.

#define PVR_FB_CFG_2   0x0048

Framebuffer config 2.

#define PVR_FOG_DENSITY   0x00b8

Fog density coefficient.

#define PVR_FOG_TABLE_BASE   0x0200

Base of the fog table.

#define PVR_FOG_TABLE_COLOR   0x00b0

Table fog color.

#define PVR_FOG_VERTEX_COLOR   0x00b4

Vertex fog color.

#define PVR_GUN_POS   0x00c4

Light gun position.

#define PVR_ID   0x0000

Chip ID.

#define PVR_ISP_START   0x0014

Start the ISP/TSP.

#define PVR_ISP_TILEMAT_ADDR   0x002c

Tile matrix address for scene rendering.

#define PVR_ISP_VERTBUF_ADDR   0x0020

Vertex buffer address for scene rendering.

#define PVR_OBJECT_CLIP   0x0078

Distance for polygon culling.

#define PVR_OPB_CFG   0x0140

Active lists / list size.

#define PVR_PALETTE_CFG   0x0108

Palette format.

#define PVR_PALETTE_TABLE_BASE   0x1000

Base of the palette table.

#define PVR_PCLIP_X   0x0068

Horizontal clipping area.

#define PVR_PCLIP_Y   0x006c

Vertical clipping area.

#define PVR_RENDER_ADDR   0x0060

Render output address.

#define PVR_RENDER_ADDR_2   0x0064

Output for strip-buffering.

#define PVR_RENDER_MODULO   0x004c

Render modulo.

#define PVR_RESET   0x0008

Reset pins.

#define PVR_REVISION   0x0004

Chip revision.

#define PVR_SCALER_CFG   0x00f4

Smoothing scaler.

#define PVR_SPANSORT_CFG   0x0030

?? – write 0x101 for now

#define PVR_SYNC_STATUS   0x010c

V/H blank status.

#define PVR_TA_INIT   0x0144

Initialize vertex reg. params.

#define PVR_TA_OPB_END   0x012c

OPB end for TA usage.

#define PVR_TA_OPB_INIT   0x0164

Object pointer buffer position init.

#define PVR_TA_OPB_POS   0x0134

Top used memory location in OPB for TA usage.

#define PVR_TA_OPB_START   0x0124

Object Pointer Buffer start for TA usage.

#define PVR_TA_VERTBUF_END   0x0130

Vertex buffer end for TA usage.

#define PVR_TA_VERTBUF_POS   0x0138

Top used memory location in vertbuf for TA usage.

#define PVR_TA_VERTBUF_START   0x0128

Vertex buffer start for TA usage.

#define PVR_TEXTURE_CLIP   0x0084

Distance for texture clipping.

#define PVR_TEXTURE_MODULO   0x00e4

Output texture width modulo.

#define PVR_TILEMAT_CFG   0x013c

Tile matrix size config.

#define PVR_UNK_0018   0x0018

??

#define PVR_UNK_007C   0x007c

?? – write 0x0027df77 for now

#define PVR_UNK_0080   0x0080

?? – write 7 for now

#define PVR_UNK_0098   0x0098

?? – write 0x00800408 for now

#define PVR_UNK_00A0   0x00a0

?? – write 0x20 for now

#define PVR_UNK_00A8   0x00a8

?? – write 0x15d1c951 for now

#define PVR_UNK_00C8   0x00c8

?? – write same as border H in 00d4 << 16

#define PVR_UNK_0110   0x0110

?? – write 0x93f39 for now

#define PVR_UNK_0114   0x0114

?? – write 0x200000 for now

#define PVR_UNK_0118   0x0118

?? – write 0x8040 for now

#define PVR_UNK_0160   0x0160

??

#define PVR_VIDEO_CFG   0x00e8

Misc video config.

#define PVR_VPOS_IRQ   0x00cc

Vertical position IRQ.

#define PVR_YUV_ADDR   0x0148

YUV conversion destination.

#define PVR_YUV_CFG_1   0x014c

YUV configuration.