dreamcast_pvr.h File Reference

Back to the index.

Macros
dreamcast_pvr.h File Reference

Go to the source code of this file.

Macros

#define PVRREG_FBSTART   0x05000000
 
#define PVRREG_REGSTART   0x005f8000
 
#define PVRREG_REGSIZE   0x00002000
 
#define PVRREG_ID   0x00
 
#define PVRREG_REVISION   0x04
 
#define PVR_REVISION_MINOR_MASK   0xf
 
#define PVR_REVISION_MAJOR_MASK   0xf0
 
#define PVR_REVISION_MAJOR_SHIFT   4
 
#define PVRREG_RESET   0x08
 
#define PVR_RESET_TA   0x00000001
 
#define PVR_RESET_PVR   0x00000002
 
#define PVR_RESET_BUS   0x00000004
 
#define PVRREG_STARTRENDER   0x14
 
#define PVRREG_OB_ADDR   0x20
 
#define PVR_OB_ADDR_MASK   0x00f80000
 
#define PVRREG_TILEBUF_ADDR   0x2c
 
#define PVR_TILEBUF_ADDR_MASK   0x00fffff8
 
#define PVRREG_SPANSORT   0x30
 
#define PVR_SPANSORT_SPAN0   0x00000001
 
#define PVR_SPANSORT_SPAN1   0x00000100
 
#define PVR_SPANSORT_TSP_CACHE_ENABLE   0x00010000
 
#define PVRREG_BRDCOLR   0x40
 
#define BRDCOLR_BLUE(x)   ((x) << 0)
 
#define BRDCOLR_GREEN(x)   ((x) << 8)
 
#define BRDCOLR_RED(x)   ((x) << 16)
 
#define PVRREG_DIWMODE   0x44
 
#define DIWMODE_DE   (1U << 0) /* display enable */
 
#define DIWMODE_SD   (1U << 1) /* scan double enable */
 
#define DIWMODE_COL(x)   ((x) << 2)
 
#define DIWMODE_COL_RGB555   DIWMODE_COL(0) /* RGB555, 16-bit */
 
#define DIWMODE_COL_RGB565   DIWMODE_COL(1) /* RGB565, 16-bit */
 
#define DIWMODE_COL_RGB888   DIWMODE_COL(2) /* RGB888, 24-bit */
 
#define DIWMODE_COL_ARGB888   DIWMODE_COL(3) /* RGB888, 32-bit */
 
#define DIWMODE_C   (1U << 23) /* 2x clock enable (VGA) */
 
#define DIWMODE_DE_MASK   0x00000001
 
#define DIWMODE_SD_MASK   0x00000002 /* Line double */
 
#define DIWMODE_COL_MASK   0x0000000c /* Pixel mode */
 
#define DIWMODE_COL_SHIFT   2
 
#define DIWMODE_EX_MASK   0x00000070 /* Extend bits */
 
#define DIWMODE_EX_SHIFT   4
 
#define DIWMODE_TH_MASK   0x0000ff00 /* ARGB8888 threshold */
 
#define DIWMODE_TH_SHIFT   8
 
#define DIWMODE_SL_MASK   0x003f0000 /* Strip Length */
 
#define DIWMODE_SL_SHIFT   16
 
#define DIWMODE_SE_MASK   0x00400000 /* Strip Buffer enabled */
 
#define DIWMODE_C_MASK   0x00800000 /* Clock double */
 
#define PVRREG_FB_RENDER_CFG   0x48
 
#define FB_RENDER_CFG_RENDER_MODE_MASK   0x07
 
#define FB_RENDER_CFG_DITHER   (1 << 3)
 
#define FB_RENDER_CFG_ALPHA_MASK   0x0000ff00
 
#define FB_RENDER_CFG_ALPHA_SHFIT   8
 
#define FB_RENDER_CFG_THRESHOLD_MASK   0x00ff0000
 
#define FB_RENDER_CFG_THRESHOLD_SHFIT   8
 
#define PVRREG_FB_RENDER_MODULO   0x4c
 
#define FB_RENDER_MODULO_MASK   0x000001ff
 
#define PVRREG_DIWADDRL   0x50
 
#define PVRREG_DIWADDRS   0x54
 
#define PVRREG_DIWSIZE   0x5c
 
#define DIWSIZE_DPL(x)   ((x) << 0) /* pixel data per line */
 
#define DIWSIZE_LPF(x)   ((x) << 10) /* lines per field */
 
#define DIWSIZE_MODULO(x)   ((x) << 20) /* words to skip + 1 */
 
#define DIWSIZE_MASK   0x3ff /* All fields are 10 bits. */
 
#define DIWSIZE_DPL_SHIFT   0
 
#define DIWSIZE_LPF_SHIFT   10
 
#define DIWSIZE_MODULO_SHIFT   20
 
#define PVRREG_FB_RENDER_ADDR1   0x60 /* Odd interlace lines */
 
#define PVRREG_FB_RENDER_ADDR2   0x64 /* Even interlace lines */
 
#define PVRREG_FB_CLIP_X   0x68 /* horizontal pixel clipping area - 1 */
 
#define PVRREG_FB_CLIP_Y   0x6c /* vertical pixel clipping area - 1 */
 
#define FB_CLIP_XY_MIN_MASK   0x000007ff
 
#define FB_CLIP_XY_MAX_MASK   0x07ff0000 /* e.g. 640 for x */
 
#define FB_CLIP_XY_MAX_SHIFT   16
 
#define PVRREG_SHADOW   0x74
 
#define SHADOW_INTENSITY_MASK   0x000000ff
 
#define SHADOW_ENABLE   (1 << 8)
 
#define PVRREG_OBJECT_CLIP   0x78 /* float, position of polygon culling */
 
#define PVRREG_OB_CFG   0x7c /* TODO */
 
#define PVRREG_UNKNOWN_80   0x80
 
#define PVRREG_UNKNOWN_84   0x84
 
#define PVRREG_BGPLANE_Z   0x88 /* float */
 
#define PVRREG_BGPLANE_CFG   0x8c /* TODO */
 
#define PVRREG_ISP_CFG   0x98 /* TODO */
 
#define PVRREG_VRAM_CFG1   0xa0
 
