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

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

?? universe.c

?? VxWorkS下 MV2604的BSP源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
* The DMA engine will also be permanently configured so that the PCI Bus* will perform 64-bit transactions.* * NOTE: This low-level driver is strictly non-sharable; however,* it contains no guards to prevent multiple tasks from calling* it simultaneously.  It assumes that the application layer will* provide atomic access to this driver through the use of a* semaphore or similar guards.** In addition, the internals of this driver only operates in a* non-interrupt (polled) mode; it uses a busy loop to sample the* DMA transfer status.  This implies that the calling task will* wait until the DMA transfer has terminated.  As a precaution,* it is recommended by the Tundra User's Manual that the calling* task set up a background timer to prevent an infinite wait* caused by a system problem.  Also, tasks transferring large* blocks of data should lower their priority level to allow other* tasks to run, and tasks transferring small blocks of data* should use bcopy() instead of calling this driver.** RETURNS: OK*/STATUS sysVmeDmaInit    (    void    )    {    /* Configure the DMA Transfer Control register */    UNIV_OUT_LONG(UNIVERSE_DCTL, (VME_DMA_XFER_TYPE  |				  VME_DMA_ADDR_SPACE |				  VME_DMA_DATA_TYPE  |				  VME_DMA_USER_TYPE  |				  DCTL_LD64EN ));    sysVmeDmaReady = TRUE;    return (OK);    }/******************************************************************************** sysVmeDmaCnfgGet - Get DMA transfer configuration parameters** This routine will get the DMA transfer parameters.** RETURNS: OK or ERROR*/STATUS sysVmeDmaCnfgGet    (    UINT32 *xferType,	/* output: Ptr to VMEbus data transfer type	*/			/* Valid range:					*/			/* (DCTL_VDW_8  | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_16 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_32 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_64 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_32 | DCTL_VCT_BLK)	       ** BLT  	*/			/* (DCTL_VDW_64 | DCTL_VCT_BLK)	       ** MBLT 	*/    UINT32 *addrSpace,	/* output: Ptr to VMEbus Address Space type	*/			/* Valid range:					*/			/* DCTL_VAS_A16					*/			/* DCTL_VAS_A24					*/			/* DCTL_VAS_A32					*/    UINT32 *dataType,	/* output: Ptr to Program/Data AM Code		*/			/* Valid range:					*/			/* DCTL_PGM_DATA				*/			/* DCTL_PGM_PRGM				*/    UINT32 *userType	/* output: Ptr to Supervisor/User AM Code	*/			/* Valid range:					*/			/* DCTL_SUPER_USER				*/			/* DCTL_SUPER_SUP				*/    )    {    UINT32  dctlReg;    if (!sysVmeDmaReady)	{	return (ERROR);	}    /* Get contents of DMA Transfer Control register */    UNIV_IN_LONG(UNIVERSE_DCTL, &dctlReg);    /* Extract the VMEbus data transfer type */    *xferType = (dctlReg & (DCTL_VDW_MSK | DCTL_VCT_MSK));    /* Extract the VMEbus Address Space type */    *addrSpace = (dctlReg & DCTL_VAS_MSK);    /* Extract the Program/Data AM Code */    *dataType = (dctlReg & DCTL_PGM_MSK);    /* Extract the Supervisor/User AM Code */    *userType = (dctlReg & DCTL_SUPER_MSK);    return (OK);    }/******************************************************************************** sysVmeDmaCnfgSet -  Set DMA transfer configuration parameters** This routine will configure the DMA transfer parameters.** RETURNS: OK or ERROR*/STATUS sysVmeDmaCnfgSet    (    UINT32 xferType,	/* input: VMEbus data transfer type		*/			/* Valid range:					*/			/* (DCTL_VDW_8  | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_16 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_32 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_64 | DCTL_VCT_SINGLE)		*/			/* (DCTL_VDW_32 | DCTL_VCT_BLK)	        ** BLT  */			/* (DCTL_VDW_64 | DCTL_VCT_BLK)	        ** MBLT */    UINT32 addrSpace,	/* input: VMEbus Address Space type		*/			/* Valid range:					*/			/* DCTL_VAS_A16					*/			/* DCTL_VAS_A24					*/			/* DCTL_VAS_A32					*/    UINT32 dataType,	/* imput: Ptr to Program/Data AM Code		*/			/* Valid range:					*/			/* DCTL_PGM_DATA				*/			/* DCTL_PGM_PRGM				*/    UINT32 userType	/* input: Supervisor/User AM Code		*/			/* Valid range:					*/			/* DCTL_SUPER_USER				*/			/* DCTL_SUPER_SUP				*/    )    {    UINT32  dctlReg;    if (!sysVmeDmaReady)	{	return (ERROR);	}    /* Get contents of DMA Transfer Control register */    UNIV_IN_LONG(UNIVERSE_DCTL, &dctlReg);    /* Setup the VMEbus data transfer type */    dctlReg &= ~(DCTL_VDW_MSK | DCTL_VCT_MSK);    dctlReg |= (xferType & (DCTL_VDW_MSK | DCTL_VCT_MSK));    /* Setup the VMEbus Address Space type */    dctlReg &= ~(DCTL_VAS_MSK);    dctlReg |= (addrSpace & DCTL_VAS_MSK);    /* Setup the Program/Data AM Code */    dctlReg &= ~(DCTL_PGM_MSK);    dctlReg |= (dataType & DCTL_PGM_MSK);    /* Setup the Supervisor/User AM Code */    dctlReg &= ~(DCTL_SUPER_MSK);    dctlReg |= (userType & DCTL_SUPER_MSK);    /* Update contents of DMA Transfer Control register */    UNIV_OUT_LONG(UNIVERSE_DCTL, dctlReg);    return (OK);    }/******************************************************************************** sysVmeDmaStatusGet - Get DMA transfer Status** This routine will return the status of the DMA transfer.** RETURNS: OK or ERROR*/STATUS sysVmeDmaStatusGet    (    UINT32  *transferStatus	/* State of DMA transfer defined as	*/				/* DGCS register status bits		*/				/* DGCS_ACT  | DGCS_STOP | DGCS_HALT |	*/				/* DGCS_DONE | DGCS_LERR | DGCS_VERR |	*/				/* DGCS_P_ERR				*/    )    {    UINT32  dgcsReg;    if (!sysVmeDmaReady)	{	return (ERROR);	}    /* Get contents of DMA General Control/Status register */    UNIV_IN_LONG(UNIVERSE_DGCS, &dgcsReg);    /* Return the status of the DMA transfer */    *transferStatus = (dgcsReg & DGCS_STATUS_MSK);    return (OK);    }/******************************************************************************** sysVmeDmaL2VCopy - Copy data from local memory to VMEbus memory** This routine copies data from local memory to VMEbus memory using* the Universe's DMA engine.** NOTE: This routine assumes that the DMA transfer configuration* parameters have been previously set up either at driver init time* (sysVmeDmaInit()) with the default parameters in config.h or* dynamically by calling sysVmeDmaCnfgSet().** .CS* RETURNS: OK,*	   ERROR - driver not initialized or invalid argument,*	   DGCS_LERR - PCI Bus Error,*	   DGCS_VERR - VMEbus Error,*          or*	   DGCS_P_ERR - Protocol Error* .CE*/STATUS sysVmeDmaL2VCopy    (    UCHAR  *localAddr,		/* Local Address as seen by the CPU */    UCHAR  *localVmeAddr,	/* VMEbus Address as seen by the CPU */    UINT32  nbytes    )    {    return (sysVmeDmaCopy(localAddr,			  localVmeAddr,			  nbytes,			  (UINT32)DCTL_L2V_PCI_VME));    }/******************************************************************************** sysVmeDmaV2LCopy - Copy data from VMEbus memory to local memory** This routine copies data from VMEbus memory to local memory using* the Universe's DMA engine.** NOTE: This routine assumes that the DMA transfer configuration* parameters have been previously set up either at driver init time* (sysVmeDmaInit()) with the default parameters in config.h or* dynamically by calling sysVmeDmaCnfgSet().** .CS* RETURNS: OK,*	   ERROR - driver not initialized or invalid argument,*	   DGCS_LERR - PCI Bus Error,*	   DGCS_VERR - VMEbus Error,*          or*	   DGCS_P_ERR - Protocol Error* .CE*/STATUS sysVmeDmaV2LCopy    (    UCHAR  *localVmeAddr,	/* VMEbus Address as seen by the CPU */    UCHAR  *localAddr,		/* Local Address as seen by the CPU */    UINT32  nbytes    )    {    return (sysVmeDmaCopy(localAddr,			  localVmeAddr,			  nbytes,			  (UINT32)DCTL_L2V_VME_PCI));    }/******************************************************************************** sysVmeDmaCopy - Copy data between local and VMEbus memory** This routine copies data between local and VMEbus memory using* the Universe's DMA engine.  In addition to the parameters passed in,* this routine uses the macros VME_DMA_MAX_BURST and VME_DMA_MIN_TIME_OFF_BUS* defined in config.h to set up VON and VOFF, respectfully.** NOTE: This routine assumes that the DMA transfer configuration* parameters have been previously set up either at driver init time* (sysVmeDmaInit()) with the default parameters in config.h or* dynamically by calling sysVmeDmaCnfgSet().** The sampling rate to determine the DMA transfer status* will directly affect the throughput of the DMA transfer.** .CS* RETURNS: OK,*	   ERROR - driver not initialized or invalid argument,*	   DGCS_LERR - PCI Bus Error,*	   DGCS_VERR - VMEbus Error,*          or*	   DGCS_P_ERR - Protocol Error* .CE*/LOCAL STATUS sysVmeDmaCopy    (    UCHAR  *localAddr,		/* Local Address as seen by the CPU */    UCHAR  *localVmeAddr,	/* VMEbus Address as seen by the CPU */    UINT32  nbytes,		/* number of bytes to copy: */				/*	max = DTBC_VALID_BITS_MASK */    UINT32  direction	/* Copy direction: DCTL_L2V_PCI_VME, DCTL_L2V_VME_PCI */    )    {    UCHAR  *pciAddr;    UCHAR  *vmeAddr;    UINT32  dctlReg;    UINT32  dgcsReg;    if (!sysVmeDmaReady)	{	return (ERROR);	}    /* Check addresses for 8-byte alignment to each other */    if (((UINT32)localAddr & 0x7) != ((UINT32)localVmeAddr & 0x7))        {	return (ERROR);	}    /* Check for too large a transfer byte count */    if (nbytes > DTBC_VALID_BITS_MASK)	{	return (ERROR);	}    /*     * Clearing the chain bit and setting the GO bit at the same time     * does not work.  So, clearing the chain bit and setting up VON     * and VOFF is done before setting up the source and destination     * register as called out in the Universe manual.     */    UNIV_IN_LONG(UNIVERSE_DGCS, &dgcsReg);    dgcsReg &= ~(DGCS_CHAIN_MSK | DGCS_VON_MSK | DGCS_VOFF_MSK);    dgcsReg |= (VME_DMA_MAX_BURST | VME_DMA_MIN_TIME_OFF_BUS);    UNIV_OUT_LONG(UNIVERSE_DGCS, dgcsReg);    /* Setup transfer direction */    UNIV_IN_LONG(UNIVERSE_DCTL, &dctlReg);    dctlReg &= ~(DCTL_L2V_MSK);    dctlReg |= (direction & DCTL_L2V_MSK);    UNIV_OUT_LONG(UNIVERSE_DCTL, dctlReg);    /*     * Convert the VME address as seen by the CPU to a     * VMEbus address as seen on the VMEbus, and store     * it in the DMA engine's VMEbus address register.     */    switch (dctlReg & DCTL_VAS_MSK)	{	case DCTL_VAS_A32:            vmeAddr = (UCHAR *)((UINT32)localVmeAddr -				(UINT32)VME_A32_MSTR_LOCAL +				(UINT32)VME_A32_MSTR_BUS);            UNIV_OUT_LONG(UNIVERSE_DVA, vmeAddr);	    break;	case DCTL_VAS_A24:            vmeAddr = (UCHAR *)((UINT32)localVmeAddr -				(UINT32)VME_A24_MSTR_LOCAL +				(UINT32)VME_A24_MSTR_BUS);            UNIV_OUT_LONG(UNIVERSE_DVA, vmeAddr);	    break;	case DCTL_VAS_A16:            vmeAddr = (UCHAR *)((UINT32)localVmeAddr -				(UINT32)VME_A16_MSTR_LOCAL +				(UINT32)VME_A16_MSTR_BUS);            UNIV_OUT_LONG(UNIVERSE_DVA, vmeAddr);	    break;	default:	    return (ERROR);	}    /*     * Convert the local address to a PCI address as seen     * on the PCI Bus, and store it in the DMA engine's     * PCI Bus address register.     */    pciAddr = (UCHAR *)((UINT32)localAddr + (UINT32)PCI2DRAM_BASE_ADRS);    UNIV_OUT_LONG(UNIVERSE_DLA, pciAddr);    /* Configure DMA engine's byte count */    UNIV_OUT_LONG(UNIVERSE_DTBC, nbytes);    /* Start transfer by clearing status and setting GO bit */    dgcsReg &= ~(DGCS_STATUS_MSK);    dgcsReg |= DGCS_GO;    UNIV_OUT_LONG(UNIVERSE_DGCS, dgcsReg);    /* Wait for transfer to terminate */    UNIV_IN_LONG(UNIVERSE_DGCS, &dgcsReg);    while (dgcsReg & DGCS_ACT)	{	sysUsDelay(25);	UNIV_IN_LONG(UNIVERSE_DGCS, &dgcsReg);	}    if (dgcsReg & DGCS_DONE)	{	return (OK);	}    else	{        return (dgcsReg & (DGCS_LERR | DGCS_VERR | DGCS_P_ERR));	}    }#endif	/* INCLUDE_VME_DMA */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产综合久久| 五月综合激情婷婷六月色窝| 亚洲一区二区三区中文字幕在线| 三级一区在线视频先锋| www.成人网.com| 久久尤物电影视频在线观看| 五月天中文字幕一区二区| a美女胸又www黄视频久久| 精品91自产拍在线观看一区| 亚洲成a人v欧美综合天堂| 91天堂素人约啪| 中文字幕成人在线观看| 国产综合成人久久大片91| 欧美一区二区三区视频在线观看 | 色中色一区二区| 久久久另类综合| 麻豆精品新av中文字幕| 欧美日韩美少妇| 亚洲制服丝袜一区| 色综合视频在线观看| 国产精品久久久久久久岛一牛影视| 国产一区二区三区最好精华液| 91精品国产综合久久精品app| 亚洲午夜久久久久久久久电影院 | 91精选在线观看| 亚洲国产精品综合小说图片区| 色哟哟一区二区在线观看| 中文字幕在线不卡| 99国产一区二区三精品乱码| 国产精品视频在线看| 成人性生交大片免费看视频在线| 久久久精品tv| 国产精品1区2区| 欧美国产欧美综合| 成人avav在线| 一区二区在线观看av| 色婷婷综合五月| 午夜视频在线观看一区二区三区| 欧美男女性生活在线直播观看| 亚洲国产精品久久久男人的天堂 | 日韩精品一级中文字幕精品视频免费观看 | 欧美三级在线视频| 亚洲r级在线视频| 欧美一区二区三区视频在线观看| 另类小说视频一区二区| 久久久久99精品一区| 成人激情小说乱人伦| 亚洲欧美区自拍先锋| 欧美性一二三区| 免费观看91视频大全| 久久九九99视频| 99精品偷自拍| 午夜在线成人av| 欧美变态tickle挠乳网站| 国产一二三精品| 亚洲乱码中文字幕综合| 欧美日韩国产首页| 国产原创一区二区三区| 日韩一区中文字幕| 91麻豆精品国产91| 成人黄色免费短视频| 亚洲一区在线看| 欧美精品一区二区三区蜜桃| av不卡在线观看| 日韩电影免费一区| 国产精品乱码一区二三区小蝌蚪| 欧美午夜不卡在线观看免费| 精品在线播放午夜| 亚洲靠逼com| 久久久久亚洲蜜桃| 欧美麻豆精品久久久久久| 成人一区二区视频| 美女性感视频久久| 亚洲精品视频自拍| 国产欧美一区二区三区鸳鸯浴| 欧美日韩一区二区不卡| 成人深夜福利app| 蓝色福利精品导航| 亚洲午夜视频在线观看| 国产精品无人区| 欧美一区二区免费观在线| 91在线观看免费视频| 激情五月婷婷综合网| 亚洲一区二区三区四区五区黄| 国产日韩欧美一区二区三区综合| 欧美日韩亚洲综合| 91久久精品一区二区二区| 成人免费观看视频| 国产美女精品人人做人人爽 | 高清不卡一区二区在线| 日本在线不卡一区| 亚洲国产色一区| 自拍偷拍亚洲综合| 国产精品日韩成人| 久久免费偷拍视频| 精品日韩av一区二区| 欧美日韩亚洲国产综合| 色偷偷一区二区三区| 成人美女在线视频| 国产.欧美.日韩| 国产精品一级在线| 国产精品亚洲人在线观看| 久久99热这里只有精品| 免费高清在线视频一区·| 日韩av一级电影| 麻豆专区一区二区三区四区五区| 日本亚洲视频在线| 免费美女久久99| 美女视频黄 久久| 日韩高清不卡在线| 精品一区二区三区的国产在线播放 | 精品国产青草久久久久福利| 4hu四虎永久在线影院成人| 欧美日韩亚洲国产综合| 欧美图片一区二区三区| 欧美日韩精品一区二区在线播放| 欧美精品一级二级| 日韩美女在线视频| 欧美www视频| 久久午夜国产精品| 国产精品欧美一区二区三区| 中文字幕精品综合| 亚洲免费伊人电影| 舔着乳尖日韩一区| 久久99国产精品久久99| 国产乱子伦一区二区三区国色天香| 国产一区二区中文字幕| 成人一级黄色片| 91日韩一区二区三区| 欧美另类变人与禽xxxxx| 欧美一区二区美女| 久久亚洲精华国产精华液 | av成人动漫在线观看| 91高清视频在线| 91精品国产综合久久久久久| 精品国产露脸精彩对白| 中文字幕佐山爱一区二区免费| 夜夜揉揉日日人人青青一国产精品| 日韩电影在线看| 国产99久久久国产精品| 91成人免费在线视频| 欧美精三区欧美精三区| 久久综合给合久久狠狠狠97色69| 中文字幕乱码亚洲精品一区 | 日韩欧美国产系列| 国产日产欧产精品推荐色 | 亚洲美女淫视频| 日本va欧美va瓶| 不卡的电影网站| 7777精品伊人久久久大香线蕉最新版| 欧美不卡一区二区三区四区| 国产精品久久久久一区二区三区共| 亚洲一区在线电影| 国产美女久久久久| 欧美剧情电影在线观看完整版免费励志电影| 日韩欧美一卡二卡| 亚洲一区二区综合| 成人午夜电影网站| 日韩三级伦理片妻子的秘密按摩| 综合网在线视频| 国产一本一道久久香蕉| 6080yy午夜一二三区久久| 亚洲视频 欧洲视频| 久久99久久99精品免视看婷婷 | 国产午夜亚洲精品不卡| 午夜激情综合网| 色婷婷一区二区| 日本一二三不卡| 国产一区在线看| 欧美一二三区在线观看| 亚洲免费av高清| 成人精品免费看| 久久久美女艺术照精彩视频福利播放 | 久久精品国产亚洲a| 日本乱人伦一区| 国产精品女主播av| 国产一区亚洲一区| 日韩一区二区三区视频在线 | eeuss鲁片一区二区三区在线观看| 欧美一级欧美三级| 午夜久久久影院| 色综合 综合色| 亚洲蜜桃精久久久久久久| 成年人网站91| 国产丝袜在线精品| 国产精品一区二区男女羞羞无遮挡| 91麻豆精品国产91久久久久久| 亚洲国产综合91精品麻豆| 91影院在线免费观看| 欧美极品aⅴ影院| 国产成人鲁色资源国产91色综| 日韩一区二区免费在线电影 | 亚洲一二三区不卡| 成人app在线观看| 中文字幕日韩一区| 成人精品免费看| 亚洲人成人一区二区在线观看| 菠萝蜜视频在线观看一区| 成人欧美一区二区三区小说| 一本到一区二区三区|