coastline 0.0.4
Loading...
Searching...
No Matches
rcp.h File Reference

Registers of the RCP, the RDRAM interface, and the peripheral interfaces. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IO_READ(addr)
 Read the 32-bit register at physical address addr through the uncached segment.
#define IO_WRITE(addr, data)
 Write data to the 32-bit register at physical address addr through the uncached segment.
#define RDRAM_BASE_REG   0x03F00000
#define SP_DMEM_START   0x04000000
#define SP_DMEM_END   0x04000FFF
#define SP_IMEM_START   0x04001000
#define SP_IMEM_END   0x04001FFF
#define SP_BASE_REG   0x04040000
#define SP_MEM_ADDR_REG   (SP_BASE_REG + 0x00)
#define SP_DRAM_ADDR_REG   (SP_BASE_REG + 0x04)
#define SP_RD_LEN_REG   (SP_BASE_REG + 0x08)
#define SP_WR_LEN_REG   (SP_BASE_REG + 0x0C)
#define SP_STATUS_REG   (SP_BASE_REG + 0x10)
#define SP_DMA_FULL_REG   (SP_BASE_REG + 0x14)
#define SP_DMA_BUSY_REG   (SP_BASE_REG + 0x18)
#define SP_SEMAPHORE_REG   (SP_BASE_REG + 0x1C)
#define SP_PC_REG   0x04080000
#define SP_STATUS_HALT   0x0001
#define SP_STATUS_BROKE   0x0002
#define SP_STATUS_DMA_BUSY   0x0004
#define SP_STATUS_DMA_FULL   0x0008
#define SP_STATUS_IO_FULL   0x0010
#define SP_STATUS_SSTEP   0x0020
#define SP_STATUS_INTR_BREAK   0x0040
#define SP_STATUS_YIELD   0x0080
#define SP_STATUS_YIELDED   0x0100
#define SP_STATUS_TASKDONE   0x0200
#define SP_CLR_HALT   0x00000001
#define SP_SET_HALT   0x00000002
#define SP_CLR_BROKE   0x00000004
#define SP_CLR_INTR   0x00000008
#define SP_SET_INTR   0x00000010
#define SP_CLR_SSTEP   0x00000020
#define SP_SET_SSTEP   0x00000040
#define SP_CLR_INTR_BREAK   0x00000080
#define SP_SET_INTR_BREAK   0x00000100
#define SP_CLR_SIG0   0x00000200
#define SP_SET_SIG0   0x00000400
#define SP_CLR_SIG1   0x00000800
#define SP_SET_SIG1   0x00001000
#define SP_CLR_SIG2   0x00002000
#define SP_SET_SIG2   0x00004000
#define SP_CLR_SIG3   0x00008000
#define SP_SET_SIG3   0x00010000
#define SP_CLR_SIG4   0x00020000
#define SP_SET_SIG4   0x00040000
#define SP_CLR_SIG5   0x00080000
#define SP_SET_SIG5   0x00100000
#define SP_CLR_SIG6   0x00200000
#define SP_SET_SIG6   0x00400000
#define SP_CLR_SIG7   0x00800000
#define SP_SET_SIG7   0x01000000
#define SP_CLR_YIELD   SP_CLR_SIG0
#define SP_SET_YIELD   SP_SET_SIG0
#define SP_CLR_YIELDED   SP_CLR_SIG1
#define SP_SET_YIELDED   SP_SET_SIG1
#define SP_CLR_TASKDONE   SP_CLR_SIG2
#define SP_SET_TASKDONE   SP_SET_SIG2
#define DPC_BASE_REG   0x04100000
#define DPC_START_REG   (DPC_BASE_REG + 0x00)
#define DPC_END_REG   (DPC_BASE_REG + 0x04)
#define DPC_CURRENT_REG   (DPC_BASE_REG + 0x08)
#define DPC_STATUS_REG   (DPC_BASE_REG + 0x0C)
#define DPC_CLOCK_REG   (DPC_BASE_REG + 0x10)
#define DPC_BUFBUSY_REG   (DPC_BASE_REG + 0x14)
#define DPC_PIPEBUSY_REG   (DPC_BASE_REG + 0x18)
#define DPC_TMEM_REG   (DPC_BASE_REG + 0x1C)
#define MI_BASE_REG   0x04300000
#define MI_INIT_MODE_REG   (MI_BASE_REG + 0x00)
#define MI_MODE_REG   MI_INIT_MODE_REG
#define MI_VERSION_REG   (MI_BASE_REG + 0x04)
#define MI_INTR_REG   (MI_BASE_REG + 0x08)
#define MI_INTR_MASK_REG   (MI_BASE_REG + 0x0C)
#define MI_CLR_DP_INTR   0x0800
#define MI_INTR_SP   0x01
#define MI_INTR_SI   0x02
#define MI_INTR_AI   0x04
#define MI_INTR_VI   0x08
#define MI_INTR_PI   0x10
#define MI_INTR_DP   0x20
#define MI_INTR_MASK_CLR_SP   0x0001
#define MI_INTR_MASK_SET_SP   0x0002
#define MI_INTR_MASK_CLR_SI   0x0004
#define MI_INTR_MASK_SET_SI   0x0008
#define MI_INTR_MASK_CLR_AI   0x0010
#define MI_INTR_MASK_SET_AI   0x0020
#define MI_INTR_MASK_CLR_VI   0x0040
#define MI_INTR_MASK_SET_VI   0x0080
#define MI_INTR_MASK_CLR_PI   0x0100
#define MI_INTR_MASK_SET_PI   0x0200
#define MI_INTR_MASK_CLR_DP   0x0400
#define MI_INTR_MASK_SET_DP   0x0800
#define VI_BASE_REG   0x04400000
#define VI_STATUS_REG   (VI_BASE_REG + 0x00)
#define VI_CONTROL_REG   VI_STATUS_REG
#define VI_ORIGIN_REG   (VI_BASE_REG + 0x04)
#define VI_DRAM_ADDR_REG   VI_ORIGIN_REG
#define VI_WIDTH_REG   (VI_BASE_REG + 0x08)
#define VI_H_WIDTH_REG   VI_WIDTH_REG
#define VI_INTR_REG   (VI_BASE_REG + 0x0C)
#define VI_V_INTR_REG   VI_INTR_REG
#define VI_CURRENT_REG   (VI_BASE_REG + 0x10)
#define VI_V_CURRENT_LINE_REG   VI_CURRENT_REG
#define VI_BURST_REG   (VI_BASE_REG + 0x14)
#define VI_TIMING_REG   VI_BURST_REG
#define VI_V_SYNC_REG   (VI_BASE_REG + 0x18)
#define VI_H_SYNC_REG   (VI_BASE_REG + 0x1C)
#define VI_LEAP_REG   (VI_BASE_REG + 0x20)
#define VI_H_SYNC_LEAP_REG   VI_LEAP_REG
#define VI_H_START_REG   (VI_BASE_REG + 0x24)
#define VI_H_VIDEO_REG   VI_H_START_REG
#define VI_V_START_REG   (VI_BASE_REG + 0x28)
#define VI_V_VIDEO_REG   VI_V_START_REG
#define VI_V_BURST_REG   (VI_BASE_REG + 0x2C)
#define VI_X_SCALE_REG   (VI_BASE_REG + 0x30)
#define VI_Y_SCALE_REG   (VI_BASE_REG + 0x34)
#define AI_BASE_REG   0x04500000
#define AI_DRAM_ADDR_REG   (AI_BASE_REG + 0x00)
#define AI_LEN_REG   (AI_BASE_REG + 0x04)
#define AI_CONTROL_REG   (AI_BASE_REG + 0x08)
#define AI_STATUS_REG   (AI_BASE_REG + 0x0C)
#define AI_DACRATE_REG   (AI_BASE_REG + 0x10)
#define AI_BITRATE_REG   (AI_BASE_REG + 0x14)
#define AI_CONTROL_DMA_ON   0x01
#define AI_STATUS_FIFO_FULL   (1U << 31)
#define AI_STATUS_DMA_BUSY   (1 << 30)
#define AI_MAX_BIT_RATE   16
#define AI_MAX_DAC_RATE   16384
#define AI_MIN_DAC_RATE   132
#define PI_BASE_REG   0x04600000
#define PI_DRAM_ADDR_REG   (PI_BASE_REG + 0x00)
#define PI_CART_ADDR_REG   (PI_BASE_REG + 0x04)
#define PI_RD_LEN_REG   (PI_BASE_REG + 0x08)
#define PI_WR_LEN_REG   (PI_BASE_REG + 0x0C)
#define PI_STATUS_REG   (PI_BASE_REG + 0x10)
#define PI_BSD_DOM1_LAT_REG   (PI_BASE_REG + 0x14)
#define PI_BSD_DOM1_PWD_REG   (PI_BASE_REG + 0x18)
#define PI_BSD_DOM1_PGS_REG   (PI_BASE_REG + 0x1C)
#define PI_BSD_DOM1_RLS_REG   (PI_BASE_REG + 0x20)
#define PI_BSD_DOM2_LAT_REG   (PI_BASE_REG + 0x24)
#define PI_BSD_DOM2_PWD_REG   (PI_BASE_REG + 0x28)
#define PI_BSD_DOM2_PGS_REG   (PI_BASE_REG + 0x2C)
#define PI_BSD_DOM2_RLS_REG   (PI_BASE_REG + 0x30)
#define PI_STATUS_DMA_BUSY   0x01
#define PI_STATUS_IO_BUSY   0x02
#define PI_STATUS_ERROR   0x04
#define PI_STATUS_RESET   0x01
#define PI_STATUS_CLR_INTR   0x02
#define PI_DOM1_ADDR2   0x10000000
#define PI_DOM2_ADDR2   0x08000000
#define RI_BASE_REG   0x04700000
#define RI_SELECT_REG   (RI_BASE_REG + 0x0C)
#define SI_BASE_REG   0x04800000
#define SI_DRAM_ADDR_REG   (SI_BASE_REG + 0x00)
#define SI_PIF_ADDR_RD64B_REG   (SI_BASE_REG + 0x04)
#define SI_PIF_ADDR_WR64B_REG   (SI_BASE_REG + 0x10)
#define SI_STATUS_REG   (SI_BASE_REG + 0x18)
#define SI_STATUS_DMA_BUSY   0x0001
#define SI_STATUS_RD_BUSY   0x0002
#define SI_STATUS_DMA_ERROR   0x0008
#define SI_STATUS_INTERRUPT   0x1000
#define PIF_RAM_START   0x1FC007C0
#define PIF_RAM_END   0x1FC007FF

