代码搜索结果
找到约 10,000 项符合
DMA 的代码
dma.h
#ifndef DMA_ADMIN_H
#define DMA_ADMIN_H
#define MAX_DMA_CHANNEL 4
//#define DMA_IS_USED 1
#define DMA_IS_HWTRIG 2
#define DMA_IS_SWTRIG 1
#define DMA_IS_FREE 0
// request source
#define R
dma.c
#include "def.h"
#include "option.h"
#include "2440addr.h"
#include "2440lib.h"
#include "2440slib.h"
#include "dma.h"
#define DMA_CHECK_ATTR 1
typedef struct{ //can't use __packed???
dma范例.txt
/*
* 声明:本范例源于书籍‘NiosII软件架构解析’
* 作者:蔡伟纲
* 博客地址: http://NiosII.cublog.cn
*
* 一、功能: <mark>DMA</mark>(Memory to Memory)驱动演示代码.
* 二、运行前提: 本范例需要硬件开发板的支持,
* 要求NiosII系统包含名为”<mark>dma</mark>”的<mark>DMA</mark>模块,
* 且<mark>DMA</mark>的长度寄存 ...
dma范例.txt
/*
* 声明:本范例源于书籍‘NiosII软件架构解析’
* 作者:蔡伟纲
* 博客地址: http://NiosII.cublog.cn
*
* 一、功能: <mark>DMA</mark>(Memory to Memory)驱动演示代码.
* 二、运行前提: 本范例需要硬件开发板的支持,
* 要求NiosII系统包含名为”<mark>dma</mark>”的<mark>DMA</mark>模块,
* 且<mark>DMA</mark>的长度寄存 ...
dma.c
#ifndef DMA_C
#define DMA_C
#include "Dma.h"
#include "2410addr.h"
#include "Def.h"
#include "Lcd_Test.h"
//int dmaDone;
static void __irq Dma0Done(void)
{
//ClearPending(BIT_DMA0);
dma.h
#ifndef DMA_H
#define DMA_H
void Dma(void);
#endif
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