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

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

?? dma.h

?? 支持linux-2.4以后的啟動參數設置
?? 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一区二区三区免费野_久草精品视频
成人免费视频国产在线观看| 欧美日韩国产免费一区二区 | 久久99这里只有精品| 蜜桃视频一区二区| 欧美影视一区在线| 日产国产欧美视频一区精品| 99久久婷婷国产| 久久久精品一品道一区| 午夜精品福利一区二区三区av| 成人美女视频在线看| 精品少妇一区二区三区在线视频| 亚洲一区成人在线| 97se亚洲国产综合自在线观| 久久久久久久久久久电影| 日韩精品成人一区二区三区| 91丨九色porny丨蝌蚪| 久久久精品黄色| 国产乱码精品一区二区三区忘忧草 | 亚洲视频狠狠干| 国产成人亚洲综合a∨婷婷图片 | 韩国女主播成人在线观看| 欧美日韩亚洲高清一区二区| 亚洲精品国产a久久久久久| 波多野结衣中文字幕一区 | 日韩精品每日更新| 欧美日韩三级一区二区| 亚洲精品国产成人久久av盗摄| 成人精品视频.| 国产精品女同一区二区三区| 国产成人综合网| 国产欧美日韩三级| 粉嫩13p一区二区三区| 日本一区二区免费在线| 国产91在线看| 国产精品日韩精品欧美在线| 成人一区二区三区视频 | 天天av天天翘天天综合网色鬼国产 | 日韩极品在线观看| 欧美精品在欧美一区二区少妇| 午夜精品视频一区| 欧美一级日韩不卡播放免费| 美女mm1313爽爽久久久蜜臀| ww久久中文字幕| 欧美精品久久一区| 久久99精品久久只有精品| 欧美xingq一区二区| 国产一区二区导航在线播放| 2021中文字幕一区亚洲| 高清免费成人av| 亚洲欧美日韩精品久久久久| 欧美日韩一区二区三区在线 | 精品国产91亚洲一区二区三区婷婷| 久久国产综合精品| 国产欧美一区二区精品性色 | 成人精品国产一区二区4080| 椎名由奈av一区二区三区| 精品视频免费在线| 国产原创一区二区| 中文字幕综合网| 日韩欧美国产午夜精品| 丁香啪啪综合成人亚洲小说| 亚洲图片欧美综合| 久久亚洲私人国产精品va媚药| 不卡一区在线观看| 日韩电影在线看| 亚洲欧洲美洲综合色网| 7777精品伊人久久久大香线蕉超级流畅 | av在线不卡免费看| 亚洲一区二区在线免费观看视频 | 在线视频你懂得一区| 香蕉影视欧美成人| 久久精品男人的天堂| 在线观看av不卡| 国产不卡一区视频| 亚洲777理论| 国产精品第四页| 日韩视频永久免费| 色综合久久中文综合久久牛| 久久精品72免费观看| 亚洲综合激情网| 久久精品免视看| 在线播放一区二区三区| 北岛玲一区二区三区四区| 日本sm残虐另类| 一区二区三区欧美日| 久久久影视传媒| 91麻豆精品国产自产在线| 成人高清在线视频| 极品美女销魂一区二区三区| 一区二区三区四区不卡在线| 久久久久免费观看| 91精品国产aⅴ一区二区| 一本大道av一区二区在线播放| 国产九色sp调教91| 麻豆专区一区二区三区四区五区| 亚洲二区在线视频| 亚洲欧洲国产日韩| 中文字幕第一区| 精品国内二区三区| 日韩女优电影在线观看| 欧美日韩亚洲丝袜制服| 色综合一个色综合亚洲| 成人国产一区二区三区精品| 国产真实精品久久二三区| 久久精品国产一区二区三区免费看| 一区二区免费在线播放| 亚洲美女电影在线| ●精品国产综合乱码久久久久 | 日韩精品自拍偷拍| 91精品国产aⅴ一区二区| 欧美精品在线视频| 欧美一区二区视频在线观看2022 | 日韩激情视频在线观看| 亚洲午夜av在线| 亚洲.国产.中文慕字在线| 亚洲午夜一二三区视频| 一区二区三区欧美亚洲| 亚洲影视在线播放| 午夜精品一区在线观看| 午夜精彩视频在线观看不卡| 午夜欧美电影在线观看| 日本aⅴ精品一区二区三区| 久久99精品国产.久久久久| 精品在线你懂的| 国产大片一区二区| av在线不卡电影| 色老汉一区二区三区| 欧美日韩久久久一区| 欧美日高清视频| 精品美女被调教视频大全网站| 欧美精品一区二区蜜臀亚洲| 久久精品视频在线免费观看| 国产精品福利电影一区二区三区四区| 国产精品国产三级国产a| 一区二区在线观看av| 午夜精品福利视频网站| 国精产品一区一区三区mba桃花| 国产成人免费9x9x人网站视频| 99久久久免费精品国产一区二区| 欧美午夜不卡在线观看免费| 日韩欧美你懂的| 国产精品久久久久久福利一牛影视| 自拍偷拍国产精品| 美女www一区二区| 99re在线视频这里只有精品| 欧美年轻男男videosbes| 久久综合久久综合亚洲| 亚洲色欲色欲www在线观看| 三级亚洲高清视频| 夫妻av一区二区| 欧美精选一区二区| 国产精品视频免费| 日韩国产精品91| 不卡的av电影在线观看| 欧美二区三区91| 欧美高清在线一区二区| 香蕉久久一区二区不卡无毒影院 | 国产不卡高清在线观看视频| 欧美中文字幕亚洲一区二区va在线 | 视频一区在线播放| 成人精品亚洲人成在线| 91精品国产91久久久久久最新毛片| 国产精品欧美久久久久无广告 | 国产欧美日韩卡一| 日韩精品一二三四| 色哟哟国产精品| 国产亚洲精品7777| 免费成人在线视频观看| 一本色道久久综合亚洲91| 久久精品亚洲乱码伦伦中文 | 婷婷一区二区三区| 色婷婷久久综合| 欧美激情一区在线| 美女网站色91| 91麻豆精品国产91久久久| 中文字幕不卡在线| 狠狠网亚洲精品| 日韩视频在线观看一区二区| 亚洲丶国产丶欧美一区二区三区| av网站免费线看精品| 久久久久9999亚洲精品| 一本大道av伊人久久综合| 在线观看国产一区二区| 一区二区在线电影| 亚洲三级久久久| 成人自拍视频在线| 日韩欧美的一区| 免费欧美在线视频| 在线电影一区二区三区| 亚洲成人在线免费| 在线观看一区二区视频| 一区二区三区四区乱视频| 91麻豆国产自产在线观看| 国产精品亲子伦对白| 不卡一区在线观看| 成人免费一区二区三区视频 | 天天色综合成人网| 欧美日本韩国一区| 日本欧美加勒比视频| 日韩欧美你懂的|