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

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

?? xemac_intr_dma.c

?? gumstiz u-boot loader in linux
?? C
?? 第 1 頁 / 共 4 頁
字號:
* gather DMA.** Get the interrupt status from the IpIf to determine the source of the* interrupt.  The source can be: MAC, Recv Packet FIFO, Send Packet FIFO, Recv* DMA channel, or Send DMA channel. The packet FIFOs only interrupt during* "deadlock" conditions.** @param InstancePtr is a pointer to the XEmac instance that just interrupted.** @return** None.** @note** None.*******************************************************************************/voidXEmac_IntrHandlerDma(void *InstancePtr){	u32 IntrStatus;	XEmac *EmacPtr = (XEmac *) InstancePtr;	EmacPtr->Stats.TotalIntrs++;	/*	 * Get the interrupt status from the IPIF. There is no clearing of	 * interrupts in the IPIF. Interrupts must be cleared at the source.	 */	IntrStatus = XIIF_V123B_READ_DIPR(EmacPtr->BaseAddress);	/*	 * See which type of interrupt is being requested, and service it	 */	if (IntrStatus & XEM_IPIF_RECV_DMA_MASK) {	/* Receive DMA interrupt */		EmacPtr->Stats.RecvInterrupts++;		HandleDmaRecvIntr(EmacPtr);	}	if (IntrStatus & XEM_IPIF_SEND_DMA_MASK) {	/* Send DMA interrupt */		EmacPtr->Stats.XmitInterrupts++;		HandleDmaSendIntr(EmacPtr);	}	if (IntrStatus & XEM_IPIF_EMAC_MASK) {	/* MAC interrupt */		EmacPtr->Stats.EmacInterrupts++;		HandleEmacDmaIntr(EmacPtr);	}	if (IntrStatus & XEM_IPIF_RECV_FIFO_MASK) {	/* Receive FIFO interrupt */		EmacPtr->Stats.RecvInterrupts++;		XEmac_CheckFifoRecvError(EmacPtr);	}	if (IntrStatus & XEM_IPIF_SEND_FIFO_MASK) {	/* Send FIFO interrupt */		EmacPtr->Stats.XmitInterrupts++;		XEmac_CheckFifoSendError(EmacPtr);	}	if (IntrStatus & XIIF_V123B_ERROR_MASK) {		/*		 * An error occurred internal to the IPIF. This is more of a debug and		 * integration issue rather than a production error. Don't do anything		 * other than clear it, which provides a spot for software to trap		 * on the interrupt and begin debugging.		 */		XIIF_V123B_WRITE_DISR(EmacPtr->BaseAddress,				      XIIF_V123B_ERROR_MASK);	}}/*****************************************************************************//**** Set the packet count threshold for this device. The device must be stopped* before setting the threshold. The packet count threshold is used for interrupt* coalescing, which reduces the frequency of interrupts from the device to the* processor. In this case, the scatter-gather DMA engine only interrupts when* the packet count threshold is reached, instead of interrupting for each packet.* A packet is a generic term used by the scatter-gather DMA engine, and is* equivalent to an Ethernet frame in our case.** @param InstancePtr is a pointer to the XEmac instance to be worked on.* @param Direction indicates the channel, send or receive, from which the*        threshold register is read.* @param Threshold is the value of the packet threshold count used during*        interrupt coalescing. A value of 0 disables the use of packet threshold*        by the hardware.** @return** - XST_SUCCESS if the threshold was successfully set* - XST_NOT_SGDMA if the MAC is not configured for scatter-gather DMA* - XST_DEVICE_IS_STARTED if the device has not been stopped* - XST_INVALID_PARAM if the Direction parameter is invalid. Turning on*   asserts would also catch this error.** @note** The packet threshold could be set to larger than the number of descriptors* allocated to the DMA channel. In this case, the wait bound will take over* and always indicate data arrival. There was a check in this function that* returned an error if the treshold was larger than the number of descriptors,* but that was removed because users would then have to set the threshold* only after they set descriptor space, which is an order dependency that* caused confustion.*******************************************************************************/XStatusXEmac_SetPktThreshold(XEmac * InstancePtr, u32 Direction, u8 Threshold){	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(Direction == XEM_SEND || Direction == XEM_RECV);	XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);	/*	 * Be sure device is configured for scatter-gather DMA and has been stopped	 */	if (!XEmac_mIsSgDma(InstancePtr)) {		return XST_NOT_SGDMA;	}	if (InstancePtr->IsStarted == XCOMPONENT_IS_STARTED) {		return XST_DEVICE_IS_STARTED;	}	/*	 * Based on the direction, set the packet threshold in the	 * corresponding DMA channel component.  Default to the receive	 * channel threshold register (if an invalid Direction is passed).	 */	switch (Direction) {	case XEM_SEND:		return XDmaChannel_SetPktThreshold(&InstancePtr->SendChannel,						   Threshold);	case XEM_RECV:		return XDmaChannel_SetPktThreshold(&InstancePtr->RecvChannel,						   Threshold);	default:		return XST_INVALID_PARAM;	}}/*****************************************************************************//**** Get the value of the packet count threshold for this driver/device. The packet* count threshold is used for interrupt coalescing, which reduces the frequency* of interrupts from the device to the processor. In this case, the* scatter-gather DMA engine only interrupts when the packet count threshold is* reached, instead of interrupting for each packet. A packet is a generic term* used by the scatter-gather DMA engine, and is equivalent to an Ethernet frame* in our case.** @param InstancePtr is a pointer to the XEmac instance to be worked on.* @param Direction indicates the channel, send or receive, from which the*        threshold register is read.* @param ThreshPtr is a pointer to the byte into which the current value of the*        packet threshold register will be copied. An output parameter. A value*        of 0 indicates the use of packet threshold by the hardware is disabled.** @return** - XST_SUCCESS if the packet threshold was retrieved successfully* - XST_NOT_SGDMA if the MAC is not configured for scatter-gather DMA* - XST_INVALID_PARAM if the Direction parameter is invalid. Turning on*   asserts would also catch this error.** @note** None.*******************************************************************************/XStatusXEmac_GetPktThreshold(XEmac * InstancePtr, u32 Direction, u8 * ThreshPtr){	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(Direction == XEM_SEND || Direction == XEM_RECV);	XASSERT_NONVOID(ThreshPtr != NULL);	XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);	if (!XEmac_mIsSgDma(InstancePtr)) {		return XST_NOT_SGDMA;	}	/*	 * Based on the direction, return the packet threshold set in the	 * corresponding DMA channel component.  Default to the value in	 * the receive channel threshold register (if an invalid Direction	 * is passed).	 */	switch (Direction) {	case XEM_SEND:		*ThreshPtr =		    XDmaChannel_GetPktThreshold(&InstancePtr->SendChannel);		break;	case XEM_RECV:		*ThreshPtr =		    XDmaChannel_GetPktThreshold(&InstancePtr->RecvChannel);		break;	default:		return XST_INVALID_PARAM;	}	return XST_SUCCESS;}/*****************************************************************************//**** Set the packet wait bound timer for this driver/device. The device must be* stopped before setting the timer value. The packet wait bound is used during* interrupt coalescing to trigger an interrupt when not enough packets have been* received to reach the packet count threshold. A packet is a generic term used* by the scatter-gather DMA engine, and is equivalent to an Ethernet frame in* our case. The timer is in milliseconds.** @param InstancePtr is a pointer to the XEmac instance to be worked on.* @param Direction indicates the channel, send or receive, from which the*        threshold register is read.* @param TimerValue is the value of the packet wait bound used during interrupt*        coalescing. It is in milliseconds in the range 0  - 1023. A value of 0*        disables the packet wait bound timer.** @return** - XST_SUCCESS if the packet wait bound was set successfully* - XST_NOT_SGDMA if the MAC is not configured for scatter-gather DMA* - XST_DEVICE_IS_STARTED if the device has not been stopped* - XST_INVALID_PARAM if the Direction parameter is invalid. Turning on*   asserts would also catch this error.** @note** None.*******************************************************************************/XStatusXEmac_SetPktWaitBound(XEmac * InstancePtr, u32 Direction, u32 TimerValue){	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(Direction == XEM_SEND || Direction == XEM_RECV);	XASSERT_NONVOID(TimerValue <= XEM_SGDMA_MAX_WAITBOUND);	XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);	/*	 * Be sure device is configured for scatter-gather DMA and has been stopped	 */	if (!XEmac_mIsSgDma(InstancePtr)) {		return XST_NOT_SGDMA;	}	if (InstancePtr->IsStarted == XCOMPONENT_IS_STARTED) {		return XST_DEVICE_IS_STARTED;	}	/*	 * Based on the direction, set the packet wait bound in the	 * corresponding DMA channel component.  Default to the receive	 * channel wait bound register (if an invalid Direction is passed).	 */	switch (Direction) {	case XEM_SEND:		XDmaChannel_SetPktWaitBound(&InstancePtr->SendChannel,					    TimerValue);		break;	case XEM_RECV:		XDmaChannel_SetPktWaitBound(&InstancePtr->RecvChannel,					    TimerValue);		break;	default:		return XST_INVALID_PARAM;	}	return XST_SUCCESS;}/*****************************************************************************//**** Get the packet wait bound timer for this driver/device. The packet wait bound* is used during interrupt coalescing to trigger an interrupt when not enough* packets have been received to reach the packet count threshold. A packet is a* generic term used by the scatter-gather DMA engine, and is equivalent to an* Ethernet frame in our case. The timer is in milliseconds.** @param InstancePtr is a pointer to the XEmac instance to be worked on.* @param Direction indicates the channel, send or receive, from which the*        threshold register is read.* @param WaitPtr is a pointer to the byte into which the current value of the*        packet wait bound register will be copied. An output parameter. Units*        are in milliseconds in the range 0  - 1023. A value of 0 indicates the*        packet wait bound timer is disabled.** @return** - XST_SUCCESS if the packet wait bound was retrieved successfully* - XST_NOT_SGDMA if the MAC is not configured for scatter-gather DMA* - XST_INVALID_PARAM if the Direction parameter is invalid. Turning on*   asserts would also catch this error.** @note** None.*******************************************************************************/XStatusXEmac_GetPktWaitBound(XEmac * InstancePtr, u32 Direction, u32 * WaitPtr){	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(Direction == XEM_SEND || Direction == XEM_RECV);	XASSERT_NONVOID(WaitPtr != NULL);	XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);	if (!XEmac_mIsSgDma(InstancePtr)) {		return XST_NOT_SGDMA;	}	/*	 * Based on the direction, return the packet wait bound set in the	 * corresponding DMA channel component.  Default to the value in	 * the receive channel wait bound register (if an invalid Direction	 * is passed).	 */	switch (Direction) {	case XEM_SEND:		*WaitPtr =		    XDmaChannel_GetPktWaitBound(&InstancePtr->SendChannel);		break;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产美女精品人人做人人爽| 欧美一区二区三区在线观看| 51精品久久久久久久蜜臀| 久久九九99视频| 日韩精品一二区| 99re66热这里只有精品3直播| 欧美精品一区视频| 日韩精品亚洲专区| 欧美影视一区在线| 亚洲欧洲韩国日本视频| 久久成人免费日本黄色| 欧美主播一区二区三区| 国产精品水嫩水嫩| 紧缚奴在线一区二区三区| 欧美性猛交xxxxxxxx| 国产精品久久久久影视| 国产成人aaaa| 久久久久久久久岛国免费| 美脚の诱脚舐め脚责91 | 中文字幕一区在线观看| 久久国产剧场电影| 51精品秘密在线观看| 亚洲一区视频在线观看视频| www.亚洲在线| 国产精品电影院| 成人av电影在线| 国产精品―色哟哟| 成人毛片视频在线观看| 中文无字幕一区二区三区 | 欧美videossexotv100| 亚洲3atv精品一区二区三区| 91污在线观看| 亚洲欧美另类小说视频| 一本一道久久a久久精品综合蜜臀| 国产精品久久久久影院亚瑟| 99久久99久久精品免费看蜜桃| 国产精品视频免费| 99热99精品| 一区二区三区中文在线| 欧美亚洲一区三区| 午夜在线电影亚洲一区| 欧美一区中文字幕| 九一九一国产精品| 国产欧美日产一区| 97久久超碰国产精品电影| 亚洲人吸女人奶水| 欧美日韩一区 二区 三区 久久精品 | 欧美一区二区在线免费观看| 欧美96一区二区免费视频| 91精品国产全国免费观看| 久草热8精品视频在线观看| 久久久国产精品午夜一区ai换脸| 成人午夜在线视频| 亚洲在线观看免费| 欧美成人一区二区三区| 成人免费看片app下载| 一区二区三区四区av| 91麻豆精品91久久久久久清纯| 激情成人午夜视频| 中文字幕一区二区三区精华液 | 又紧又大又爽精品一区二区| 欧美午夜不卡在线观看免费| 美女一区二区三区| 中文字幕一区二区三区在线播放| 欧美日韩一区中文字幕| 日韩中文字幕1| 亚洲国产成人在线| 欧美日韩精品欧美日韩精品一综合| 免费欧美在线视频| 国产精品久久久久久亚洲毛片| 欧美色图免费看| 国产成人免费视| 视频一区二区中文字幕| 中文字幕综合网| 欧美mv和日韩mv的网站| 色综合天天综合色综合av | 蜜臀精品久久久久久蜜臀| 中文幕一区二区三区久久蜜桃| 欧美日韩一区精品| av中文字幕一区| 国产自产高清不卡| 午夜精品福利在线| 亚洲视频在线一区二区| 久久欧美一区二区| 欧美性生活久久| 成人蜜臀av电影| 看片的网站亚洲| 五月婷婷色综合| 亚洲特黄一级片| 国产人妖乱国产精品人妖| 4hu四虎永久在线影院成人| 91免费看片在线观看| 国产成人免费9x9x人网站视频| 奇米色一区二区| 天天色天天操综合| 亚洲成人黄色影院| 日韩毛片在线免费观看| 国产亚洲欧美激情| 精品久久久久久久久久久院品网 | 国产69精品久久777的优势| 青青青伊人色综合久久| 一区二区三区精密机械公司| 综合欧美亚洲日本| 成人欧美一区二区三区| 国产精品理论在线观看| 国产欧美精品区一区二区三区| 久久亚洲春色中文字幕久久久| 91麻豆精品91久久久久同性| 欧美视频一区二区三区| 欧美亚洲国产怡红院影院| 色视频成人在线观看免| 91丨porny丨在线| 99精品久久只有精品| 97久久超碰国产精品| 91视视频在线观看入口直接观看www| 丁香啪啪综合成人亚洲小说 | 奇米在线7777在线精品| 蜜臀久久99精品久久久久久9| 日韩 欧美一区二区三区| 午夜激情综合网| 日韩1区2区日韩1区2区| 久久99热这里只有精品| 久草在线在线精品观看| 国产高清成人在线| 成人午夜精品在线| 91网站最新地址| 在线视频国产一区| 欧美日韩国产高清一区二区三区 | 国产精品看片你懂得| 中文字幕日韩精品一区| 一区二区三区欧美激情| 午夜精品一区二区三区免费视频 | 国产日韩av一区| 国产精品卡一卡二卡三| 一区二区三区四区蜜桃| 视频一区二区不卡| 国产美女主播视频一区| 不卡一区二区中文字幕| 欧美日韩免费视频| 精品免费视频.| 国产精品美女久久久久aⅴ| 亚洲精品国产精华液| 首页亚洲欧美制服丝腿| 国产精品一区二区三区99| 91啪亚洲精品| 日韩限制级电影在线观看| 欧美激情综合网| 亚洲成人动漫在线观看| 国内精品国产三级国产a久久 | 国产精品久久久久影院色老大| 一区二区三区免费在线观看| 蜜臀久久99精品久久久久久9 | 国产精品一区二区91| 91在线精品一区二区三区| 欧美日韩不卡在线| 日本一区二区三区电影| 亚洲一二三区不卡| 国产高清在线精品| 欧美在线你懂的| 国产偷国产偷亚洲高清人白洁| 亚洲一区二区三区爽爽爽爽爽 | 久久精品99国产精品| 成人av免费在线观看| 欧美一级久久久久久久大片| 中文av一区二区| 免费在线观看日韩欧美| 91色视频在线| 中文字幕欧美日韩一区| 青草国产精品久久久久久| 99久久er热在这里只有精品66| 欧美精品一区二区久久婷婷 | 欧美一级二级三级蜜桃| 亚洲天堂av老司机| 国产成人精品免费网站| 91麻豆精品国产91久久久久久| 亚洲人妖av一区二区| 成人午夜电影小说| 日韩免费在线观看| 午夜久久福利影院| 在线视频国内自拍亚洲视频| 国产精品欧美久久久久无广告| 久色婷婷小香蕉久久| 51精品国自产在线| 亚洲第一电影网| 欧美色中文字幕| 亚洲女与黑人做爰| 不卡的看片网站| 国产精品久久精品日日| 国产精品99久久久久久有的能看| 日韩亚洲国产中文字幕欧美| 亚洲国产一区在线观看| 日本韩国欧美一区| 亚洲激情自拍偷拍| 99精品视频在线播放观看| 日本一区二区三区电影| 国产成人av一区二区| 国产日韩综合av| 国产成人啪午夜精品网站男同| 久久久久综合网| 粉嫩久久99精品久久久久久夜|