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

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

?? dma.h

?? AT9260的BOOTLOADER,還有幾個版本的,需要的我再放
?? 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一区二区三区免费野_久草精品视频
午夜婷婷国产麻豆精品| 国产成人亚洲综合a∨猫咪| 色综合久久综合网| 国产精品国产三级国产| 色中色一区二区| 免费人成在线不卡| 欧美国产成人精品| 欧美日韩免费不卡视频一区二区三区| 日韩福利电影在线| 国产精品美女视频| 欧美理论电影在线| 91蜜桃在线免费视频| 狠狠色狠狠色合久久伊人| 国产午夜亚洲精品午夜鲁丝片| www..com久久爱| 久久99国产精品麻豆| 亚洲尤物在线视频观看| 日本一区二区三区高清不卡| 4438x亚洲最大成人网| 色香色香欲天天天影视综合网| 国产在线国偷精品产拍免费yy| 亚洲电影你懂得| 亚洲人成网站在线| 国产精品久久毛片a| 国产欧美一区二区精品仙草咪| 欧美精品自拍偷拍| 欧美人妖巨大在线| 3d成人h动漫网站入口| 欧美日韩高清一区二区三区| 欧美日韩一区二区三区免费看| 91美女在线看| eeuss影院一区二区三区| 精品一区二区三区香蕉蜜桃| 日韩主播视频在线| 亚洲成人免费观看| 五月天视频一区| 亚洲午夜一区二区| 亚洲大型综合色站| 一区二区三区在线免费观看| 亚洲日本丝袜连裤袜办公室| 日本一区二区三区久久久久久久久不| 日韩久久精品一区| 精品国产一二三| 久久久亚洲午夜电影| 色婷婷av久久久久久久| 在线精品视频一区二区| 欧美性猛片xxxx免费看久爱| heyzo一本久久综合| 欧美日韩高清一区二区不卡| 91麻豆精品国产91久久久久久久久 | 日韩三级免费观看| 精品国产电影一区二区| 精品日韩一区二区| 亚洲手机成人高清视频| 乱一区二区av| 国产高清精品在线| 色偷偷久久人人79超碰人人澡| 欧美亚洲综合在线| xf在线a精品一区二区视频网站| 中文字幕乱码久久午夜不卡| 亚洲成av人综合在线观看| 精品一区二区国语对白| 成人妖精视频yjsp地址| 欧美蜜桃一区二区三区| 中文字幕巨乱亚洲| 美女一区二区视频| 国产不卡免费视频| 精品裸体舞一区二区三区| 一区二区高清免费观看影视大全| 美国三级日本三级久久99| 91年精品国产| 国产欧美精品在线观看| 国产一区视频导航| 欧美一二三区精品| 日韩精品一区第一页| 日本道色综合久久| 中文字幕精品一区二区精品绿巨人 | 精品久久人人做人人爰| 亚洲欧美一区二区不卡| 成人免费不卡视频| 欧美群妇大交群中文字幕| 亚洲欧美日韩久久| 色综合咪咪久久| 亚洲图片欧美色图| 欧美一级一区二区| 视频一区欧美精品| 91 com成人网| 成人性生交大片免费看视频在线| 国产日韩视频一区二区三区| 精油按摩中文字幕久久| 久久中文字幕电影| 成人爱爱电影网址| 一区二区三区四区不卡视频| 在线精品视频小说1| 日产国产欧美视频一区精品| 久久久91精品国产一区二区精品| 美女被吸乳得到大胸91| 亚洲精品写真福利| 精品久久久久香蕉网| 91亚洲精品一区二区乱码| 丝袜国产日韩另类美女| 久久久一区二区| 国产不卡视频在线播放| 亚洲gay无套男同| 国产午夜精品理论片a级大结局| 色欲综合视频天天天| 五月婷婷欧美视频| 一区二区激情视频| 国产精品久久久久一区| 777色狠狠一区二区三区| 成人va在线观看| 国产一区在线观看视频| 亚洲国产精品人人做人人爽| 国产亚洲欧洲一区高清在线观看| 在线观看日韩精品| 91黄色激情网站| 91麻豆.com| 不卡一区中文字幕| 成人综合婷婷国产精品久久| 免费在线视频一区| 日本系列欧美系列| 全国精品久久少妇| 国内精品伊人久久久久av影院| 蜜桃视频一区二区三区在线观看| 亚洲成人av电影在线| 亚洲国产成人av网| 日韩中文欧美在线| 青青草原综合久久大伊人精品优势| 亚洲美女一区二区三区| 亚洲一区中文日韩| 三级久久三级久久久| 亚洲人精品午夜| 韩国av一区二区| 精品午夜一区二区三区在线观看| 337p粉嫩大胆噜噜噜噜噜91av| 欧美福利一区二区| 日韩视频中午一区| 久久久综合视频| 夜夜爽夜夜爽精品视频| 首页亚洲欧美制服丝腿| 国产精品18久久久| 在线精品视频一区二区三四| 欧美精品乱码久久久久久| 精品剧情v国产在线观看在线| 久久久久亚洲蜜桃| 亚洲国产视频在线| 国产不卡在线一区| 中文av字幕一区| 视频一区中文字幕国产| 精品一区在线看| 91国模大尺度私拍在线视频| 国产欧美日本一区视频| 午夜精品福利一区二区蜜股av | 性欧美疯狂xxxxbbbb| 日韩电影在线一区二区三区| 成人在线综合网| 2023国产精华国产精品| 久久av资源站| 91超碰这里只有精品国产| 亚洲欧洲国产专区| 国产激情偷乱视频一区二区三区 | 亚洲福利一区二区| 懂色av中文一区二区三区| 日韩一区二区三区电影在线观看| 国产精品国产三级国产专播品爱网| 男女男精品视频| 欧美日韩在线播| 日韩国产精品久久| 欧美一级搡bbbb搡bbbb| 午夜精品久久久久久久久久| 在线免费观看日韩欧美| 亚洲图片欧美一区| 538prom精品视频线放| 亚洲成人1区2区| 91精品久久久久久久99蜜桃| 黄一区二区三区| 亚洲欧洲日韩一区二区三区| 99久久久免费精品国产一区二区 | 欧美一区二区在线不卡| 老司机免费视频一区二区| 中文字幕不卡三区| 在线观看日韩国产| 国产一区二区三区视频在线播放| 久久精品人人做| 色视频成人在线观看免| 日韩精品乱码av一区二区| 久久日韩精品一区二区五区| 久久99久久精品| 中文字幕一区三区| 欧美日韩在线播放| 高清国产一区二区| 视频一区二区三区入口| 中文字幕欧美国产| 日韩欧美激情一区| 欧美色视频一区| 91同城在线观看| 成人高清视频在线| 久久97超碰国产精品超碰| 亚洲精品免费在线观看| 国产欧美综合色|