Detailed Description

Registers of the RCP, the RDRAM interface, and the peripheral interfaces.

Macro Definition Documentation

◆ IO_READ

#define IO_READ ( addr)
Value:
(*(vu32 *)PHYS_TO_K1(addr))
#define PHYS_TO_K1(x)
Definition R4300.h:31
volatile unsigned int vu32
Definition ultratypes.h:30

Read the 32-bit register at physical address addr through the uncached segment.

◆ IO_WRITE

#define IO_WRITE ( addr,
data )
Value:
(*(vu32 *)PHYS_TO_K1(addr) = (u32)(data))
unsigned int u32
Definition ultratypes.h:20

Write data to the 32-bit register at physical address addr through the uncached segment.

◆ RDRAM_BASE_REG

#define RDRAM_BASE_REG   0x03F00000

The base address of the RDRAM registers.

◆ SP_DMEM_START

#define SP_DMEM_START   0x04000000

The first byte of the RSP data memory.

◆ SP_DMEM_END

#define SP_DMEM_END   0x04000FFF

The last byte of the RSP data memory.

◆ SP_IMEM_START

#define SP_IMEM_START   0x04001000

The first byte of the RSP instruction memory.

◆ SP_IMEM_END

#define SP_IMEM_END   0x04001FFF

The last byte of the RSP instruction memory.

