6#ifndef __LIBDRAGON_REGSINTERNAL_H
7#define __LIBDRAGON_REGSINTERNAL_H
32typedef struct AI_regs_s {
66typedef struct VI_regs_s {
103typedef struct PI_regs_s {
125typedef struct SI_regs_s {
146typedef struct SP_regs_s {
uint32_t cur_line
Current vertical line counter.
Definition regsinternal.h:78
uint32_t h_limits
Beginning and end of video horizontally.
Definition regsinternal.h:88
uint32_t color_burst
Beginning and end of color burst in vertical lines.
Definition regsinternal.h:92
uint32_t dom1_latency
Cartridge domain 1 latency in RCP clock cycles. Requires DMA status bit guards to work reliably.
Definition regsinternal.h:115
uint32_t v_limits
Beginning and end of video vertically.
Definition regsinternal.h:90
uint32_t reserved3
Reserved word.
Definition regsinternal.h:137
uint32_t rsp_dma_full
RSP DMA full.
Definition regsinternal.h:158
volatile void * DRAM_addr
RDRAM memory address.
Definition regsinternal.h:150
uint32_t h_sync2
Number of pixels in line, set identically to h_sync.
Definition regsinternal.h:86
uint32_t status
SI status, including DMA busy and IO busy.
Definition regsinternal.h:139
uint32_t control
DMA start register. Write a 1 to this register to start playing back an audio sample.
Definition regsinternal.h:41
uint32_t rsp_write_length
RDP->RDRAM DMA length.
Definition regsinternal.h:154
uint32_t status
Status of the PI, including DMA busy.
Definition regsinternal.h:113
uint32_t dom1_pulse_width
Cartridge domain 1 pulse width in RCP clock cycles. Requires DMA status bit guards to work reliably.
Definition regsinternal.h:117
uint32_t pi_address
Address of data on peripheral.
Definition regsinternal.h:107
volatile void * address
Pointer to uncached memory buffer of samples to play.
Definition regsinternal.h:34
volatile void * RSP_addr
RSP memory address (IMEM/DMEM)
Definition regsinternal.h:148
uint32_t dacrate
Rate at which the buffer should be played.
Definition regsinternal.h:48
uint32_t v_sync
Number of lines per frame.
Definition regsinternal.h:82
uint32_t write_length
How much data to write to RAM from the peripheral.
Definition regsinternal.h:111
uint32_t status
RSP status.
Definition regsinternal.h:156
uint32_t status
AI status register. Bit 31 is the full bit, bit 30 is the busy bit.
Definition regsinternal.h:43
uint32_t rsp_semaphore
RSP Semaphore.
Definition regsinternal.h:162
void * framebuffer
Pointer to uncached buffer in memory to rasterize.
Definition regsinternal.h:70
uint32_t v_scale
Vertical scaling factor from buffer to screen.
Definition regsinternal.h:96
uint32_t v_int
Vertical interrupt control register. Controls which horizontal line must be hit to generate a VI inte...
Definition regsinternal.h:76
uint32_t width
Width of the buffer in pixels.
Definition regsinternal.h:72
uint32_t bitrate
Half-rate at which each single bit of a sample is shifted into the DAC.
Definition regsinternal.h:59
uint32_t length
Size in bytes of the buffer to be played. Should be number of stereo samples * 2 * sizeof( uint16_t )
Definition regsinternal.h:38
volatile void * PIF_addr_write
Address to write when copying to PIF RAM.
Definition regsinternal.h:135
uint32_t rsp_read_length
RDRAM->RSP DMA length.
Definition regsinternal.h:152
volatile void * ram_address
Uncached address in RAM where data should be found.
Definition regsinternal.h:105
uint32_t control
VI control register. Sets up various rasterization modes.
Definition regsinternal.h:68
volatile void * DRAM_addr
Uncached address in RAM where data should be found.
Definition regsinternal.h:127
uint32_t h_scale
Horizontal scaling factor from buffer to screen.
Definition regsinternal.h:94
volatile void * PIF_addr_read
Address to read when copying from PIF RAM.
Definition regsinternal.h:129
uint32_t rsp_dma_busy
RSP DMA busy.
Definition regsinternal.h:160
uint32_t reserved2
Reserved word.
Definition regsinternal.h:133
uint32_t reserved1
Reserved word.
Definition regsinternal.h:131
uint32_t timing
Timing generation register for PAL/NTSC signals.
Definition regsinternal.h:80
uint32_t read_length
How much data to read from RAM into the peripheral.
Definition regsinternal.h:109
uint32_t h_sync
Number of pixels in line and leap pattern.
Definition regsinternal.h:84
Register definition for the AI interface.
Definition regsinternal.h:32
Register definition for the PI interface.
Definition regsinternal.h:103
Register definition for the SI interface.
Definition regsinternal.h:125
Register definition for the SP interface.
Definition regsinternal.h:146
Register definition for the VI interface.
Definition regsinternal.h:66