#define VRAM_CFG1_GOOD_REFRESH_VALUE   0x20
 
#define PVRREG_VRAM_CFG2   0xa4
 
#define VRAM_CFG2_UNKNOWN_MAGIC   0x0000001f
 
#define PVRREG_VRAM_CFG3   0xa8
 
#define VRAM_CFG3_UNKNOWN_MAGIC   0x15d1c951
 
#define PVRREG_FOG_TABLE_COL   0xb0
 
#define PVRREG_FOG_VERTEX_COL   0xb4
 
#define PVRREG_FOG_DENSITY   0xb8 /* TODO */
 
#define PVRREG_CLAMP_MAX   0xbc /* maximum color */
 
#define PVRREG_CLAMP_MIN   0xc0 /* minimum color */
 
#define PVRREG_HPOS_IRQ   0xc8 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */
 
#define PVRREG_RASEVTPOS   0xcc /* vpos_irq according to powervr-reg.txt */
 
#define RASEVTPOS_POS2_MASK   0x000003ff
 
#define RASEVTPOS_POS1_MASK   0x03ff0000
 
#define RASEVTPOS_POS1_SHIFT   16
 
#define RASEVTPOS_BOTTOM(x)   ((x) << 0)
 
#define RASEVTPOS_TOP(x)   ((x) << 16)
 
#define PVRREG_SYNCCONF   0xd0
 
#define SYNCCONF_VP   (1U << 0) /* V-sync polarity */
 
#define SYNCCONF_HP   (1U << 1) /* H-sync polarity */
 
#define SYNCCONF_I   (1U << 4) /* interlace */
 
#define SYNCCONF_BC(x)   (1U << 6) /* broadcast standard */
 
#define SYNCCONF_VO   (1U << 8) /* video output enable */
 
#define SYNCCONF_VO_MASK   0x00000100
 
#define SYNCCONF_BC_MASK   0x000000c0
 
#define SYNCCONF_BC_SHIFT   6
 
#define SYNCCONF_BC_VGA   0
 
#define SYNCCONF_BC_NTSC   1
 
#define SYNCCONF_BC_PAL   2
 
#define SYNCCONF_I_MASK   0x00000010
 
#define SYNCCONF_HP_MASK   0x00000004 /* Positive H-sync */
 
#define SYNCCONF_VP_MASK   0x00000002 /* Positive V-sync */
 
#define PVRREG_BRDHORZ   0xd4
 
#define BRDHORZ_STOP_MASK   0x0000ffff
 
#define BRDHORZ_START_MASK   0xffff0000
 
#define BRDHORZ_START_SHIFT   16
 
#define BRDHORZ_STOP(x)   ((x) << 0)
 
#define BRDHORZ_START(x)   ((x) << 16)
 
#define PVRREG_SYNCSIZE   0xd8
 
#define SYNCSIZE_H_MASK   0x0000ffff
 
#define SYNCSIZE_V_MASK   0xffff0000
 
#define SYNCSIZE_V_SHIFT   16
 
#define SYNCSIZE_H(x)   ((x) << 0)
 
#define SYNCSIZE_V(x)   ((x) << 16)
 
#define PVRREG_BRDVERT   0xdc
 
#define BRDVERT_STOP_MASK   0x0000ffff
 
#define BRDVERT_START_MASK   0xffff0000
 
#define BRDVERT_START_SHIFT   16
 
#define BRDVERT_STOP(x)   ((x) << 0)
 
#define BRDVERT_START(x)   ((x) << 16)
 
#define PVRREG_SYNCH_WIDTH   0xe0 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */
 
#define PVRREG_TSP_CFG   0xe4 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */
 
#define TSP_CFG_CBE   (1 << 17) /* codebook enable */
 
#define TSP_CFG_IE   (1 << 16) /* index enable */
 
#define TSP_CFG_MODULO_MASK   0x1f /* modulo */
 
#define PVRREG_DIWCONF   0xe8
 
#define DIWCONF_BLANK   (1U << 3) /* blank screen */
 
#define DIWCONF_LR   (1U << 8) /* low-res (320 horizontal) */
 
#define DIWCONF_MAGIC_MASK   0x003f0000
 
#define DIWCONF_MAGIC   (22 << 16)
 
#define PVRREG_DIWHSTRT   0xec
 
#define DIWVSTRT_HPOS_MASK   0x000003ff
 
#define PVRREG_DIWVSTRT   0xf0
 
#define DIWVSTRT_V1_MASK   0x000003ff
 
#define DIWVSTRT_V2_MASK   0x03ff0000
 
#define DIWVSTRT_V2_SHIFT   16
 
#define DIWVSTRT_V1(x)   ((x) << 0)
 
#define DIWVSTRT_V2(x)   ((x) << 16)
 
#define PVRREG_SCALER_CFG   0xf4
 
#define PVRREG_PALETTE_CFG   0x108
 
#define PVR_PALETTE_CFG_MODE_MASK   0x3
 
#define PVR_PALETTE_CFG_MODE_ARGB1555   0x0
 
#define PVR_PALETTE_CFG_MODE_RGB565   0x1
 
#define PVR_PALETTE_CFG_MODE_ARGB4444   0x2
 
#define PVR_PALETTE_CFG_MODE_ARGB8888   0x3
 
#define PVRREG_SYNC_STAT   0x10c
 
#define PVR_SYNC_STAT_VPOS_MASK   0x000003ff
 
#define PVR_SYNC_STAT_INTERLACE_FIELD_EVEN   0x00000400
 
#define PVR_SYNC_STAT_HBLANK   0x00001000
 
#define PVR_SYNC_STAT_VBLANK   0x00002000
 
#define PVRREG_MAGIC_110   0x110
 
#define MAGIC_110_VALUE   0x93f39
 
#define PVRREG_TA_LUMINANCE   0x118 /* todo */
 
#define PVRREG_TA_OPB_START   0x124
 
#define TA_OPB_START_MASK   0x00ffff80
 
#define PVRREG_TA_OB_START   0x128
 
#define TA_OB_START_MASK   0x00fffff8
 
#define PVRREG_TA_OPB_END   0x12c
 