◆ SP_BASE_REG

#define SP_BASE_REG   0x04040000

The base address of the RSP registers.

◆ SP_MEM_ADDR_REG

#define SP_MEM_ADDR_REG   (SP_BASE_REG + 0x00)

The RSP memory address of a DMA.

◆ SP_DRAM_ADDR_REG

#define SP_DRAM_ADDR_REG   (SP_BASE_REG + 0x04)

The RDRAM address of a DMA.

◆ SP_RD_LEN_REG

#define SP_RD_LEN_REG   (SP_BASE_REG + 0x08)

Writing starts a DMA from RDRAM of this length.

◆ SP_WR_LEN_REG

#define SP_WR_LEN_REG   (SP_BASE_REG + 0x0C)

Writing starts a DMA to RDRAM of this length.

◆ SP_STATUS_REG

#define SP_STATUS_REG   (SP_BASE_REG + 0x10)

The status on read and the control on write.

◆ SP_DMA_FULL_REG

#define SP_DMA_FULL_REG   (SP_BASE_REG + 0x14)

Whether a second DMA is queued.

◆ SP_DMA_BUSY_REG

#define SP_DMA_BUSY_REG   (SP_BASE_REG + 0x18)

Whether a DMA is in progress.

◆ SP_SEMAPHORE_REG

