代码搜索结果
找到约 10,000 项符合
DMA 的代码
dma范例.txt
/*
* 声明:本范例源于书籍‘NiosII软件架构解析’
* 作者:蔡伟纲
* 博客地址: http://NiosII.cublog.cn
*
* 一、功能: <mark>DMA</mark>(Memory to Memory)驱动演示代码.
* 二、运行前提: 本范例需要硬件开发板的支持,
* 要求NiosII系统包含名为”<mark>dma</mark>”的<mark>DMA</mark>模块,
* 且<mark>DMA</mark>的长度寄存 ...
dma.h
#ifndef __DMA_H__
#define __DMA_H__
void Test_Zdma0(void);
void Test_Zdma1(void);
//void Test_Zdma0Xdreq(void);
#endif /*__DMA_H__*/
dma.c
/**********************************************************************
CAUTION: DMA operation is being done in cache-on state NOW.
So,some read value may be not same with real memory value
dma.err
"dma.c", line 146: Warning: signed constant overflow: '
dma.h
int setup_dma(int chan, int32 physaddr, uint16 length,int mode);
uint16 dma_cnt(int chan);
int dma_disable(int chan);
int dma_enable(int chan);
void *dma_malloc(int32 *,unsigned short);
int dis_d
dma.c
/* PC DMA support functions
*/
#include
#include
#include "global.h"
#include "dma.h"
#include "nospc.h"
/* I/O port addresses for DMA page registers on the PC/AT */
static