Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Classes | Macros | Functions
dma-chopping.c File Reference
#include <stdint.h>
#include "common/hardware/dma.h"
#include "common/hardware/hwregs.h"
#include "common/syscalls/syscalls.h"
Include dependency graph for dma-chopping.c:

Classes

struct  IRes
 
struct  Arm
 

Macros

#define T2_VALUE   (*(volatile uint32_t *)0xbf801120)
 
#define T2_MODE   (*(volatile uint32_t *)0xbf801124)
 
#define CHCR2   (*(volatile uint32_t *)0xbf8010a8)
 
#define SPAD   ((volatile uint32_t *)0x1f800000)
 
#define BUSY   0x01000000u
 
#define NWORDS   1024
 
#define LIMIT   200000u
 
#define ALU_N   300
 
#define REPS   4
 
#define CHOP(dw, cw)   (0x01000101u | ((dw) << 16) | ((cw) << 20))
 

Functions

int main (void)
 

Macro Definition Documentation

◆ ALU_N

#define ALU_N   300

◆ BUSY

#define BUSY   0x01000000u

◆ CHCR2

#define CHCR2   (*(volatile uint32_t *)0xbf8010a8)

◆ CHOP

#define CHOP (   dw,
  cw 
)    (0x01000101u | ((dw) << 16) | ((cw) << 20))

◆ LIMIT

#define LIMIT   200000u

◆ NWORDS

#define NWORDS   1024

◆ REPS

#define REPS   4

◆ SPAD

#define SPAD   ((volatile uint32_t *)0x1f800000)

◆ T2_MODE

#define T2_MODE   (*(volatile uint32_t *)0xbf801124)

◆ T2_VALUE

#define T2_VALUE   (*(volatile uint32_t *)0xbf801120)

Function Documentation

◆ main()

int main ( void  )