#define SP_SEMAPHORE_REG   (SP_BASE_REG + 0x1C)

The semaphore shared with the CPU.

◆ SP_PC_REG

#define SP_PC_REG   0x04080000

The program counter of the RSP.

◆ SP_STATUS_HALT

#define SP_STATUS_HALT   0x0001

The RSP is halted.

◆ SP_STATUS_BROKE

#define SP_STATUS_BROKE   0x0002

The RSP ran a break instruction.

◆ SP_STATUS_DMA_BUSY

#define SP_STATUS_DMA_BUSY   0x0004

A DMA is in progress.

◆ SP_STATUS_DMA_FULL

#define SP_STATUS_DMA_FULL   0x0008

A second DMA is queued.

◆ SP_STATUS_IO_FULL

#define SP_STATUS_IO_FULL   0x0010

The I/O is full.

◆ SP_STATUS_SSTEP

#define SP_STATUS_SSTEP   0x0020

Single-step mode is on.

◆ SP_STATUS_INTR_BREAK

#define SP_STATUS_INTR_BREAK   0x0040

A break raises an interrupt.

◆ SP_STATUS_YIELD

#define SP_STATUS_YIELD   0x0080

Signal 0, a request to yield.

◆ SP_STATUS_YIELDED

#define SP_STATUS_YIELDED   0x0100

Signal 1, the task yielded.

◆ SP_STATUS_TASKDONE

#define SP_STATUS_TASKDONE   0x0200

Signal 2, the task finished.

◆ SP_CLR_HALT

#define SP_CLR_HALT   0x00000001

Start the RSP.

◆ SP_SET_HALT

#define SP_SET_HALT   0x00000002

Halt the RSP.

◆ SP_CLR_BROKE

#define SP_CLR_BROKE   0x00000004

Clear the break bit.

◆ SP_CLR_INTR

#define SP_CLR_INTR   0x00000008

Clear the RSP interrupt.

◆ SP_SET_INTR

#define SP_SET_INTR   0x00000010

Raise the RSP interrupt.

◆ SP_CLR_SSTEP

#define SP_CLR_SSTEP   0x00000020

Turn single-step mode off.

◆ SP_SET_SSTEP

#define SP_SET_SSTEP   0x00000040

Turn single-step mode on.

◆ SP_CLR_INTR_BREAK

#define SP_CLR_INTR_BREAK   0x00000080

A break no longer raises an interrupt.

◆ SP_SET_INTR_BREAK

#define SP_SET_INTR_BREAK   0x00000100

A break raises an interrupt.

◆ SP_CLR_SIG0

#define SP_CLR_SIG0   0x00000200

Clear signal 0.

◆ SP_SET_SIG0

#define SP_SET_SIG0   0x00000400

Set signal 0.

◆ SP_CLR_SIG1

#define SP_CLR_SIG1   0x00000800

Clear signal 1.

◆ SP_SET_SIG1

#define SP_SET_SIG1   0x00001000

Set signal 1.

◆ SP_CLR_SIG2

#define SP_CLR_SIG2   0x00002000

Clear signal 2.

◆ SP_SET_SIG2

#define SP_SET_SIG2   0x00004000

Set signal 2.

◆ SP_CLR_SIG3

#define SP_CLR_SIG3   0x00008000