#define TA_OPB_END_MASK   0x00ffff80
 
#define PVRREG_TA_OB_END   0x130
 
#define TA_OB_END_MASK   0x00fffff8
 
#define PVRREG_TA_OPB_POS   0x134
 
#define TA_OPB_POS_MASK   0x00ffff80
 
#define PVRREG_TA_OB_POS   0x138
 
#define TA_OB_POS_MASK   0x00fffff8
 
#define PVRREG_TILEBUF_SIZE   0x13c
 
#define TILEBUF_SIZE_HEIGHT_MASK   0xffff0000
 
#define TILEBUF_SIZE_HEIGHT_SHIFT   16
 
#define TILEBUF_SIZE_WIDTH_MASK   0x0000ffff
 
#define PVRREG_TA_OPB_CFG   0x140
 
#define TA_OPB_CFG_OPAQUEPOLY_MASK   0x00000003
 
#define TA_OPB_CFG_OPAQUEMOD_MASK   0x00000030
 
#define TA_OPB_CFG_OPAQUEMOD_SHIFT   4
 
#define TA_OPB_CFG_TRANSPOLY_MASK   0x00000300
 
#define TA_OPB_CFG_TRANSPOLY_SHIFT   8
 
#define TA_OPB_CFG_TRANSMOD_MASK   0x00003000
 
#define TA_OPB_CFG_TRANSMOD_SHIFT   12
 
#define TA_OPB_CFG_PUNCHTHROUGH_MASK   0x00030000
 
#define TA_OPB_CFG_PUNCHTHROUGH_SHIFT   16
 
#define TA_OPB_CFG_OPBDIR   0x00100000
 
#define PVRREG_TA_INIT   0x144
 
#define PVR_TA_INIT   0x80000000
 
#define PVRREG_YUV_ADDR   0x148
 
#define PVR_YUV_ADDR_MASK   0x00ffffe0
 
#define PVRREG_YUV_CFG1   0x14c
 
#define PVRREG_YUV_STAT   0x150
 
#define PVR_YUV_STAT_BLOCKS_MASK   0x1fff
 
#define PVRREG_TA_OPL_REINIT   0x160
 
#define PVR_TA_OPL_REINIT   0x80000000
 
#define PVRREG_TA_OPL_INIT   0x164
 
#define PVR_TA_OPL_INIT_MASK   0x00ffff80
 
#define PVRREG_FOG_TABLE   0x0200
 
#define PVR_FOG_TABLE_SIZE   0x0200
 
#define PVRREG_PALETTE   0x1000
 
#define PVR_PALETTE_SIZE   0x1000
 

Macro Definition Documentation

◆ BRDCOLR_BLUE

#define BRDCOLR_BLUE (   x)    ((x) << 0)

Definition at line 114 of file dreamcast_pvr.h.

◆ BRDCOLR_GREEN

#define BRDCOLR_GREEN (   x)    ((x) << 8)

Definition at line 115 of file dreamcast_pvr.h.

◆ BRDCOLR_RED

#define BRDCOLR_RED (   x)    ((x) << 16)

Definition at line 116 of file dreamcast_pvr.h.

◆ BRDHORZ_START

#define BRDHORZ_START (   x)    ((x) << 16)

Definition at line 247 of file dreamcast_pvr.h.

◆ BRDHORZ_START_MASK

#define BRDHORZ_START_MASK   0xffff0000

Definition at line 244 of file dreamcast_pvr.h.

◆ BRDHORZ_START_SHIFT

#define BRDHORZ_START_SHIFT   16

Definition at line 245 of file dreamcast_pvr.h.

◆ BRDHORZ_STOP

#define BRDHORZ_STOP (   x)    ((x) << 0)

Definition at line 246 of file dreamcast_pvr.h.

◆ BRDHORZ_STOP_MASK

#define BRDHORZ_STOP_MASK   0x0000ffff

Definition at line 243 of file dreamcast_pvr.h.

◆ BRDVERT_START

#define BRDVERT_START (   x)    ((x) << 16)

Definition at line 261 of file dreamcast_pvr.h.

◆ BRDVERT_START_MASK

#define BRDVERT_START_MASK   0xffff0000

Definition at line 258 of file dreamcast_pvr.h.

◆ BRDVERT_START_SHIFT

#define BRDVERT_START_SHIFT   16

Definition at line 259 of file dreamcast_pvr.h.

◆ BRDVERT_STOP

#define BRDVERT_STOP (   x)    ((x) << 0)

Definition at line 260 of file dreamcast_pvr.h.

◆ BRDVERT_STOP_MASK

#define BRDVERT_STOP_MASK   0x0000ffff

Definition at line 257 of file dreamcast_pvr.h.

◆ DIWCONF_BLANK

#define DIWCONF_BLANK   (1U << 3) /* blank screen */

Definition at line 271 of file dreamcast_pvr.h.

◆ DIWCONF_LR

#define DIWCONF_LR   (1U << 8) /* low-res (320 horizontal) */

Definition at line 272 of file dreamcast_pvr.h.

◆ DIWCONF_MAGIC

#define DIWCONF_MAGIC   (22 << 16)

Definition at line 274 of file dreamcast_pvr.h.

◆ DIWCONF_MAGIC_MASK

#define DIWCONF_MAGIC_MASK   0x003f0000

Definition at line 273 of file dreamcast_pvr.h.

◆ DIWMODE_C

#define DIWMODE_C   (1U << 23) /* 2x clock enable (VGA) */

Definition at line 126 of file dreamcast_pvr.h.

◆ DIWMODE_C_MASK

#define DIWMODE_C_MASK   0x00800000 /* Clock double */

Definition at line 138 of file dreamcast_pvr.h.

◆ DIWMODE_COL

#define DIWMODE_COL (   x)    ((x) << 2)

Definition at line 121 of file dreamcast_pvr.h.

◆ DIWMODE_COL_ARGB888

#define DIWMODE_COL_ARGB888   DIWMODE_COL(3) /* RGB888, 32-bit */

Definition at line 125 of file dreamcast_pvr.h.

◆ DIWMODE_COL_MASK

#define DIWMODE_COL_MASK   0x0000000c /* Pixel mode */

