31 #include <sys/cdefs.h>
57 #define SPU_DMA_MODE 6
59 #define SPU_DMA_G2CHN 0
60 #define SPU_DMA_SHCHN 3
63 #define BBA_DMA_MODE 4
64 #define BBA_DMA_G2CHN 1
65 #define BBA_DMA_SHCHN 1
70 #define BBA_DMA2_MODE 3
71 #define BBA_DMA2_G2CHN 2
72 #define BBA_DMA2_SHCHN 0
void g2_write_32(uint32 address, uint32 value)
Write a 32-bit dword to G2.
uint32 g2_read_32(uint32 address)
Read one 32-bit dword from G2.
int g2_dma_transfer(void *from, void *dest, uint32 length, int block, g2_dma_callback_t callback, ptr_t cbdata, uint32 dir, uint32 mode, uint32 g2chn, uint32 sh4chn)
uint8 g2_read_8(uint32 address)
Read one byte from G2.
void g2_write_block_16(const uint16 *input, uint32 address, int amt)
Write a block of words to G2.
void g2_fifo_wait()
Wait for the G2 write FIFO to empty.
void g2_read_block_16(uint16 *output, uint32 address, int amt)
Read a block of words from G2.
void g2_read_block_32(uint32 *output, uint32 address, int amt)
Read a block of dwords from G2.
void g2_write_8(uint32 address, uint8 value)
Write a single byte to G2.
uint16 g2_read_16(uint32 address)
Read one 16-bit word from G2.
void g2_read_block_8(uint8 *output, uint32 address, int amt)
Read a block of bytes from G2.
void g2_write_block_32(const uint32 *input, uint32 address, int amt)
Write a block of dwords to G2.
void g2_write_16(uint32 address, uint16 value)
Write a 16-bit word to G2.
unsigned short uint16
16-bit unsigned integer
Definition: types.h:29
uint32 ptr_t
Pointer arithmetic type.
Definition: types.h:47
void(* g2_dma_callback_t)(ptr_t data)
Definition: g2bus.h:74
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
void g2_memset_8(uint32 address, uint8 c, int amt)
Set a block of bytes to G2.
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
void g2_write_block_8(const uint8 *input, uint32 address, int amt)
Write a block of bytes to G2.