Clear signal 3.

◆ SP_SET_SIG3

#define SP_SET_SIG3   0x00010000

Set signal 3.

◆ SP_CLR_SIG4

#define SP_CLR_SIG4   0x00020000

Clear signal 4.

◆ SP_SET_SIG4

#define SP_SET_SIG4   0x00040000

Set signal 4.

◆ SP_CLR_SIG5

#define SP_CLR_SIG5   0x00080000

Clear signal 5.

◆ SP_SET_SIG5

#define SP_SET_SIG5   0x00100000

Set signal 5.

◆ SP_CLR_SIG6

#define SP_CLR_SIG6   0x00200000

Clear signal 6.

◆ SP_SET_SIG6

#define SP_SET_SIG6   0x00400000

Set signal 6.

◆ SP_CLR_SIG7

#define SP_CLR_SIG7   0x00800000

Clear signal 7.

◆ SP_SET_SIG7

#define SP_SET_SIG7   0x01000000

Set signal 7.

◆ SP_CLR_YIELD

#define SP_CLR_YIELD   SP_CLR_SIG0

Withdraw the request to yield.

◆ SP_SET_YIELD

#define SP_SET_YIELD   SP_SET_SIG0

Request that the task yield.

◆ SP_CLR_YIELDED

#define SP_CLR_YIELDED   SP_CLR_SIG1

Clear the mark of a yielded task.

◆ SP_SET_YIELDED

#define SP_SET_YIELDED   SP_SET_SIG1

Mark the task as yielded.

◆ SP_CLR_TASKDONE

#define SP_CLR_TASKDONE   SP_CLR_SIG2

Clear the mark of a finished task.

◆ SP_SET_TASKDONE

#define SP_SET_TASKDONE   SP_SET_SIG2

Mark the task as finished.

◆ DPC_BASE_REG

#define DPC_BASE_REG   0x04100000

The base address of the RDP registers.

◆ DPC_START_REG

#define DPC_START_REG   (DPC_BASE_REG + 0x00)

The start of the command buffer.

◆ DPC_END_REG

#define DPC_END_REG   (DPC_BASE_REG + 0x04)

The end of the command buffer.

◆ DPC_CURRENT_REG

#define DPC_CURRENT_REG   (DPC_BASE_REG + 0x08)

The command being read.

◆ DPC_STATUS_REG

#define DPC_STATUS_REG   (DPC_BASE_REG + 0x0C)

The status on read and the control on write.

◆ DPC_CLOCK_REG

#define DPC_CLOCK_REG   (DPC_BASE_REG + 0x10)

The clock counter.

◆ DPC_BUFBUSY_REG

#define DPC_BUFBUSY_REG   (DPC_BASE_REG + 0x14)

The buffer busy counter.

◆ DPC_PIPEBUSY_REG

#define DPC_PIPEBUSY_REG   (DPC_BASE_REG + 0x18)

The pipe busy counter.

◆ DPC_TMEM_REG

#define DPC_TMEM_REG   (DPC_BASE_REG + 0x1C)

The texture memory load counter.

◆ MI_BASE_REG

#define MI_BASE_REG   0x04300000

The base address of the MI registers.

◆ MI_INIT_MODE_REG

#define MI_INIT_MODE_REG   (MI_BASE_REG + 0x00)

The mode register.

◆ MI_MODE_REG

#define MI_MODE_REG   MI_INIT_MODE_REG

Another name of the mode register.

◆ MI_VERSION_REG

#define MI_VERSION_REG   (MI_BASE_REG + 0x04)

The versions of the RCP parts.

◆ MI_INTR_REG

#define MI_INTR_REG   (MI_BASE_REG + 0x08)

The pending RCP interrupts.

◆ MI_INTR_MASK_REG

#define MI_INTR_MASK_REG   (MI_BASE_REG + 0x0C)

The enabled RCP interrupts.

◆ MI_CLR_DP_INTR

#define MI_CLR_DP_INTR   0x0800

Written to the mode register, clear the RDP interrupt.

◆ MI_INTR_SP

#define MI_INTR_SP   0x01

The RSP interrupt.

◆ MI_INTR_SI

#define MI_INTR_SI   0x02

