亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dma.h

?? 自己修改的U-boot1.1.4For AT91RM9200DK. 請用armgcc3.3.2編譯。
?? H
字號:
#ifndef DMA_H#define DMA_H/******************************************************* * * copyright @ Motorola 1999 * *******************************************************/#define NUM_DMA_REG   7#define DMA_MR_REG    0#define DMA_SR_REG    1#define DMA_CDAR_REG  2#define DMA_SAR_REG   3#define DMA_DAR_REG   4#define DMA_BCR_REG   5#define DMA_NDAR_REG  6typedef enum _dmastatus{	DMASUCCESS = 0x1000,	DMALMERROR,	DMAPERROR,	DMACHNBUSY,	DMAEOSINT,	DMAEOCAINT,	DMAINVALID,	DMANOEVENT,} DMAStatus;typedef enum _location{	LOCAL = 0,     /* local processor accesses on board DMA,			          local processor's eumbbar is required */	REMOTE = 1,    /* PCI master accesses DMA on I/O board,			          I/O processor's pcsrbar is required */} LOCATION;typedef enum dma_mr_bit{	IRQS    = 0x00080000,    PDE     = 0x00040000,	DAHTS   = 0x00030000,	SAHTS   = 0x0000c000,	DAHE    = 0x00002000,	SAHE    = 0x00001000,	PRC     = 0x00000c00,	EIE     = 0x00000080,	EOTIE   = 0x00000040,	DL      = 0x00000008,	CTM     = 0x00000004,	CC      = 0x00000002,	CS      = 0x00000001,} DMA_MR_BIT;typedef enum dma_sr_bit{	LME     = 0x00000080,	PE      = 0x00000010,	CB      = 0x00000004,	EOSI    = 0x00000002,	EOCAI   = 0x00000001,} DMA_SR_BIT;/* structure for DMA Mode Register */typedef struct _dma_mr{	unsigned int  reserved0 : 12;	unsigned int  irqs      : 1;	unsigned int  pde       : 1;	unsigned int  dahts     : 2;    unsigned int  sahts     : 2;	unsigned int  dahe      : 1;	unsigned int  sahe      : 1;	unsigned int  prc       : 2;	unsigned int  reserved1 : 1;	unsigned int  eie       : 1;	unsigned int  eotie     : 1;	unsigned int  reserved2 : 3;	unsigned int  dl        : 1;	unsigned int  ctm       : 1;	/* if chaining mode is enabled, any time, user can modify the	 * descriptor and does not need to halt the current DMA transaction.	 * Set CC bit, enable DMA to process the modified descriptors	 * Hardware will clear this bit each time, DMA starts.	 */	unsigned int  cc        : 1;	/* cs bit has dua role, halt the current DMA transaction and	 * (re)start DMA transaction. In chaining mode, if the descriptor	 * needs modification, cs bit shall be used not the cc bit.	 * Hardware will not set/clear this bit each time DMA transaction	 * stops or starts. Software shall do it.	 *	 * cs bit shall not be used to halt chaining DMA transaction for	 * modifying the descriptor. That is the role of CC bit.	 */	unsigned int  cs        : 1;} DMA_MR;/* structure for DMA Status register */typedef struct _dma_sr{	unsigned int  reserved0 : 24;	unsigned int  lme       : 1;	unsigned int  reserved1 : 2;	unsigned int  pe        : 1;	unsigned int  reserved2 : 1;	unsigned int  cb        : 1;	unsigned int  eosi      : 1;	unsigned int  eocai     : 1;} DMA_SR;/* structure for DMA current descriptor address register */typedef struct _dma_cdar{	unsigned int  cda    : 27;	unsigned int snen    : 1;	unsigned int eosie   : 1;	unsigned int ctt     : 2;	unsigned int eotd    : 1;} DMA_CDAR;/* structure for DMA byte count register */typedef struct _dma_bcr{	unsigned int reserved : 6;	unsigned int  bcr      : 26;} DMA_BCR;/* structure for DMA Next Descriptor Address register */typedef struct _dma_ndar{	unsigned int nda    : 27;	unsigned int ndsnen : 1;	unsigned int ndeosie: 1;	unsigned int ndctt  : 2;	unsigned int eotd   : 1;} DMA_NDAR;/* structure for DMA current transaction info */typedef struct _dma_curr{	unsigned int src_addr;	unsigned int dest_addr;	unsigned int byte_cnt;} DMA_CURR;/************************* Kernel API******************** * Kernel APIs are used to interface with O.S. kernel. * They are the functions required by O.S. kernel to * provide I/O service. ********************************************************//**************DMA Device Control Functions ********//** * Note: * * In all following functions, the host (KAHLUA) processor has a * choice of accessing on board local DMA (LOCAL), * or DMA on a distributed KAHLUA (REMOTE). In either case, * the caller shall pass the configured embedded utility memory * block base address relative to the DMA. If LOCAL DMA is used, * this parameter shall be EUMBBAR, if REMOTE is used, the * parameter shall be the corresponding PCSRBAR. **//************************************************************** * function: DMA_Get_Stat * * description: return the content of status register of *              the given DMA channel *              if error, return DMAINVALID. Otherwise return *              DMASUCCESS. * **************************************************************/static DMAStatus DMA_Get_Stat( LOCATION, unsigned int eumbbar, unsigned int channel, DMA_SR * );/************************************************************** * function: DMA_Get_Mode * * description: return the content of mode register of the *              given DMA channel *              if error, return DMAINVALID. Otherwise return DMASUCCESS. * **************************************************************/static DMAStatus DMA_Get_Mode( LOCATION, unsigned int eumbbar, unsigned int channel, DMA_MR * );/************************************************************** * function: DMA_Set_Mode * * description: Set a new mode to a given DMA channel *              return DMASUCCESS if success, otherwise return DMACHNINVALID * * note: It is not a good idea of changing the DMA mode during *       the middle of a transaction. **************************************************************/static DMAStatus DMA_Set_Mode( LOCATION, unsigned int eumbbar, unsigned int channel, DMA_MR mode );/************************************************************* * function: DMA_ISR * * description: DMA interrupt service routine *              return DMAStatus based on the status * *************************************************************/static DMAStatus    DMA_ISR( unsigned int eumbbar,							 unsigned int channel,						     DMAStatus (*lme_func)( unsigned int, unsigned int, DMAStatus ),					         DMAStatus (*pe_func) ( unsigned int, unsigned int, DMAStatus ),					         DMAStatus (*eosi_func)( unsigned int, unsigned int, DMAStatus ),					         DMAStatus (*eocai_func)(unsigned int, unsigned int, DMAStatus ));static DMAStatus dma_error_func( unsigned int, unsigned int, DMAStatus );/********************* DMA I/O function ********************//************************************************************ * function: DMA_Start * * description: start a given DMA channel transaction *              return DMASUCCESS if success, otherwise return DMACHNINVALID * * note: this function will clear DMA_MR(CC) first, then *       set DMA_MR(CC). ***********************************************************/static DMAStatus DMA_Start( LOCATION, unsigned int eumbbar,unsigned int channel );/*********************************************************** * function: DMA_Halt * * description: halt the current dma transaction on the specified *              channel. *              return DMASUCCESS if success, otherwise return DMACHNINVALID * * note: if the specified DMA channel is idle, nothing happens *************************************************************/static DMAStatus DMA_Halt( LOCATION, unsigned int eumbbar,unsigned int channel );/************************************************************* * function: DMA_Chn_Cnt * * description: set the DMA_MR(CC) bit for a given channel *              that is in chaining mode. *              return DMASUCCESS if successfule, otherwise return DMACHNINVALID * * note: if the given channel is not in chaining mode, nothing *       happen. * *************************************************************/static DMAStatus DMA_Chn_Cnt( LOCATION, unsigned int eumbbar,unsigned int channel );/*********************** App. API *************************** * App. API are the APIs Kernel provides for the application * level program ************************************************************//************************************************************** * function: DMA_Bld_Curr * * description: set current src, dest, byte count registers *              according to the desp for a given channel * *              if the given channel is busy,  no change made, *              return DMACHNBUSY. * *              otherwise return DMASUCCESS. * * note: **************************************************************/static DMAStatus DMA_Bld_Curr( LOCATION,								  unsigned int eumbbar,								  unsigned int channel,							      DMA_CURR     desp );/************************************************************** * function: DMA_Poke_Curr * * description: poke the current src, dest, byte count registers *              for a given channel. * *              return DMASUCCESS if no error otherwise return DMACHNERROR * * note:        Due to the undeterministic parallelism, in chaining *              mode, the value returned by this function shall *              be taken as reference when the query is made rather *              than the absolute snapshot when the value is returned. **************************************************************/static DMAStatus DMA_Poke_Curr( LOCATION,							   unsigned int eumbbar,							   unsigned int channel,						       DMA_CURR*    desp );/************************************************************** * function: DMA_Bld_Desp * * description: set current descriptor address register *              according to the desp for a given channel * *              if the given channel is busy return DMACHNBUSY *              and no change made, otherwise return DMASUCCESS. * * note: **************************************************************/static DMAStatus DMA_Bld_Desp( LOCATION host,					          unsigned int eumbbar,					          unsigned int channel,					          DMA_CDAR     desp );/************************************************************** * function: DMA_Poke_Desp * * description: poke the current descriptor address register *              for a given channel * *              return DMASUCCESS if no error otherwise return *              DMAINVALID * * note: Due to the undeterministic parallellism of DMA operation, *       the value returned by this function shall be taken as *       the most recently used descriptor when the last time *       DMA starts a chaining mode operation. **************************************************************/static DMAStatus DMA_Poke_Desp( LOCATION,							   unsigned int eumbbar,							   unsigned int channel,						       DMA_CDAR     *desp );#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美韩日一区二区三区| 91精品国产手机| 精品一区二区三区不卡| 午夜精品123| 无吗不卡中文字幕| 五月婷婷激情综合网| 性做久久久久久免费观看| 亚洲成人一区二区在线观看| 亚洲精品乱码久久久久久 | 欧美精品在线观看播放| 一本大道久久a久久综合| 色香蕉成人二区免费| 色噜噜狠狠成人中文综合| 在线视频中文字幕一区二区| 欧美撒尿777hd撒尿| 欧美久久一二区| 精品少妇一区二区三区视频免付费| 日韩午夜三级在线| 中文字幕国产精品一区二区| 中文字幕一区av| 亚洲国产成人91porn| 日韩高清一区在线| 国产精品一区二区你懂的| 成人精品一区二区三区中文字幕| 成人精品高清在线| 欧美日韩色一区| 国产午夜久久久久| 伊人开心综合网| 久久av老司机精品网站导航| 国产成人av一区| 欧美三级中文字幕在线观看| 日韩精品一区二区三区中文精品| 日本一区二区三区电影| 亚洲最新在线观看| 国产一区二区免费视频| 一本到不卡精品视频在线观看| 欧美一区二区三区日韩| 国产精品久久久久久亚洲毛片 | 青青青爽久久午夜综合久久午夜| 久久99精品国产麻豆婷婷洗澡| 成人午夜免费电影| 欧美日韩另类一区| 久久久精品免费网站| 亚洲bdsm女犯bdsm网站| 高清成人在线观看| 56国语精品自产拍在线观看| 国产精品视频免费看| 日韩国产在线一| 一本久道久久综合中文字幕 | 国产性天天综合网| 午夜精品爽啪视频| 一本一本大道香蕉久在线精品| 欧美mv日韩mv| 日本大胆欧美人术艺术动态| 91美女福利视频| 国产女同互慰高潮91漫画| 日韩中文欧美在线| 欧美中文字幕不卡| 国产精品久久久久影院亚瑟| 国产精品中文有码| 精品久久久久久久久久久久久久久久久 | 久久er99热精品一区二区| 在线观看日韩国产| 亚洲免费观看在线视频| 国产激情偷乱视频一区二区三区 | 麻豆一区二区三区| 5月丁香婷婷综合| 亚洲一区二区在线观看视频| 亚洲日本丝袜连裤袜办公室| 成人av网站在线观看免费| 日韩小视频在线观看专区| 中文字幕制服丝袜一区二区三区 | 欧美96一区二区免费视频| 成人动漫视频在线| 337p日本欧洲亚洲大胆色噜噜| 午夜精品爽啪视频| 欧美久久久久久久久| 亚洲伊人伊色伊影伊综合网| 色综合久久综合网97色综合| 一区二区三区在线观看动漫| 色婷婷精品久久二区二区蜜臀av| 国产精品久久久久久久久免费桃花| 国产成人免费xxxxxxxx| 亚洲国产成人一区二区三区| 成人精品一区二区三区四区| 中文字幕五月欧美| 色94色欧美sute亚洲线路二 | 在线观看不卡视频| 一区二区高清免费观看影视大全| 日本高清不卡视频| 日韩精品电影在线观看| 日韩一二三四区| 国产精品亚洲一区二区三区妖精| 国产欧美一区二区精品秋霞影院 | 亚洲 欧美综合在线网络| 欧美日韩一级二级| 日本sm残虐另类| 久久精品亚洲乱码伦伦中文| 成人av第一页| 性久久久久久久久久久久| 精品国精品国产| aaa国产一区| 日本成人超碰在线观看| 国产午夜精品一区二区三区四区| 99国产欧美另类久久久精品| 亚洲成国产人片在线观看| 欧美成人bangbros| www.在线成人| 日韩影院免费视频| 亚洲国产电影在线观看| 欧美日韩国产精品成人| 国产剧情一区在线| 一区2区3区在线看| 精品国产一区二区三区久久久蜜月| 成人性视频网站| 日韩av在线播放中文字幕| 亚洲国产电影在线观看| 欧美一区二区视频观看视频| 粉嫩av亚洲一区二区图片| 亚洲电影一级黄| 久久久综合精品| 欧美日韩一级黄| 成人一级片网址| 狠狠狠色丁香婷婷综合激情 | 亚洲电影第三页| 欧美国产国产综合| 日韩一级欧美一级| 99久久精品免费看| 国产一区二区0| 亚洲成人综合在线| **欧美大码日韩| 精品精品国产高清a毛片牛牛| 欧美综合天天夜夜久久| 成人午夜激情在线| 国产精品一区二区久久不卡| 亚洲v中文字幕| 一区二区三区在线看| 中文成人综合网| 国产欧美视频在线观看| 日韩欧美123| 日韩欧美一级二级三级| 6080午夜不卡| 欧美日韩大陆在线| 欧美日韩一级片在线观看| 色噜噜狠狠成人中文综合| 成人app下载| 成人18视频在线播放| 国产91露脸合集magnet| 国产精品18久久久久久久久久久久| 日韩电影在线观看网站| 天堂久久一区二区三区| 一区二区三区精品久久久| 亚洲男人的天堂在线aⅴ视频| 中文字幕的久久| 成人欧美一区二区三区小说| 亚洲欧洲日韩在线| 亚洲美女精品一区| 亚洲一区视频在线| 亚洲成a人v欧美综合天堂下载| 亚洲一区在线视频| 亚洲国产人成综合网站| 日韩国产欧美在线观看| 丝袜美腿成人在线| 日韩av成人高清| 美女尤物国产一区| 韩国av一区二区| 成人精品国产福利| 欧美性猛交xxxx乱大交退制版 | 中文字幕av一区二区三区免费看| 精品国产免费久久 | 亚洲人成网站影音先锋播放| 亚洲伦理在线精品| 婷婷六月综合网| 精品一区二区三区免费观看| 国产精品一区二区男女羞羞无遮挡| 成人精品电影在线观看| 日本二三区不卡| 欧美一级艳片视频免费观看| 久久这里只精品最新地址| 国产精品毛片a∨一区二区三区| 中文字幕一区二区不卡| 婷婷综合另类小说色区| 国产精品一二三| 在线观看av一区| 精品福利一区二区三区免费视频| 亚洲国产精品成人综合色在线婷婷| 亚洲欧美电影一区二区| 奇米亚洲午夜久久精品| av在线不卡网| 欧美成人aa大片| 亚洲精品第一国产综合野| 另类综合日韩欧美亚洲| 色综合久久中文综合久久97| 日韩欧美国产综合在线一区二区三区| 国产三区在线成人av| 天天色综合天天| 91免费版pro下载短视频| 精品久久久久久亚洲综合网| 亚洲一区二区在线观看视频 | 日本成人在线网站|