Definition at line 129 of file dreamcast_pvr.h.

◆ DIWMODE_COL_RGB555

#define DIWMODE_COL_RGB555   DIWMODE_COL(0) /* RGB555, 16-bit */

Definition at line 122 of file dreamcast_pvr.h.

◆ DIWMODE_COL_RGB565

#define DIWMODE_COL_RGB565   DIWMODE_COL(1) /* RGB565, 16-bit */

Definition at line 123 of file dreamcast_pvr.h.

◆ DIWMODE_COL_RGB888

#define DIWMODE_COL_RGB888   DIWMODE_COL(2) /* RGB888, 24-bit */

Definition at line 124 of file dreamcast_pvr.h.

◆ DIWMODE_COL_SHIFT

#define DIWMODE_COL_SHIFT   2

Definition at line 130 of file dreamcast_pvr.h.

◆ DIWMODE_DE

#define DIWMODE_DE   (1U << 0) /* display enable */

Definition at line 119 of file dreamcast_pvr.h.

◆ DIWMODE_DE_MASK

#define DIWMODE_DE_MASK   0x00000001

Definition at line 127 of file dreamcast_pvr.h.

◆ DIWMODE_EX_MASK

#define DIWMODE_EX_MASK   0x00000070 /* Extend bits */

Definition at line 131 of file dreamcast_pvr.h.

◆ DIWMODE_EX_SHIFT

#define DIWMODE_EX_SHIFT   4

Definition at line 132 of file dreamcast_pvr.h.

◆ DIWMODE_SD

#define DIWMODE_SD   (1U << 1) /* scan double enable */

Definition at line 120 of file dreamcast_pvr.h.

◆ DIWMODE_SD_MASK

#define DIWMODE_SD_MASK   0x00000002 /* Line double */

Definition at line 128 of file dreamcast_pvr.h.

◆ DIWMODE_SE_MASK

#define DIWMODE_SE_MASK   0x00400000 /* Strip Buffer enabled */

Definition at line 137 of file dreamcast_pvr.h.

◆ DIWMODE_SL_MASK

#define DIWMODE_SL_MASK   0x003f0000 /* Strip Length */

Definition at line 135 of file dreamcast_pvr.h.

◆ DIWMODE_SL_SHIFT

#define DIWMODE_SL_SHIFT   16

Definition at line 136 of file dreamcast_pvr.h.

◆ DIWMODE_TH_MASK

#define DIWMODE_TH_MASK   0x0000ff00 /* ARGB8888 threshold */

Definition at line 133 of file dreamcast_pvr.h.

◆ DIWMODE_TH_SHIFT

#define DIWMODE_TH_SHIFT   8

Definition at line 134 of file dreamcast_pvr.h.

◆ DIWSIZE_DPL

#define DIWSIZE_DPL (   x)    ((x) << 0) /* pixel data per line */

Definition at line 166 of file dreamcast_pvr.h.

◆ DIWSIZE_DPL_SHIFT

#define DIWSIZE_DPL_SHIFT   0

Definition at line 170 of file dreamcast_pvr.h.

◆ DIWSIZE_LPF

#define DIWSIZE_LPF (   x)    ((x) << 10) /* lines per field */

Definition at line 167 of file dreamcast_pvr.h.

◆ DIWSIZE_LPF_SHIFT

#define DIWSIZE_LPF_SHIFT   10

Definition at line 171 of file dreamcast_pvr.h.

◆ DIWSIZE_MASK

#define DIWSIZE_MASK   0x3ff /* All fields are 10 bits. */

Definition at line 169 of file dreamcast_pvr.h.

◆ DIWSIZE_MODULO

#define DIWSIZE_MODULO (   x)    ((x) << 20) /* words to skip + 1 */

Definition at line 168 of file dreamcast_pvr.h.

◆ DIWSIZE_MODULO_SHIFT

#define DIWSIZE_MODULO_SHIFT   20

Definition at line 172 of file dreamcast_pvr.h.

◆ DIWVSTRT_HPOS_MASK

#define DIWVSTRT_HPOS_MASK   0x000003ff

Definition at line 277 of file dreamcast_pvr.h.

◆ DIWVSTRT_V1

#define DIWVSTRT_V1 (   x)    ((x) << 0)

Definition at line 283 of file dreamcast_pvr.h.

◆ DIWVSTRT_V1_MASK

#define DIWVSTRT_V1_MASK   0x000003ff

Definition at line 280 of file dreamcast_pvr.h.

◆ DIWVSTRT_V2

#define DIWVSTRT_V2 (   x)    ((x) << 16)

Definition at line 284 of file dreamcast_pvr.h.

◆ DIWVSTRT_V2_MASK

#define DIWVSTRT_V2_MASK   0x03ff0000

Definition at line 281 of file dreamcast_pvr.h.

◆ DIWVSTRT_V2_SHIFT

#define DIWVSTRT_V2_SHIFT   16

Definition at line 282 of file dreamcast_pvr.h.

◆ FB_CLIP_XY_MAX_MASK

#define FB_CLIP_XY_MAX_MASK   0x07ff0000 /* e.g. 640 for x */

Definition at line 181 of file dreamcast_pvr.h.

◆ FB_CLIP_XY_MAX_SHIFT

#define FB_CLIP_XY_MAX_SHIFT   16

Definition at line 182 of file dreamcast_pvr.h.

◆ FB_CLIP_XY_MIN_MASK

#define FB_CLIP_XY_MIN_MASK   0x000007ff

Definition at line 180 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_ALPHA_MASK

#define FB_RENDER_CFG_ALPHA_MASK   0x0000ff00

Definition at line 152 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_ALPHA_SHFIT

#define FB_RENDER_CFG_ALPHA_SHFIT   8

Definition at line 153 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_DITHER

#define FB_RENDER_CFG_DITHER   (1 << 3)

Definition at line 151 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_RENDER_MODE_MASK

#define FB_RENDER_CFG_RENDER_MODE_MASK   0x07

Definition at line 141 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_THRESHOLD_MASK

#define FB_RENDER_CFG_THRESHOLD_MASK   0x00ff0000

Definition at line 154 of file dreamcast_pvr.h.