The serial interface interrupt.

◆ MI_INTR_AI

#define MI_INTR_AI   0x04

The audio interface interrupt.

◆ MI_INTR_VI

#define MI_INTR_VI   0x08

The video interface interrupt.

◆ MI_INTR_PI

#define MI_INTR_PI   0x10

The peripheral interface interrupt.

◆ MI_INTR_DP

#define MI_INTR_DP   0x20

The RDP interrupt.

◆ MI_INTR_MASK_CLR_SP

#define MI_INTR_MASK_CLR_SP   0x0001

Disable the RSP interrupt.

◆ MI_INTR_MASK_SET_SP

#define MI_INTR_MASK_SET_SP   0x0002

Enable the RSP interrupt.

◆ MI_INTR_MASK_CLR_SI

#define MI_INTR_MASK_CLR_SI   0x0004

Disable the serial interface interrupt.

◆ MI_INTR_MASK_SET_SI

#define MI_INTR_MASK_SET_SI   0x0008

Enable the serial interface interrupt.

◆ MI_INTR_MASK_CLR_AI

#define MI_INTR_MASK_CLR_AI   0x0010

Disable the audio interface interrupt.

◆ MI_INTR_MASK_SET_AI

#define MI_INTR_MASK_SET_AI   0x0020

Enable the audio interface interrupt.

◆ MI_INTR_MASK_CLR_VI

#define MI_INTR_MASK_CLR_VI   0x0040

Disable the video interface interrupt.

◆ MI_INTR_MASK_SET_VI

#define MI_INTR_MASK_SET_VI   0x0080

Enable the video interface interrupt.

◆ MI_INTR_MASK_CLR_PI

#define MI_INTR_MASK_CLR_PI   0x0100

Disable the peripheral interface interrupt.

◆ MI_INTR_MASK_SET_PI

#define MI_INTR_MASK_SET_PI   0x0200

Enable the peripheral interface interrupt.

◆ MI_INTR_MASK_CLR_DP

#define MI_INTR_MASK_CLR_DP   0x0400

Disable the RDP interrupt.

◆ MI_INTR_MASK_SET_DP

#define MI_INTR_MASK_SET_DP   0x0800

Enable the RDP interrupt.

◆ VI_BASE_REG

#define VI_BASE_REG   0x04400000

The base address of the VI registers.

◆ VI_STATUS_REG

#define VI_STATUS_REG   (VI_BASE_REG + 0x00)

The control register.

◆ VI_CONTROL_REG

#define VI_CONTROL_REG   VI_STATUS_REG

Another name of the control register.

◆ VI_ORIGIN_REG

#define VI_ORIGIN_REG   (VI_BASE_REG + 0x04)

The RDRAM address of the frame buffer.

◆ VI_DRAM_ADDR_REG

#define VI_DRAM_ADDR_REG   VI_ORIGIN_REG

Another name of the origin register.

◆ VI_WIDTH_REG

#define VI_WIDTH_REG   (VI_BASE_REG + 0x08)

The width of the frame buffer in pixels.

◆ VI_H_WIDTH_REG

#define VI_H_WIDTH_REG   VI_WIDTH_REG

Another name of the width register.

◆ VI_INTR_REG

#define VI_INTR_REG   (VI_BASE_REG + 0x0C)

The half-line that raises the interrupt.

◆ VI_V_INTR_REG

#define VI_V_INTR_REG   VI_INTR_REG

Another name of the interrupt register.

◆ VI_CURRENT_REG

#define VI_CURRENT_REG   (VI_BASE_REG + 0x10)

The current half-line; writing clears the IRQ.

◆ VI_V_CURRENT_LINE_REG

#define VI_V_CURRENT_LINE_REG   VI_CURRENT_REG

Another name of the current line register.

◆ VI_BURST_REG

#define VI_BURST_REG   (VI_BASE_REG + 0x14)

The timing of the colour burst and sync.

◆ VI_TIMING_REG

#define VI_TIMING_REG   VI_BURST_REG

Another name of the burst register.

◆ VI_V_SYNC_REG

#define VI_V_SYNC_REG   (VI_BASE_REG + 0x18)

The half-lines per field.

