Go to the documentation of this file.00001
00006 #ifndef __LIBDRAGON_DMA_H
00007 #define __LIBDRAGON_DMA_H
00008
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012
00013 void dma_write(void * ram_address, unsigned long pi_address, unsigned long len);
00014 void dma_read(void * ram_address, unsigned long pi_address, unsigned long len);
00015 volatile int dma_busy();
00016
00017
00018 uint32_t io_read(uint32_t pi_address);
00019
00020
00021 void io_write(uint32_t pi_address, uint32_t data);
00022
00023 #ifdef __cplusplus
00024 }
00025 #endif
00026
00027 #endif