KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
Registers

Direct PVR register and memory access More...

Topics

 Addresses and Constants
 Miscellaneous Addresses and Constants
 
 Init/Start Values
 Values to be written to registers to conform or start operations.
 
 Offsets
 PowerVR register offsets
 
 Reset Values
 Values used to reset parts of the PVR
 

Macros

#define PVR_REGISTERS_BASE   0xa05f8000
 PVR Register Base.
 
#define PVR_GET(REG)   (* ( (vuint32*)( PVR_REGISTERS_BASE + (REG) ) ) )
 Retrieve a PVR register value.
 
#define PVR_SET(REG, VALUE)   PVR_GET(REG) = (VALUE)
 Set a PVR register value.
 

Detailed Description

Direct PVR register and memory access

Macro Definition Documentation

◆ PVR_GET

#define PVR_GET ( REG)    (* ( (vuint32*)( PVR_REGISTERS_BASE + (REG) ) ) )

Retrieve a PVR register value.

Parameters
REGThe register to fetch. See Offsets.
Returns
The value of that register (32-bits)

◆ PVR_REGISTERS_BASE

#define PVR_REGISTERS_BASE   0xa05f8000

PVR Register Base.

◆ PVR_SET

#define PVR_SET ( REG,
VALUE )   PVR_GET(REG) = (VALUE)

Set a PVR register value.

Parameters
REGThe register to set. See Offsets.
VALUEThe value to set in the register (32-bits)

Referenced by pvr_set_pal_entry().