◆ FB_RENDER_CFG_THRESHOLD_SHFIT

#define FB_RENDER_CFG_THRESHOLD_SHFIT   8

Definition at line 155 of file dreamcast_pvr.h.

◆ FB_RENDER_MODULO_MASK

#define FB_RENDER_MODULO_MASK   0x000001ff

Definition at line 158 of file dreamcast_pvr.h.

◆ MAGIC_110_VALUE

#define MAGIC_110_VALUE   0x93f39

Definition at line 302 of file dreamcast_pvr.h.

◆ PVR_FOG_TABLE_SIZE

#define PVR_FOG_TABLE_SIZE   0x0200

Definition at line 362 of file dreamcast_pvr.h.

◆ PVR_OB_ADDR_MASK

#define PVR_OB_ADDR_MASK   0x00f80000

Definition at line 103 of file dreamcast_pvr.h.

◆ PVR_PALETTE_CFG_MODE_ARGB1555

#define PVR_PALETTE_CFG_MODE_ARGB1555   0x0

Definition at line 290 of file dreamcast_pvr.h.

◆ PVR_PALETTE_CFG_MODE_ARGB4444

#define PVR_PALETTE_CFG_MODE_ARGB4444   0x2

Definition at line 292 of file dreamcast_pvr.h.

◆ PVR_PALETTE_CFG_MODE_ARGB8888

#define PVR_PALETTE_CFG_MODE_ARGB8888   0x3

Definition at line 293 of file dreamcast_pvr.h.

◆ PVR_PALETTE_CFG_MODE_MASK

#define PVR_PALETTE_CFG_MODE_MASK   0x3

Definition at line 289 of file dreamcast_pvr.h.

◆ PVR_PALETTE_CFG_MODE_RGB565

#define PVR_PALETTE_CFG_MODE_RGB565   0x1

Definition at line 291 of file dreamcast_pvr.h.

◆ PVR_PALETTE_SIZE

#define PVR_PALETTE_SIZE   0x1000

Definition at line 365 of file dreamcast_pvr.h.

◆ PVR_RESET_BUS

#define PVR_RESET_BUS   0x00000004

Definition at line 94 of file dreamcast_pvr.h.

◆ PVR_RESET_PVR

#define PVR_RESET_PVR   0x00000002

Definition at line 93 of file dreamcast_pvr.h.

◆ PVR_RESET_TA

#define PVR_RESET_TA   0x00000001

Definition at line 92 of file dreamcast_pvr.h.

◆ PVR_REVISION_MAJOR_MASK

#define PVR_REVISION_MAJOR_MASK   0xf0

Definition at line 88 of file dreamcast_pvr.h.

◆ PVR_REVISION_MAJOR_SHIFT

#define PVR_REVISION_MAJOR_SHIFT   4

Definition at line 89 of file dreamcast_pvr.h.

◆ PVR_REVISION_MINOR_MASK

#define PVR_REVISION_MINOR_MASK   0xf

Definition at line 87 of file dreamcast_pvr.h.

◆ PVR_SPANSORT_SPAN0

#define PVR_SPANSORT_SPAN0   0x00000001

Definition at line 109 of file dreamcast_pvr.h.

◆ PVR_SPANSORT_SPAN1

#define PVR_SPANSORT_SPAN1   0x00000100

Definition at line 110 of file dreamcast_pvr.h.

◆ PVR_SPANSORT_TSP_CACHE_ENABLE

#define PVR_SPANSORT_TSP_CACHE_ENABLE   0x00010000

Definition at line 111 of file dreamcast_pvr.h.

◆ PVR_SYNC_STAT_HBLANK

#define PVR_SYNC_STAT_HBLANK   0x00001000

Definition at line 298 of file dreamcast_pvr.h.

◆ PVR_SYNC_STAT_INTERLACE_FIELD_EVEN

#define PVR_SYNC_STAT_INTERLACE_FIELD_EVEN   0x00000400

Definition at line 297 of file dreamcast_pvr.h.

◆ PVR_SYNC_STAT_VBLANK

#define PVR_SYNC_STAT_VBLANK   0x00002000

Definition at line 299 of file dreamcast_pvr.h.

◆ PVR_SYNC_STAT_VPOS_MASK

#define PVR_SYNC_STAT_VPOS_MASK   0x000003ff

Definition at line 296 of file dreamcast_pvr.h.

◆ PVR_TA_INIT

#define PVR_TA_INIT   0x80000000

Definition at line 342 of file dreamcast_pvr.h.

◆ PVR_TA_OPL_INIT_MASK

#define PVR_TA_OPL_INIT_MASK   0x00ffff80

Definition at line 359 of file dreamcast_pvr.h.

◆ PVR_TA_OPL_REINIT

#define PVR_TA_OPL_REINIT   0x80000000

Definition at line 355 of file dreamcast_pvr.h.

◆ PVR_TILEBUF_ADDR_MASK

#define PVR_TILEBUF_ADDR_MASK   0x00fffff8

Definition at line 106 of file dreamcast_pvr.h.

◆ PVR_YUV_ADDR_MASK

#define PVR_YUV_ADDR_MASK   0x00ffffe0

Definition at line 345 of file dreamcast_pvr.h.

◆ PVR_YUV_STAT_BLOCKS_MASK

#define PVR_YUV_STAT_BLOCKS_MASK   0x1fff

Definition at line 352 of file dreamcast_pvr.h.

◆ PVRREG_BGPLANE_CFG

#define PVRREG_BGPLANE_CFG   0x8c /* TODO */

Definition at line 197 of file dreamcast_pvr.h.

◆ PVRREG_BGPLANE_Z

#define PVRREG_BGPLANE_Z   0x88 /* float */

Definition at line 195 of file dreamcast_pvr.h.

◆ PVRREG_BRDCOLR

#define PVRREG_BRDCOLR   0x40

Definition at line 113 of file dreamcast_pvr.h.

◆ PVRREG_BRDHORZ

#define PVRREG_BRDHORZ   0xd4

Definition at line 242 of file dreamcast_pvr.h.

◆ PVRREG_BRDVERT

#define PVRREG_BRDVERT   0xdc

Definition at line 256 of file dreamcast_pvr.h.

