📄 dbmx1_dma.h
字号:
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Copyright (C) 2002 Motorola Semiconductors HK Ltd * *//****************************************************************************** * * Copyright (C) 2001, Motorola All Rights Reserved * * File Name: dbmx1_dma.h * * Progammers: Yiwei Zhao * * Date of Creations: 30 Nov 2001 * * Synopsis: * * Modification History: * 30 Nov, 2001, initialization version * ******************************************************************************/#ifndef DBMX1_DMA#define DBMX1_DMA/*regsiters for dma*///#define _reg_DMA_DIMR (*((volatile unsigned long *)(IO_ADDRESS(0x209008))))/*dma transmitting*/#define _reg_DMA_SAR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209080 + channum * 0x40)))))#define _reg_DMA_DAR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209084 + channum * 0x40)))))#define _reg_DMA_CNTR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209088 + channum * 0x40)))))#define _reg_DMA_CCR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x20908C + channum * 0x40)))))#define _reg_DMA_RSSR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209090 + channum * 0x40)))))#define _reg_DMA_BLR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209094 + channum * 0x40)))))#define _reg_DMA_RTOR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x209098 + channum * 0x40)))))#define _reg_DMA_BUCR(channum) (*((volatile unsigned long *)(IO_ADDRESS((0x20909C + channum * 0x40)))))//typedef void (*callback_t)(void);//typedef void (*err_callback_t)(int error_type);void request_dma_intr(unsigned int channel,void (* mmcsd_dma_isr)(void),void (*mmcsd_dma_err_isr)(int));#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -