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 |
#define BRDCOLR_BLUE | ( | x | ) | ((x) << 0) |
Definition at line 113 of file dreamcast_pvr.h.
#define BRDCOLR_GREEN | ( | x | ) | ((x) << 8) |
Definition at line 114 of file dreamcast_pvr.h.
#define BRDCOLR_RED | ( | x | ) | ((x) << 16) |
Definition at line 115 of file dreamcast_pvr.h.
#define BRDHORZ_START | ( | x | ) | ((x) << 16) |
Definition at line 246 of file dreamcast_pvr.h.
#define BRDHORZ_START_MASK 0xffff0000 |
Definition at line 243 of file dreamcast_pvr.h.
#define BRDHORZ_START_SHIFT 16 |
Definition at line 244 of file dreamcast_pvr.h.
#define BRDHORZ_STOP | ( | x | ) | ((x) << 0) |
Definition at line 245 of file dreamcast_pvr.h.
#define BRDHORZ_STOP_MASK 0x0000ffff |
Definition at line 242 of file dreamcast_pvr.h.
#define BRDVERT_START | ( | x | ) | ((x) << 16) |
Definition at line 260 of file dreamcast_pvr.h.
#define BRDVERT_START_MASK 0xffff0000 |
Definition at line 257 of file dreamcast_pvr.h.
#define BRDVERT_START_SHIFT 16 |
Definition at line 258 of file dreamcast_pvr.h.
#define BRDVERT_STOP | ( | x | ) | ((x) << 0) |
Definition at line 259 of file dreamcast_pvr.h.
#define BRDVERT_STOP_MASK 0x0000ffff |
Definition at line 256 of file dreamcast_pvr.h.
#define DIWCONF_BLANK (1U << 3) /* blank screen */ |
Definition at line 270 of file dreamcast_pvr.h.
#define DIWCONF_LR (1U << 8) /* low-res (320 horizontal) */ |
Definition at line 271 of file dreamcast_pvr.h.
#define DIWCONF_MAGIC (22 << 16) |
Definition at line 273 of file dreamcast_pvr.h.
#define DIWCONF_MAGIC_MASK 0x003f0000 |
Definition at line 272 of file dreamcast_pvr.h.
Definition at line 125 of file dreamcast_pvr.h.
#define DIWMODE_C_MASK 0x00800000 /* Clock double */ |
Definition at line 137 of file dreamcast_pvr.h.
#define DIWMODE_COL | ( | x | ) | ((x) << 2) |
Definition at line 120 of file dreamcast_pvr.h.
#define DIWMODE_COL_ARGB888 DIWMODE_COL(3) /* RGB888, 32-bit */ |
Definition at line 124 of file dreamcast_pvr.h.
#define DIWMODE_COL_MASK 0x0000000c /* Pixel mode */ |
Definition at line 128 of file dreamcast_pvr.h.
#define DIWMODE_COL_RGB555 DIWMODE_COL(0) /* RGB555, 16-bit */ |
Definition at line 121 of file dreamcast_pvr.h.
#define DIWMODE_COL_RGB565 DIWMODE_COL(1) /* RGB565, 16-bit */ |
Definition at line 122 of file dreamcast_pvr.h.
#define DIWMODE_COL_RGB888 DIWMODE_COL(2) /* RGB888, 24-bit */ |
Definition at line 123 of file dreamcast_pvr.h.
#define DIWMODE_COL_SHIFT 2 |
Definition at line 129 of file dreamcast_pvr.h.
#define DIWMODE_DE (1U << 0) /* display enable */ |
Definition at line 118 of file dreamcast_pvr.h.
#define DIWMODE_DE_MASK 0x00000001 |
Definition at line 126 of file dreamcast_pvr.h.
#define DIWMODE_EX_MASK 0x00000070 /* Extend bits */ |
Definition at line 130 of file dreamcast_pvr.h.
#define DIWMODE_EX_SHIFT 4 |
Definition at line 131 of file dreamcast_pvr.h.
#define DIWMODE_SD (1U << 1) /* scan double enable */ |
Definition at line 119 of file dreamcast_pvr.h.
#define DIWMODE_SD_MASK 0x00000002 /* Line double */ |
Definition at line 127 of file dreamcast_pvr.h.
#define DIWMODE_SE_MASK 0x00400000 /* Strip Buffer enabled */ |
Definition at line 136 of file dreamcast_pvr.h.
#define DIWMODE_SL_MASK 0x003f0000 /* Strip Length */ |
Definition at line 134 of file dreamcast_pvr.h.
#define DIWMODE_SL_SHIFT 16 |
Definition at line 135 of file dreamcast_pvr.h.
#define DIWMODE_TH_MASK 0x0000ff00 /* ARGB8888 threshold */ |
Definition at line 132 of file dreamcast_pvr.h.
#define DIWMODE_TH_SHIFT 8 |
Definition at line 133 of file dreamcast_pvr.h.
#define DIWSIZE_DPL | ( | x | ) | ((x) << 0) /* pixel data per line */ |
Definition at line 165 of file dreamcast_pvr.h.
#define DIWSIZE_DPL_SHIFT 0 |
Definition at line 169 of file dreamcast_pvr.h.
#define DIWSIZE_LPF | ( | x | ) | ((x) << 10) /* lines per field */ |
Definition at line 166 of file dreamcast_pvr.h.
#define DIWSIZE_LPF_SHIFT 10 |
Definition at line 170 of file dreamcast_pvr.h.
#define DIWSIZE_MASK 0x3ff /* All fields are 10 bits. */ |
Definition at line 168 of file dreamcast_pvr.h.
#define DIWSIZE_MODULO | ( | x | ) | ((x) << 20) /* words to skip + 1 */ |
Definition at line 167 of file dreamcast_pvr.h.
#define DIWSIZE_MODULO_SHIFT 20 |
Definition at line 171 of file dreamcast_pvr.h.
#define DIWVSTRT_HPOS_MASK 0x000003ff |
Definition at line 276 of file dreamcast_pvr.h.
#define DIWVSTRT_V1 | ( | x | ) | ((x) << 0) |
Definition at line 282 of file dreamcast_pvr.h.
#define DIWVSTRT_V1_MASK 0x000003ff |
Definition at line 279 of file dreamcast_pvr.h.
#define DIWVSTRT_V2 | ( | x | ) | ((x) << 16) |
Definition at line 283 of file dreamcast_pvr.h.
#define DIWVSTRT_V2_MASK 0x03ff0000 |
Definition at line 280 of file dreamcast_pvr.h.
#define DIWVSTRT_V2_SHIFT 16 |
Definition at line 281 of file dreamcast_pvr.h.
#define FB_CLIP_XY_MAX_MASK 0x07ff0000 /* e.g. 640 for x */ |
Definition at line 180 of file dreamcast_pvr.h.
#define FB_CLIP_XY_MAX_SHIFT 16 |
Definition at line 181 of file dreamcast_pvr.h.
#define FB_CLIP_XY_MIN_MASK 0x000007ff |
Definition at line 179 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_ALPHA_MASK 0x0000ff00 |
Definition at line 151 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_ALPHA_SHFIT 8 |
Definition at line 152 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_DITHER (1 << 3) |
Definition at line 150 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_RENDER_MODE_MASK 0x07 |
Definition at line 140 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_THRESHOLD_MASK 0x00ff0000 |
Definition at line 153 of file dreamcast_pvr.h.
#define FB_RENDER_CFG_THRESHOLD_SHFIT 8 |
Definition at line 154 of file dreamcast_pvr.h.
#define FB_RENDER_MODULO_MASK 0x000001ff |
Definition at line 157 of file dreamcast_pvr.h.
#define MAGIC_110_VALUE 0x93f39 |
Definition at line 301 of file dreamcast_pvr.h.
#define PVR_FOG_TABLE_SIZE 0x0200 |
Definition at line 361 of file dreamcast_pvr.h.
#define PVR_OB_ADDR_MASK 0x00f80000 |
Definition at line 102 of file dreamcast_pvr.h.
#define PVR_PALETTE_CFG_MODE_ARGB1555 0x0 |
Definition at line 289 of file dreamcast_pvr.h.
#define PVR_PALETTE_CFG_MODE_ARGB4444 0x2 |
Definition at line 291 of file dreamcast_pvr.h.
#define PVR_PALETTE_CFG_MODE_ARGB8888 0x3 |
Definition at line 292 of file dreamcast_pvr.h.
#define PVR_PALETTE_CFG_MODE_MASK 0x3 |
Definition at line 288 of file dreamcast_pvr.h.
#define PVR_PALETTE_CFG_MODE_RGB565 0x1 |
Definition at line 290 of file dreamcast_pvr.h.
#define PVR_PALETTE_SIZE 0x1000 |
Definition at line 364 of file dreamcast_pvr.h.
#define PVR_RESET_BUS 0x00000004 |
Definition at line 93 of file dreamcast_pvr.h.
#define PVR_RESET_PVR 0x00000002 |
Definition at line 92 of file dreamcast_pvr.h.
#define PVR_RESET_TA 0x00000001 |
Definition at line 91 of file dreamcast_pvr.h.
#define PVR_REVISION_MAJOR_MASK 0xf0 |
Definition at line 87 of file dreamcast_pvr.h.
#define PVR_REVISION_MAJOR_SHIFT 4 |
Definition at line 88 of file dreamcast_pvr.h.
#define PVR_REVISION_MINOR_MASK 0xf |
Definition at line 86 of file dreamcast_pvr.h.
#define PVR_SPANSORT_SPAN0 0x00000001 |
Definition at line 108 of file dreamcast_pvr.h.
#define PVR_SPANSORT_SPAN1 0x00000100 |
Definition at line 109 of file dreamcast_pvr.h.
#define PVR_SPANSORT_TSP_CACHE_ENABLE 0x00010000 |
Definition at line 110 of file dreamcast_pvr.h.
#define PVR_SYNC_STAT_HBLANK 0x00001000 |
Definition at line 297 of file dreamcast_pvr.h.
#define PVR_SYNC_STAT_INTERLACE_FIELD_EVEN 0x00000400 |
Definition at line 296 of file dreamcast_pvr.h.
#define PVR_SYNC_STAT_VBLANK 0x00002000 |
Definition at line 298 of file dreamcast_pvr.h.
#define PVR_SYNC_STAT_VPOS_MASK 0x000003ff |
Definition at line 295 of file dreamcast_pvr.h.
#define PVR_TA_INIT 0x80000000 |
Definition at line 341 of file dreamcast_pvr.h.
#define PVR_TA_OPL_INIT_MASK 0x00ffff80 |
Definition at line 358 of file dreamcast_pvr.h.
#define PVR_TA_OPL_REINIT 0x80000000 |
Definition at line 354 of file dreamcast_pvr.h.
#define PVR_TILEBUF_ADDR_MASK 0x00fffff8 |
Definition at line 105 of file dreamcast_pvr.h.
#define PVR_YUV_ADDR_MASK 0x00ffffe0 |
Definition at line 344 of file dreamcast_pvr.h.
#define PVR_YUV_STAT_BLOCKS_MASK 0x1fff |
Definition at line 351 of file dreamcast_pvr.h.
#define PVRREG_BGPLANE_CFG 0x8c /* TODO */ |
Definition at line 196 of file dreamcast_pvr.h.
#define PVRREG_BGPLANE_Z 0x88 /* float */ |
Definition at line 194 of file dreamcast_pvr.h.
#define PVRREG_BRDCOLR 0x40 |
Definition at line 112 of file dreamcast_pvr.h.
#define PVRREG_BRDHORZ 0xd4 |
Definition at line 241 of file dreamcast_pvr.h.
#define PVRREG_BRDVERT 0xdc |
Definition at line 255 of file dreamcast_pvr.h.
#define PVRREG_CLAMP_MAX 0xbc /* maximum color */ |
Definition at line 213 of file dreamcast_pvr.h.
#define PVRREG_CLAMP_MIN 0xc0 /* minimum color */ |
Definition at line 214 of file dreamcast_pvr.h.
#define PVRREG_DIWADDRL 0x50 |
Definition at line 160 of file dreamcast_pvr.h.
#define PVRREG_DIWADDRS 0x54 |
Definition at line 162 of file dreamcast_pvr.h.
#define PVRREG_DIWCONF 0xe8 |
Definition at line 269 of file dreamcast_pvr.h.
#define PVRREG_DIWHSTRT 0xec |
Definition at line 275 of file dreamcast_pvr.h.
#define PVRREG_DIWMODE 0x44 |
Definition at line 117 of file dreamcast_pvr.h.
#define PVRREG_DIWSIZE 0x5c |
Definition at line 164 of file dreamcast_pvr.h.
#define PVRREG_DIWVSTRT 0xf0 |
Definition at line 278 of file dreamcast_pvr.h.
#define PVRREG_FB_CLIP_X 0x68 /* horizontal pixel clipping area - 1 */ |
Definition at line 177 of file dreamcast_pvr.h.
#define PVRREG_FB_CLIP_Y 0x6c /* vertical pixel clipping area - 1 */ |
Definition at line 178 of file dreamcast_pvr.h.
#define PVRREG_FB_RENDER_ADDR1 0x60 /* Odd interlace lines */ |
Definition at line 173 of file dreamcast_pvr.h.
#define PVRREG_FB_RENDER_ADDR2 0x64 /* Even interlace lines */ |
Definition at line 175 of file dreamcast_pvr.h.
#define PVRREG_FB_RENDER_CFG 0x48 |
Definition at line 139 of file dreamcast_pvr.h.
#define PVRREG_FB_RENDER_MODULO 0x4c |
Definition at line 156 of file dreamcast_pvr.h.
#define PVRREG_FBSTART 0x05000000 |
Definition at line 77 of file dreamcast_pvr.h.
#define PVRREG_FOG_DENSITY 0xb8 /* TODO */ |
Definition at line 211 of file dreamcast_pvr.h.
#define PVRREG_FOG_TABLE 0x0200 |
Definition at line 360 of file dreamcast_pvr.h.
#define PVRREG_FOG_TABLE_COL 0xb0 |
Definition at line 209 of file dreamcast_pvr.h.
#define PVRREG_FOG_VERTEX_COL 0xb4 |
Definition at line 210 of file dreamcast_pvr.h.
#define PVRREG_HPOS_IRQ 0xc8 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */ |
Definition at line 216 of file dreamcast_pvr.h.
#define PVRREG_ID 0x00 |
Definition at line 83 of file dreamcast_pvr.h.
#define PVRREG_ISP_CFG 0x98 /* TODO */ |
Definition at line 198 of file dreamcast_pvr.h.
#define PVRREG_MAGIC_110 0x110 |
Definition at line 300 of file dreamcast_pvr.h.
#define PVRREG_OB_ADDR 0x20 |
Definition at line 97 of file dreamcast_pvr.h.
#define PVRREG_OB_CFG 0x7c /* TODO */ |
Definition at line 189 of file dreamcast_pvr.h.
#define PVRREG_OBJECT_CLIP 0x78 /* float, position of polygon culling */ |
Definition at line 187 of file dreamcast_pvr.h.
#define PVRREG_PALETTE 0x1000 |
Definition at line 363 of file dreamcast_pvr.h.
#define PVRREG_PALETTE_CFG 0x108 |
Definition at line 287 of file dreamcast_pvr.h.
#define PVRREG_RASEVTPOS 0xcc /* vpos_irq according to powervr-reg.txt */ |
Definition at line 218 of file dreamcast_pvr.h.
#define PVRREG_REGSIZE 0x00002000 |
Definition at line 80 of file dreamcast_pvr.h.
#define PVRREG_REGSTART 0x005f8000 |
Definition at line 78 of file dreamcast_pvr.h.
#define PVRREG_RESET 0x08 |
Definition at line 90 of file dreamcast_pvr.h.
#define PVRREG_REVISION 0x04 |
Definition at line 85 of file dreamcast_pvr.h.
#define PVRREG_SCALER_CFG 0xf4 |
Definition at line 285 of file dreamcast_pvr.h.
#define PVRREG_SHADOW 0x74 |
Definition at line 183 of file dreamcast_pvr.h.
#define PVRREG_SPANSORT 0x30 |
Definition at line 107 of file dreamcast_pvr.h.
#define PVRREG_STARTRENDER 0x14 |
Definition at line 95 of file dreamcast_pvr.h.
#define PVRREG_SYNC_STAT 0x10c |
Definition at line 294 of file dreamcast_pvr.h.
#define PVRREG_SYNCCONF 0xd0 |
Definition at line 225 of file dreamcast_pvr.h.
#define PVRREG_SYNCH_WIDTH 0xe0 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */ |
Definition at line 262 of file dreamcast_pvr.h.
#define PVRREG_SYNCSIZE 0xd8 |
Definition at line 248 of file dreamcast_pvr.h.
#define PVRREG_TA_INIT 0x144 |
Definition at line 340 of file dreamcast_pvr.h.
#define PVRREG_TA_LUMINANCE 0x118 /* todo */ |
Definition at line 303 of file dreamcast_pvr.h.
#define PVRREG_TA_OB_END 0x130 |
Definition at line 314 of file dreamcast_pvr.h.
#define PVRREG_TA_OB_POS 0x138 |
Definition at line 320 of file dreamcast_pvr.h.
#define PVRREG_TA_OB_START 0x128 |
Definition at line 308 of file dreamcast_pvr.h.
#define PVRREG_TA_OPB_CFG 0x140 |
Definition at line 328 of file dreamcast_pvr.h.
#define PVRREG_TA_OPB_END 0x12c |
Definition at line 311 of file dreamcast_pvr.h.
#define PVRREG_TA_OPB_POS 0x134 |
Definition at line 317 of file dreamcast_pvr.h.
#define PVRREG_TA_OPB_START 0x124 |
Definition at line 305 of file dreamcast_pvr.h.
#define PVRREG_TA_OPL_INIT 0x164 |
Definition at line 356 of file dreamcast_pvr.h.
#define PVRREG_TA_OPL_REINIT 0x160 |
Definition at line 353 of file dreamcast_pvr.h.
#define PVRREG_TILEBUF_ADDR 0x2c |
Definition at line 104 of file dreamcast_pvr.h.
#define PVRREG_TILEBUF_SIZE 0x13c |
Definition at line 323 of file dreamcast_pvr.h.
#define PVRREG_TSP_CFG 0xe4 /* http://www.ludd.luth.se/~jlo/dc/powervr-reg.txt */ |
Definition at line 264 of file dreamcast_pvr.h.
#define PVRREG_UNKNOWN_80 0x80 |
Definition at line 191 of file dreamcast_pvr.h.
#define PVRREG_UNKNOWN_84 0x84 |
Definition at line 192 of file dreamcast_pvr.h.
#define PVRREG_VRAM_CFG1 0xa0 |
Definition at line 200 of file dreamcast_pvr.h.
#define PVRREG_VRAM_CFG2 0xa4 |
Definition at line 203 of file dreamcast_pvr.h.
#define PVRREG_VRAM_CFG3 0xa8 |
Definition at line 206 of file dreamcast_pvr.h.
#define PVRREG_YUV_ADDR 0x148 |
Definition at line 343 of file dreamcast_pvr.h.
#define PVRREG_YUV_CFG1 0x14c |
Definition at line 346 of file dreamcast_pvr.h.
#define PVRREG_YUV_STAT 0x150 |
Definition at line 349 of file dreamcast_pvr.h.
#define RASEVTPOS_BOTTOM | ( | x | ) | ((x) << 0) |
Definition at line 222 of file dreamcast_pvr.h.
#define RASEVTPOS_POS1_MASK 0x03ff0000 |
Definition at line 220 of file dreamcast_pvr.h.
#define RASEVTPOS_POS1_SHIFT 16 |
Definition at line 221 of file dreamcast_pvr.h.
#define RASEVTPOS_POS2_MASK 0x000003ff |
Definition at line 219 of file dreamcast_pvr.h.
#define RASEVTPOS_TOP | ( | x | ) | ((x) << 16) |
Definition at line 223 of file dreamcast_pvr.h.
#define SHADOW_ENABLE (1 << 8) |
Definition at line 185 of file dreamcast_pvr.h.
#define SHADOW_INTENSITY_MASK 0x000000ff |
Definition at line 184 of file dreamcast_pvr.h.
#define SYNCCONF_BC | ( | x | ) | (1U << 6) /* broadcast standard */ |
Definition at line 229 of file dreamcast_pvr.h.
#define SYNCCONF_BC_MASK 0x000000c0 |
Definition at line 232 of file dreamcast_pvr.h.
#define SYNCCONF_BC_NTSC 1 |
Definition at line 235 of file dreamcast_pvr.h.
#define SYNCCONF_BC_PAL 2 |
Definition at line 236 of file dreamcast_pvr.h.
#define SYNCCONF_BC_SHIFT 6 |
Definition at line 233 of file dreamcast_pvr.h.
#define SYNCCONF_BC_VGA 0 |
Definition at line 234 of file dreamcast_pvr.h.
#define SYNCCONF_HP (1U << 1) /* H-sync polarity */ |
Definition at line 227 of file dreamcast_pvr.h.
#define SYNCCONF_HP_MASK 0x00000004 /* Positive H-sync */ |
Definition at line 238 of file dreamcast_pvr.h.
#define SYNCCONF_I (1U << 4) /* interlace */ |
Definition at line 228 of file dreamcast_pvr.h.
#define SYNCCONF_I_MASK 0x00000010 |
Definition at line 237 of file dreamcast_pvr.h.
#define SYNCCONF_VO (1U << 8) /* video output enable */ |
Definition at line 230 of file dreamcast_pvr.h.
#define SYNCCONF_VO_MASK 0x00000100 |
Definition at line 231 of file dreamcast_pvr.h.
#define SYNCCONF_VP (1U << 0) /* V-sync polarity */ |
Definition at line 226 of file dreamcast_pvr.h.
#define SYNCCONF_VP_MASK 0x00000002 /* Positive V-sync */ |
Definition at line 239 of file dreamcast_pvr.h.
#define SYNCSIZE_H | ( | x | ) | ((x) << 0) |
Definition at line 252 of file dreamcast_pvr.h.
#define SYNCSIZE_H_MASK 0x0000ffff |
Definition at line 249 of file dreamcast_pvr.h.
#define SYNCSIZE_V | ( | x | ) | ((x) << 16) |
Definition at line 253 of file dreamcast_pvr.h.
#define SYNCSIZE_V_MASK 0xffff0000 |
Definition at line 250 of file dreamcast_pvr.h.
#define SYNCSIZE_V_SHIFT 16 |
Definition at line 251 of file dreamcast_pvr.h.
#define TA_OB_END_MASK 0x00fffff8 |
Definition at line 315 of file dreamcast_pvr.h.
#define TA_OB_POS_MASK 0x00fffff8 |
Definition at line 321 of file dreamcast_pvr.h.
#define TA_OB_START_MASK 0x00fffff8 |
Definition at line 309 of file dreamcast_pvr.h.
#define TA_OPB_CFG_OPAQUEMOD_MASK 0x00000030 |
Definition at line 330 of file dreamcast_pvr.h.
#define TA_OPB_CFG_OPAQUEMOD_SHIFT 4 |
Definition at line 331 of file dreamcast_pvr.h.
#define TA_OPB_CFG_OPAQUEPOLY_MASK 0x00000003 |
Definition at line 329 of file dreamcast_pvr.h.
#define TA_OPB_CFG_OPBDIR 0x00100000 |
Definition at line 338 of file dreamcast_pvr.h.
#define TA_OPB_CFG_PUNCHTHROUGH_MASK 0x00030000 |
Definition at line 336 of file dreamcast_pvr.h.
#define TA_OPB_CFG_PUNCHTHROUGH_SHIFT 16 |
Definition at line 337 of file dreamcast_pvr.h.
#define TA_OPB_CFG_TRANSMOD_MASK 0x00003000 |
Definition at line 334 of file dreamcast_pvr.h.
#define TA_OPB_CFG_TRANSMOD_SHIFT 12 |
Definition at line 335 of file dreamcast_pvr.h.
#define TA_OPB_CFG_TRANSPOLY_MASK 0x00000300 |
Definition at line 332 of file dreamcast_pvr.h.
#define TA_OPB_CFG_TRANSPOLY_SHIFT 8 |
Definition at line 333 of file dreamcast_pvr.h.
#define TA_OPB_END_MASK 0x00ffff80 |
Definition at line 312 of file dreamcast_pvr.h.
#define TA_OPB_POS_MASK 0x00ffff80 |
Definition at line 318 of file dreamcast_pvr.h.
#define TA_OPB_START_MASK 0x00ffff80 |
Definition at line 306 of file dreamcast_pvr.h.
#define TILEBUF_SIZE_HEIGHT_MASK 0xffff0000 |
Definition at line 324 of file dreamcast_pvr.h.
#define TILEBUF_SIZE_HEIGHT_SHIFT 16 |
Definition at line 325 of file dreamcast_pvr.h.
#define TILEBUF_SIZE_WIDTH_MASK 0x0000ffff |
Definition at line 326 of file dreamcast_pvr.h.
#define TSP_CFG_CBE (1 << 17) /* codebook enable */ |
Definition at line 265 of file dreamcast_pvr.h.
#define TSP_CFG_IE (1 << 16) /* index enable */ |
Definition at line 266 of file dreamcast_pvr.h.
#define TSP_CFG_MODULO_MASK 0x1f /* modulo */ |
Definition at line 267 of file dreamcast_pvr.h.
#define VRAM_CFG1_GOOD_REFRESH_VALUE 0x20 |
Definition at line 201 of file dreamcast_pvr.h.
#define VRAM_CFG2_UNKNOWN_MAGIC 0x0000001f |
Definition at line 204 of file dreamcast_pvr.h.
#define VRAM_CFG3_UNKNOWN_MAGIC 0x15d1c951 |
Definition at line 207 of file dreamcast_pvr.h.