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

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

?? dma.h

?? uboot for twarm board
?? 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一区二区三区免费野_久草精品视频
日韩女优毛片在线| 亚洲精品一线二线三线| 性欧美大战久久久久久久久| 国产精品美女www爽爽爽| 欧美久久一二三四区| 精品久久人人做人人爰| 欧美美女一区二区| 国产精品1区2区3区| 蜜臀av性久久久久av蜜臀妖精| 视频一区在线视频| 日韩国产在线观看| 蜜臀av一区二区在线免费观看 | 高清免费成人av| 激情文学综合丁香| 成人一级视频在线观看| 成人黄页在线观看| 91老师片黄在线观看| 色妹子一区二区| 欧美群妇大交群中文字幕| 91精品国产黑色紧身裤美女| 精品成人在线观看| 中文字幕欧美日本乱码一线二线| 亚洲日穴在线视频| 日韩精品91亚洲二区在线观看| 日本不卡视频一二三区| 国产盗摄一区二区| 日本丰满少妇一区二区三区| 91精品国产综合久久香蕉麻豆 | 色先锋aa成人| 欧美高清视频www夜色资源网| 欧美mv日韩mv| 一区二区三区四区av| 美女一区二区久久| 91丨porny丨首页| 在线综合视频播放| 日韩毛片一二三区| 国产一区二区成人久久免费影院| 91免费在线看| 久久综合九色综合欧美亚洲| 亚洲精品成人在线| 精品亚洲欧美一区| 欧美色区777第一页| 久久久久久免费毛片精品| 亚洲另类春色校园小说| 精品影视av免费| 91成人网在线| 国产欧美一区二区精品婷婷| 午夜久久久久久久久| av影院午夜一区| 欧美变态tickling挠脚心| 亚洲婷婷在线视频| 国产乱人伦精品一区二区在线观看| 色国产综合视频| 久久久久久久久久久久久夜| 午夜精品视频一区| aaa欧美日韩| 国产香蕉久久精品综合网| 久久国产剧场电影| 欧美二区乱c少妇| 一二三区精品视频| 91亚洲国产成人精品一区二区三 | 亚洲激情男女视频| caoporn国产一区二区| 精品国产一区二区三区久久影院| 一区二区三区不卡视频| 成人av网在线| 中文字幕av在线一区二区三区| 国产制服丝袜一区| 精品国精品国产| 久久av中文字幕片| 日韩视频在线永久播放| 丝袜美腿亚洲一区| 欧美精三区欧美精三区| 午夜精品福利一区二区三区av| 色美美综合视频| 亚洲激情在线激情| 欧美专区亚洲专区| 午夜亚洲国产au精品一区二区| 欧美四级电影在线观看| 亚洲国产va精品久久久不卡综合| 欧美揉bbbbb揉bbbbb| 亚洲mv大片欧洲mv大片精品| 日韩一区二区精品在线观看| 久久综合综合久久综合| 精品成人免费观看| 粉嫩蜜臀av国产精品网站| 中文字幕不卡三区| 色婷婷久久一区二区三区麻豆| 一区二区在线观看av| 欧美日韩一区在线| 久久机这里只有精品| 亚洲国产高清不卡| 色久综合一二码| 麻豆免费看一区二区三区| 欧美激情综合在线| 一本到不卡精品视频在线观看| 午夜精品久久一牛影视| 久久欧美一区二区| 99精品视频中文字幕| 亚洲成人综合网站| 精品粉嫩aⅴ一区二区三区四区| 国产精品一区二区久久精品爱涩| 国产精品国产精品国产专区不片| 在线看国产一区| 激情综合网av| 亚洲精品日韩专区silk| 26uuu久久综合| 欧美在线你懂的| 国产麻豆视频一区| 一区二区三区四区国产精品| 精品理论电影在线观看| 色伊人久久综合中文字幕| 男女男精品网站| 国产精品久久久久久妇女6080 | 亚洲精品在线免费播放| 色婷婷综合久久久久中文 | 欧美三电影在线| 成人av一区二区三区| 午夜精品久久久久久久99水蜜桃 | 精品av综合导航| 在线观看视频欧美| 国产一区二区三区免费播放| 一区二区三区在线视频观看58| 精品不卡在线视频| 91麻豆精品久久久久蜜臀| 91蝌蚪porny| 国产精品99久久久久久宅男| 香蕉乱码成人久久天堂爱免费| 久久日韩精品一区二区五区| 欧美巨大另类极品videosbest | 日韩1区2区3区| 亚洲激情中文1区| 亚洲欧洲日本在线| 久久亚洲影视婷婷| 日韩西西人体444www| 欧美亚洲一区二区在线观看| 99精品黄色片免费大全| 国产精品一区二区无线| 美女一区二区三区| 奇米影视一区二区三区| 亚洲成a天堂v人片| 亚洲国产成人av好男人在线观看| 日韩伦理av电影| 亚洲视频一二区| 亚洲视频精选在线| 自拍偷在线精品自拍偷无码专区| 欧美韩国日本综合| 国产欧美日韩在线看| 国产日韩亚洲欧美综合| 精品国产亚洲在线| 精品久久久久99| 精品国产sm最大网站| 久久久综合网站| 国产日产欧美精品一区二区三区| 精品国产一区二区三区忘忧草| 精品国产欧美一区二区| 久久精品一区二区| 欧美激情在线看| 亚洲丝袜精品丝袜在线| 一区二区三区日韩欧美| 亚洲午夜精品久久久久久久久| 亚洲高清久久久| 视频一区二区国产| 久久精品国产99国产精品| 国产麻豆成人精品| 成人性生交大片免费看视频在线| 成人av午夜影院| 欧美私模裸体表演在线观看| 欧美久久婷婷综合色| 欧美精品一区二区久久久 | 91国偷自产一区二区三区成为亚洲经典| 97精品电影院| 777色狠狠一区二区三区| 精品国产青草久久久久福利| 国产精品网曝门| 亚洲在线观看免费视频| 另类小说欧美激情| 成人动漫一区二区在线| 在线观看国产91| 欧美videossexotv100| 国产精品国产三级国产aⅴ原创| 亚洲一区二区三区在线看| 日韩不卡一区二区| 成人免费视频一区| 欧美情侣在线播放| 国产日产精品1区| 亚洲在线中文字幕| 国产一区二区毛片| 欧美日韩久久一区| 日本一区二区三区视频视频| 亚洲国产精品人人做人人爽| 狠狠色丁香久久婷婷综| 欧洲精品一区二区三区在线观看| 精品日本一线二线三线不卡| 亚洲丝袜美腿综合| 精品亚洲成a人在线观看| 欧美性猛交一区二区三区精品| 久久婷婷色综合| 免费成人性网站| 欧美在线你懂的|