|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include <stdint.h>#include "common/hardware/dma.h"#include "common/hardware/hwregs.h"#include "common/syscalls/syscalls.h"
Classes | |
| struct | Res |
Macros | |
| #define | BUSY 0x01000000u |
| #define | TRIG 0x10000000u |
| #define | POISON 0x00fffffeu |
| #define | LIMIT 400000u |
| #define | IRQ_DMA_BIT 0x8u |
| #define | SPUCNT (*(volatile uint16_t *)0xbf801daa) |
| #define | SPUSTAT (*(volatile uint16_t *)0xbf801dae) |
| #define | SPU_ADDR (*(volatile uint16_t *)0xbf801da6) |
| #define | SPU_TCTRL (*(volatile uint16_t *)0xbf801dac) |
| #define | MDEC_CMD (*(volatile uint32_t *)0xbf801820) |
| #define | MDEC_CTRL (*(volatile uint32_t *)0xbf801824) |
| #define | CD_REG0 (*(volatile uint8_t *)0xbf801800) |
| #define | CD_REG3 (*(volatile uint8_t *)0xbf801803) |
| #define | NBUF 64 |
| #define | SPU_BASE 0x10000u /* bytes, past the capture buffers */ |
Functions | |
| int | main (void) |
| #define BUSY 0x01000000u |
| #define IRQ_DMA_BIT 0x8u |
| #define LIMIT 400000u |
| #define NBUF 64 |
| #define POISON 0x00fffffeu |
| #define TRIG 0x10000000u |