◆ VI_H_SYNC_REG

#define VI_H_SYNC_REG   (VI_BASE_REG + 0x1C)

The length of a line and the leap pattern.

◆ VI_LEAP_REG

#define VI_LEAP_REG   (VI_BASE_REG + 0x20)

The two alternate line lengths.

◆ VI_H_SYNC_LEAP_REG

#define VI_H_SYNC_LEAP_REG   VI_LEAP_REG

Another name of the leap register.

◆ VI_H_START_REG

#define VI_H_START_REG   (VI_BASE_REG + 0x24)

The start and end of the visible pixels.

◆ VI_H_VIDEO_REG

#define VI_H_VIDEO_REG   VI_H_START_REG

Another name of the horizontal start register.

◆ VI_V_START_REG

#define VI_V_START_REG   (VI_BASE_REG + 0x28)

The start and end of the visible lines.

◆ VI_V_VIDEO_REG

#define VI_V_VIDEO_REG   VI_V_START_REG

Another name of the vertical start register.

◆ VI_V_BURST_REG

#define VI_V_BURST_REG   (VI_BASE_REG + 0x2C)

The lines of the colour burst.

◆ VI_X_SCALE_REG

#define VI_X_SCALE_REG   (VI_BASE_REG + 0x30)

The horizontal scale and subpixel offset.

◆ VI_Y_SCALE_REG

#define VI_Y_SCALE_REG   (VI_BASE_REG + 0x34)

The vertical scale and subpixel offset.

◆ AI_BASE_REG

#define AI_BASE_REG   0x04500000

The base address of the AI registers.

◆ AI_DRAM_ADDR_REG

#define AI_DRAM_ADDR_REG   (AI_BASE_REG + 0x00)

The RDRAM address of the next buffer.

◆ AI_LEN_REG

#define AI_LEN_REG   (AI_BASE_REG + 0x04)

The length of the buffer; writing queues it.

◆ AI_CONTROL_REG

#define AI_CONTROL_REG   (AI_BASE_REG + 0x08)

The control register.

◆ AI_STATUS_REG

#define AI_STATUS_REG   (AI_BASE_REG + 0x0C)

The status; writing clears the interrupt.

◆ AI_DACRATE_REG

#define AI_DACRATE_REG   (AI_BASE_REG + 0x10)

The divider of the sample rate.

◆ AI_BITRATE_REG

#define AI_BITRATE_REG   (AI_BASE_REG + 0x14)

The divider of the bit rate.

◆ AI_CONTROL_DMA_ON

#define AI_CONTROL_DMA_ON   0x01

Enable the audio DMA.

◆ AI_STATUS_FIFO_FULL

#define AI_STATUS_FIFO_FULL   (1U << 31)

Both buffers are queued.

◆ AI_STATUS_DMA_BUSY

#define AI_STATUS_DMA_BUSY   (1 << 30)

A buffer is playing.

◆ AI_MAX_BIT_RATE

#define AI_MAX_BIT_RATE   16

The largest bit rate divider.

◆ AI_MAX_DAC_RATE

#define AI_MAX_DAC_RATE   16384

The largest sample rate divider.

◆ AI_MIN_DAC_RATE

#define AI_MIN_DAC_RATE   132

The smallest sample rate divider.

◆ PI_BASE_REG

#define PI_BASE_REG   0x04600000

The base address of the PI registers.

◆ PI_DRAM_ADDR_REG

#define PI_DRAM_ADDR_REG   (PI_BASE_REG + 0x00)

The RDRAM address of a DMA.

◆ PI_CART_ADDR_REG

#define PI_CART_ADDR_REG   (PI_BASE_REG + 0x04)

The cartridge address of a DMA.

◆ PI_RD_LEN_REG

#define PI_RD_LEN_REG   (PI_BASE_REG + 0x08)

The length of a DMA to the cartridge.

◆ PI_WR_LEN_REG

#define PI_WR_LEN_REG   (PI_BASE_REG + 0x0C)

The length of a DMA from the cartridge.

◆ PI_STATUS_REG

#define PI_STATUS_REG   (PI_BASE_REG + 0x10)

The status on read and the control on write.

◆ PI_BSD_DOM1_LAT_REG

