|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <stdint.h>#include <arch/dmac.h>#include <arch/timer.h>#include <arch/irq.h>#include <dc/pvr.h>#include <kos/genwait.h>Macros | |
| #define | ARRAY_SIZE(x) |
| #define | BUF_SIZE (1024 * 1024) |
Functions | |
| static void | dma_done (void *d) |
| static uint64_t | do_dma_transfer (unsigned int test, pvr_ptr_t vram1, pvr_ptr_t vram2) |
| int | main (int argc, char **argv) |
Variables | |
| static char | buf1 [BUF_SIZE] |
| static char | buf2 [BUF_SIZE] |
| static dma_config_t | dma_cfg |
| static const char *const | test_lbl [] |
| #define ARRAY_SIZE | ( | x | ) |
| #define BUF_SIZE (1024 * 1024) |
Referenced by do_dma_transfer(), and main().
|
static |
References genwait_wake_all(), and timer_us_gettime64().
Referenced by do_dma_transfer().
References buf1, buf2, BUF_SIZE, dma_cfg, dma_done(), dma_map_dst(), dma_map_src(), dma_transfer(), genwait_wait(), hw_to_dma_addr(), irq_disable_scoped, NULL, pvr_dma_transfer(), PVR_DMA_VRAM32, pvr_txr_load(), pvr_txr_load_dma(), and timer_us_gettime64().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References ARRAY_SIZE, BUF_SIZE, do_dma_transfer(), printf, pvr_init_defaults(), pvr_mem_free(), pvr_mem_malloc(), and test_lbl.
|
static |
Referenced by do_dma_transfer().
|
static |
Referenced by do_dma_transfer().
|
static |
Referenced by do_dma_transfer().
|
static |
Referenced by main().