Skip to content

Commit

Permalink
What the hell happened to dma.h
Browse files Browse the repository at this point in the history
  • Loading branch information
andwn committed May 1, 2024
1 parent 9a8fc33 commit 73c556f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/md/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@

#include "types.h"

#define DmaVRAM 0x40000080LU
#define DmaCRAM 0xC0000080LU
#define DmaVSRAM 0x40000090LU

#define dma_now(cmd, from, to, len, inc) { \
dma_queue(cmd, from, to, len, inc); \
dma_pop(); \
}

extern void dma_queue(uint32_t cmd, uint32_t from, uint16_t to, uint16_t len, uint16_t inc);
extern void dma_pop();
extern void dma_flush();
extern void dma_clear();

#endif //MD_DMA_H

0 comments on commit 73c556f

Please sign in to comment.