◆ PVRREG_CLAMP_MAX

#define PVRREG_CLAMP_MAX   0xbc /* maximum color */

Definition at line 214 of file dreamcast_pvr.h.

◆ PVRREG_CLAMP_MIN

#define PVRREG_CLAMP_MIN   0xc0 /* minimum color */

Definition at line 215 of file dreamcast_pvr.h.

◆ PVRREG_DIWADDRL

#define PVRREG_DIWADDRL   0x50

Definition at line 161 of file dreamcast_pvr.h.

◆ PVRREG_DIWADDRS

#define PVRREG_DIWADDRS   0x54

Definition at line 163 of file dreamcast_pvr.h.

◆ PVRREG_DIWCONF

#define PVRREG_DIWCONF   0xe8

Definition at line 270 of file dreamcast_pvr.h.

◆ PVRREG_DIWHSTRT

#define PVRREG_DIWHSTRT   0xec

Definition at line 276 of file dreamcast_pvr.h.

◆ PVRREG_DIWMODE

#define PVRREG_DIWMODE   0x44

Definition at line 118 of file dreamcast_pvr.h.

◆ PVRREG_DIWSIZE

#define PVRREG_DIWSIZE   0x5c

Definition at line 165 of file dreamcast_pvr.h.

◆ PVRREG_DIWVSTRT

#define PVRREG_DIWVSTRT   0xf0

Definition at line 279 of file dreamcast_pvr.h.

◆ PVRREG_FB_CLIP_X

#define PVRREG_FB_CLIP_X   0x68 /* horizontal pixel clipping area - 1 */

Definition at line 178 of file dreamcast_pvr.h.

◆ PVRREG_FB_CLIP_Y

#define PVRREG_FB_CLIP_Y   0x6c /* vertical pixel clipping area - 1 */

Definition at line 179 of file dreamcast_pvr.h.

◆ PVRREG_FB_RENDER_ADDR1

#define PVRREG_FB_RENDER_ADDR1   0x60 /* Odd interlace lines */

Definition at line 174 of file dreamcast_pvr.h.

◆ PVRREG_FB_RENDER_ADDR2

#define PVRREG_FB_RENDER_ADDR2   0x64 /* Even interlace lines */

Definition at line 176 of file dreamcast_pvr.h.

◆ PVRREG_FB_RENDER_CFG

#define PVRREG_FB_RENDER_CFG   0x48

Definition at line 140 of file dreamcast_pvr.h.

◆ PVRREG_FB_RENDER_MODULO

#define PVRREG_FB_RENDER_MODULO   0x4c

Definition at line 157 of file dreamcast_pvr.h.

◆ PVRREG_FBSTART

#define PVRREG_FBSTART   0x05000000

Definition at line 78 of file dreamcast_pvr.h.

◆ PVRREG_FOG_DENSITY

#define PVRREG_FOG_DENSITY   0xb8 /* TODO */

Definition at line 212 of file dreamcast_pvr.h.

◆ PVRREG_FOG_TABLE

#define PVRREG_FOG_TABLE   0x0200

Definition at line 361 of file dreamcast_pvr.h.

◆ PVRREG_FOG_TABLE_COL

#define PVRREG_FOG_TABLE_COL   0xb0

Definition at line 210 of file dreamcast_pvr.h.

◆ PVRREG_FOG_VERTEX_COL

#define PVRREG_FOG_VERTEX_COL   0xb4

Definition at line 211 of file dreamcast_pvr.h.

◆ PVRREG_HPOS_IRQ

#define PVRREG_HPOS_IRQ   0xc8 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */

Definition at line 217 of file dreamcast_pvr.h.

◆ PVRREG_ID

#define PVRREG_ID   0x00

Definition at line 84 of file dreamcast_pvr.h.

◆ PVRREG_ISP_CFG

#define PVRREG_ISP_CFG   0x98 /* TODO */

Definition at line 199 of file dreamcast_pvr.h.

◆ PVRREG_MAGIC_110

#define PVRREG_MAGIC_110   0x110

Definition at line 301 of file dreamcast_pvr.h.

◆ PVRREG_OB_ADDR

#define PVRREG_OB_ADDR   0x20

Definition at line 98 of file dreamcast_pvr.h.

◆ PVRREG_OB_CFG

#define PVRREG_OB_CFG   0x7c /* TODO */

Definition at line 190 of file dreamcast_pvr.h.

◆ PVRREG_OBJECT_CLIP

#define PVRREG_OBJECT_CLIP   0x78 /* float, position of polygon culling */

Definition at line 188 of file dreamcast_pvr.h.

◆ PVRREG_PALETTE

#define PVRREG_PALETTE   0x1000

Definition at line 364 of file dreamcast_pvr.h.

◆ PVRREG_PALETTE_CFG

#define PVRREG_PALETTE_CFG   0x108

Definition at line 288 of file dreamcast_pvr.h.

◆ PVRREG_RASEVTPOS

#define PVRREG_RASEVTPOS   0xcc /* vpos_irq according to powervr-reg.txt */

Definition at line 219 of file dreamcast_pvr.h.

◆ PVRREG_REGSIZE

#define PVRREG_REGSIZE   0x00002000

Definition at line 81 of file dreamcast_pvr.h.

◆ PVRREG_REGSTART

#define PVRREG_REGSTART   0x005f8000

Definition at line 79 of file dreamcast_pvr.h.

◆ PVRREG_RESET

#define PVRREG_RESET   0x08

Definition at line 91 of file dreamcast_pvr.h.

◆ PVRREG_REVISION

#define PVRREG_REVISION   0x04

Definition at line 86 of file dreamcast_pvr.h.

◆ PVRREG_SCALER_CFG

#define PVRREG_SCALER_CFG   0xf4

Definition at line 286 of file dreamcast_pvr.h.

◆ PVRREG_SHADOW

#define PVRREG_SHADOW   0x74

Definition at line 184 of file dreamcast_pvr.h.

◆ PVRREG_SPANSORT

#define PVRREG_SPANSORT   0x30

Definition at line 108 of file dreamcast_pvr.h.

◆ PVRREG_STARTRENDER

#define PVRREG_STARTRENDER   0x14