#define PI_BSD_DOM1_LAT_REG   (PI_BASE_REG + 0x14)

The latency of domain 1.

◆ PI_BSD_DOM1_PWD_REG

#define PI_BSD_DOM1_PWD_REG   (PI_BASE_REG + 0x18)

The pulse width of domain 1.

◆ PI_BSD_DOM1_PGS_REG

#define PI_BSD_DOM1_PGS_REG   (PI_BASE_REG + 0x1C)

The page size of domain 1.

◆ PI_BSD_DOM1_RLS_REG

#define PI_BSD_DOM1_RLS_REG   (PI_BASE_REG + 0x20)

The release duration of domain 1.

◆ PI_BSD_DOM2_LAT_REG

#define PI_BSD_DOM2_LAT_REG   (PI_BASE_REG + 0x24)

The latency of domain 2.

◆ PI_BSD_DOM2_PWD_REG

#define PI_BSD_DOM2_PWD_REG   (PI_BASE_REG + 0x28)

The pulse width of domain 2.

◆ PI_BSD_DOM2_PGS_REG

#define PI_BSD_DOM2_PGS_REG   (PI_BASE_REG + 0x2C)

The page size of domain 2.

◆ PI_BSD_DOM2_RLS_REG

#define PI_BSD_DOM2_RLS_REG   (PI_BASE_REG + 0x30)

The release duration of domain 2.

◆ PI_STATUS_DMA_BUSY

#define PI_STATUS_DMA_BUSY   0x01

On read, a DMA is in progress.

◆ PI_STATUS_IO_BUSY

#define PI_STATUS_IO_BUSY   0x02

On read, an I/O access is in progress.

◆ PI_STATUS_ERROR

#define PI_STATUS_ERROR   0x04

On read, the last access failed.

◆ PI_STATUS_RESET

#define PI_STATUS_RESET   0x01

On write, reset the controller.

◆ PI_STATUS_CLR_INTR

#define PI_STATUS_CLR_INTR   0x02

On write, clear the PI interrupt.

◆ PI_DOM1_ADDR2

#define PI_DOM1_ADDR2   0x10000000

The cartridge ROM in domain 1.

◆ PI_DOM2_ADDR2

#define PI_DOM2_ADDR2   0x08000000

SRAM in domain 2.

◆ RI_BASE_REG

#define RI_BASE_REG   0x04700000

The base address of the RI registers.

◆ RI_SELECT_REG

#define RI_SELECT_REG   (RI_BASE_REG + 0x0C)

Zero until RDRAM is set up.

◆ SI_BASE_REG

#define SI_BASE_REG   0x04800000

The base address of the SI registers.

◆ SI_DRAM_ADDR_REG

#define SI_DRAM_ADDR_REG   (SI_BASE_REG + 0x00)

The RDRAM address of a DMA.

◆ SI_PIF_ADDR_RD64B_REG

#define SI_PIF_ADDR_RD64B_REG   (SI_BASE_REG + 0x04)

Writing starts 64 bytes from PIF RAM.

◆ SI_PIF_ADDR_WR64B_REG

#define SI_PIF_ADDR_WR64B_REG   (SI_BASE_REG + 0x10)

Writing starts 64 bytes to PIF RAM.

◆ SI_STATUS_REG

#define SI_STATUS_REG   (SI_BASE_REG + 0x18)

The status; writing clears the interrupt.

◆ SI_STATUS_DMA_BUSY

#define SI_STATUS_DMA_BUSY   0x0001

A DMA is in progress.

◆ SI_STATUS_RD_BUSY

#define SI_STATUS_RD_BUSY   0x0002

An I/O read is in progress.

◆ SI_STATUS_DMA_ERROR

#define SI_STATUS_DMA_ERROR   0x0008

The last DMA overlapped another.

◆ SI_STATUS_INTERRUPT

#define SI_STATUS_INTERRUPT   0x1000

The SI interrupt is pending.

◆ PIF_RAM_START

#define PIF_RAM_START   0x1FC007C0

The first byte of PIF RAM.

◆ PIF_RAM_END

#define PIF_RAM_END   0x1FC007FF

The last byte of PIF RAM.