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
 
 PVR_SCALER_CFG Values
 Definitions for the fields of the PVR_SCALER_CFG register.
 
 PVR_TEXTURE_MODULO Values
 Definitions for the contents of the PVR_TEXTURE_MODULO register.
 
 Reset Values
 Values used to reset parts of the PVR
 

Files

file  pvr_regs.h
 PVR Driver Registers.
 

Macros

#define PVR_GET(REG)
 Retrieve a PVR register value.
 
#define PVR_SET(REG, VALUE)
 Set a PVR register value.
 
#define PVR2_ADDR_STRIDE   0x02000000
 Address stride from CLXA to CLXB (registers and VRAM windows).
 
#define PVR2_GET(REG)
 Retrieve a register from the second PVR (CLXB).
 
#define PVR2_SET(REG, VALUE)
 Set a register on the second PVR (CLXB).
 
#define PVR_BCAST_SET(REG, VALUE)
 Write a PVR register to both chips (write-only broadcast).
 

Detailed Description

Direct PVR register and memory access

Macro Definition Documentation

◆ PVR2_ADDR_STRIDE

#define PVR2_ADDR_STRIDE   0x02000000

Address stride from CLXA to CLXB (registers and VRAM windows).

NAOMI 2 only. The second PVR is not mapped until pvr2_init().

◆ PVR2_GET

#define PVR2_GET ( REG)
Value:
(* ( (volatile uint32_t *)( 0xa25f8000 + (REG) ) ) )

Retrieve a register from the second PVR (CLXB).

◆ PVR2_SET

#define PVR2_SET ( REG,
VALUE )
Value:
PVR2_GET(REG) = (VALUE)
#define PVR2_GET(REG)
Retrieve a register from the second PVR (CLXB).
Definition pvr_regs.h:68

Set a register on the second PVR (CLXB).

◆ PVR_BCAST_SET

#define PVR_BCAST_SET ( REG,
VALUE )
Value:
(* ( (volatile uint32_t *)( 0xa85f8000 + (REG) ) ) = (VALUE))

Write a PVR register to both chips (write-only broadcast).

◆ PVR_GET

#define PVR_GET ( REG)
Value:
(* ( (volatile uint32_t *)( 0xa05f8000 + (REG) ) ) )

Retrieve a PVR register value.

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

Referenced by setup_pvr(), and setup_pvr().

◆ PVR_SET

#define PVR_SET ( REG,
VALUE )
Value:
PVR_GET(REG) = (VALUE)
#define PVR_GET(REG)
Retrieve a PVR register value.
Definition pvr_regs.h:52

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(), setup_pvr(), and setup_pvr().