Definition at line 96 of file dreamcast_pvr.h.

◆ PVRREG_SYNC_STAT

#define PVRREG_SYNC_STAT   0x10c

Definition at line 295 of file dreamcast_pvr.h.

◆ PVRREG_SYNCCONF

#define PVRREG_SYNCCONF   0xd0

Definition at line 226 of file dreamcast_pvr.h.

◆ PVRREG_SYNCH_WIDTH

#define PVRREG_SYNCH_WIDTH   0xe0 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */

Definition at line 263 of file dreamcast_pvr.h.

◆ PVRREG_SYNCSIZE

#define PVRREG_SYNCSIZE   0xd8

Definition at line 249 of file dreamcast_pvr.h.

◆ PVRREG_TA_INIT

#define PVRREG_TA_INIT   0x144

Definition at line 341 of file dreamcast_pvr.h.

◆ PVRREG_TA_LUMINANCE

#define PVRREG_TA_LUMINANCE   0x118 /* todo */

Definition at line 304 of file dreamcast_pvr.h.

◆ PVRREG_TA_OB_END

#define PVRREG_TA_OB_END   0x130

Definition at line 315 of file dreamcast_pvr.h.

◆ PVRREG_TA_OB_POS

#define PVRREG_TA_OB_POS   0x138

Definition at line 321 of file dreamcast_pvr.h.

◆ PVRREG_TA_OB_START

#define PVRREG_TA_OB_START   0x128

Definition at line 309 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPB_CFG

#define PVRREG_TA_OPB_CFG   0x140

Definition at line 329 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPB_END

#define PVRREG_TA_OPB_END   0x12c

Definition at line 312 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPB_POS

#define PVRREG_TA_OPB_POS   0x134

Definition at line 318 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPB_START

#define PVRREG_TA_OPB_START   0x124

Definition at line 306 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPL_INIT

#define PVRREG_TA_OPL_INIT   0x164

Definition at line 357 of file dreamcast_pvr.h.

◆ PVRREG_TA_OPL_REINIT

#define PVRREG_TA_OPL_REINIT   0x160

Definition at line 354 of file dreamcast_pvr.h.

◆ PVRREG_TILEBUF_ADDR

#define PVRREG_TILEBUF_ADDR   0x2c

Definition at line 105 of file dreamcast_pvr.h.

◆ PVRREG_TILEBUF_SIZE

#define PVRREG_TILEBUF_SIZE   0x13c

Definition at line 324 of file dreamcast_pvr.h.

◆ PVRREG_TSP_CFG

#define PVRREG_TSP_CFG   0xe4 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */

Definition at line 265 of file dreamcast_pvr.h.

◆ PVRREG_UNKNOWN_80

#define PVRREG_UNKNOWN_80   0x80

Definition at line 192 of file dreamcast_pvr.h.

◆ PVRREG_UNKNOWN_84

#define PVRREG_UNKNOWN_84   0x84

Definition at line 193 of file dreamcast_pvr.h.

◆ PVRREG_VRAM_CFG1

#define PVRREG_VRAM_CFG1   0xa0

Definition at line 201 of file dreamcast_pvr.h.

◆ PVRREG_VRAM_CFG2

#define PVRREG_VRAM_CFG2   0xa4

Definition at line 204 of file dreamcast_pvr.h.

◆ PVRREG_VRAM_CFG3

#define PVRREG_VRAM_CFG3   0xa8

Definition at line 207 of file dreamcast_pvr.h.

◆ PVRREG_YUV_ADDR

#define PVRREG_YUV_ADDR   0x148

Definition at line 344 of file dreamcast_pvr.h.

◆ PVRREG_YUV_CFG1

#define PVRREG_YUV_CFG1   0x14c

Definition at line 347 of file dreamcast_pvr.h.

◆ PVRREG_YUV_STAT

#define PVRREG_YUV_STAT   0x150

Definition at line 350 of file dreamcast_pvr.h.

◆ RASEVTPOS_BOTTOM

#define RASEVTPOS_BOTTOM (   x)    ((x) << 0)

Definition at line 223 of file dreamcast_pvr.h.

◆ RASEVTPOS_POS1_MASK

#define RASEVTPOS_POS1_MASK   0x03ff0000

Definition at line 221 of file dreamcast_pvr.h.

◆ RASEVTPOS_POS1_SHIFT

#define RASEVTPOS_POS1_SHIFT   16

Definition at line 222 of file dreamcast_pvr.h.

◆ RASEVTPOS_POS2_MASK

#define RASEVTPOS_POS2_MASK   0x000003ff

Definition at line 220 of file dreamcast_pvr.h.

◆ RASEVTPOS_TOP

#define RASEVTPOS_TOP (   x)    ((x) << 16)

Definition at line 224 of file dreamcast_pvr.h.

◆ SHADOW_ENABLE

#define SHADOW_ENABLE   (1 << 8)

Definition at line 186 of file dreamcast_pvr.h.

◆ SHADOW_INTENSITY_MASK

#define SHADOW_INTENSITY_MASK   0x000000ff

Definition at line 185 of file dreamcast_pvr.h.

◆ SYNCCONF_BC

#define SYNCCONF_BC (   x)    (1U << 6) /* broadcast standard */

Definition at line 230 of file dreamcast_pvr.h.

◆ SYNCCONF_BC_MASK

#define SYNCCONF_BC_MASK   0x000000c0

Definition at line 233 of file dreamcast_pvr.h.

◆ SYNCCONF_BC_NTSC

#define SYNCCONF_BC_NTSC   1

Definition at line 236 of file dreamcast_pvr.h.

◆ SYNCCONF_BC_PAL

#define SYNCCONF_BC_PAL   2

Definition at line 237 of file dreamcast_pvr.h.

◆ SYNCCONF_BC_SHIFT

#define SYNCCONF_BC_SHIFT   6

Definition at line 234 of file dreamcast_pvr.h.

◆ SYNCCONF_BC_VGA

#define SYNCCONF_BC_VGA   0

Definition at line 235 of file dreamcast_pvr.h.

◆ SYNCCONF_HP

#define SYNCCONF_HP   (1U << 1) /* H-sync polarity */

Definition at line 228 of file dreamcast_pvr.h.

◆ SYNCCONF_HP_MASK

#define SYNCCONF_HP_MASK   0x00000004 /* Positive H-sync */

Definition at line 239 of file dreamcast_pvr.h.

◆ SYNCCONF_I

#define SYNCCONF_I   (1U << 4) /* interlace */

Definition at line 229 of file dreamcast_pvr.h.

◆ SYNCCONF_I_MASK

#define SYNCCONF_I_MASK   0x00000010

Definition at line 238 of file dreamcast_pvr.h.

◆ SYNCCONF_VO

#define SYNCCONF_VO   (1U << 8) /* video output enable */

Definition at line 231 of file dreamcast_pvr.h.

◆ SYNCCONF_VO_MASK

#define SYNCCONF_VO_MASK   0x00000100

Definition at line 232 of file dreamcast_pvr.h.

◆ SYNCCONF_VP

#define SYNCCONF_VP   (1U << 0) /* V-sync polarity */

Definition at line 227 of file dreamcast_pvr.h.

◆ SYNCCONF_VP_MASK

#define SYNCCONF_VP_MASK   0x00000002 /* Positive V-sync */

Definition at line 240 of file dreamcast_pvr.h.

◆ SYNCSIZE_H

#define SYNCSIZE_H (   x)    ((x) << 0)

Definition at line 253 of file dreamcast_pvr.h.

◆ SYNCSIZE_H_MASK

#define SYNCSIZE_H_MASK   0x0000ffff

Definition at line 250 of file dreamcast_pvr.h.

◆ SYNCSIZE_V

#define SYNCSIZE_V (   x)    ((x) << 16)

Definition at line 254 of file dreamcast_pvr.h.

◆ SYNCSIZE_V_MASK

#define SYNCSIZE_V_MASK   0xffff0000

Definition at line 251 of file dreamcast_pvr.h.

◆ SYNCSIZE_V_SHIFT

#define SYNCSIZE_V_SHIFT   16

Definition at line 252 of file dreamcast_pvr.h.

◆ TA_OB_END_MASK

#define TA_OB_END_MASK   0x00fffff8

Definition at line 316 of file dreamcast_pvr.h.

◆ TA_OB_POS_MASK

#define TA_OB_POS_MASK   0x00fffff8

Definition at line 322 of file dreamcast_pvr.h.

◆ TA_OB_START_MASK

#define TA_OB_START_MASK   0x00fffff8

Definition at line 310 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_OPAQUEMOD_MASK

#define TA_OPB_CFG_OPAQUEMOD_MASK   0x00000030

Definition at line 331 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_OPAQUEMOD_SHIFT

#define TA_OPB_CFG_OPAQUEMOD_SHIFT   4

Definition at line 332 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_OPAQUEPOLY_MASK

#define TA_OPB_CFG_OPAQUEPOLY_MASK   0x00000003

Definition at line 330 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_OPBDIR

#define TA_OPB_CFG_OPBDIR   0x00100000

Definition at line 339 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_PUNCHTHROUGH_MASK

#define TA_OPB_CFG_PUNCHTHROUGH_MASK   0x00030000

Definition at line 337 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_PUNCHTHROUGH_SHIFT

#define TA_OPB_CFG_PUNCHTHROUGH_SHIFT   16

Definition at line 338 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_TRANSMOD_MASK

#define TA_OPB_CFG_TRANSMOD_MASK   0x00003000

Definition at line 335 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_TRANSMOD_SHIFT

#define TA_OPB_CFG_TRANSMOD_SHIFT   12

Definition at line 336 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_TRANSPOLY_MASK

#define TA_OPB_CFG_TRANSPOLY_MASK   0x00000300

Definition at line 333 of file dreamcast_pvr.h.

◆ TA_OPB_CFG_TRANSPOLY_SHIFT

#define TA_OPB_CFG_TRANSPOLY_SHIFT   8

Definition at line 334 of file dreamcast_pvr.h.

◆ TA_OPB_END_MASK

#define TA_OPB_END_MASK   0x00ffff80

Definition at line 313 of file dreamcast_pvr.h.

◆ TA_OPB_POS_MASK

#define TA_OPB_POS_MASK   0x00ffff80

Definition at line 319 of file dreamcast_pvr.h.

◆ TA_OPB_START_MASK

#define TA_OPB_START_MASK   0x00ffff80

Definition at line 307 of file dreamcast_pvr.h.

◆ TILEBUF_SIZE_HEIGHT_MASK

#define TILEBUF_SIZE_HEIGHT_MASK   0xffff0000

Definition at line 325 of file dreamcast_pvr.h.

◆ TILEBUF_SIZE_HEIGHT_SHIFT

#define TILEBUF_SIZE_HEIGHT_SHIFT   16

Definition at line 326 of file dreamcast_pvr.h.

◆ TILEBUF_SIZE_WIDTH_MASK

#define TILEBUF_SIZE_WIDTH_MASK   0x0000ffff

Definition at line 327 of file dreamcast_pvr.h.

◆ TSP_CFG_CBE

#define TSP_CFG_CBE   (1 << 17) /* codebook enable */

Definition at line 266 of file dreamcast_pvr.h.

◆ TSP_CFG_IE

#define TSP_CFG_IE   (1 << 16) /* index enable */

Definition at line 267 of file dreamcast_pvr.h.

◆ TSP_CFG_MODULO_MASK

#define TSP_CFG_MODULO_MASK   0x1f /* modulo */

Definition at line 268 of file dreamcast_pvr.h.

◆ VRAM_CFG1_GOOD_REFRESH_VALUE

#define VRAM_CFG1_GOOD_REFRESH_VALUE   0x20

Definition at line 202 of file dreamcast_pvr.h.

◆ VRAM_CFG2_UNKNOWN_MAGIC

#define VRAM_CFG2_UNKNOWN_MAGIC   0x0000001f

Definition at line 205 of file dreamcast_pvr.h.

◆ VRAM_CFG3_UNKNOWN_MAGIC

#define VRAM_CFG3_UNKNOWN_MAGIC   0x15d1c951

Definition at line 208 of file dreamcast_pvr.h.


Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18