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

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

?? xemac_polled.c

?? u-boot1.3.0的原碼,從配了網絡驅動和FLASH的驅動,并該用ESC竟如
?? C
?? 第 1 頁 / 共 2 頁
字號:
/********************************************************************************     Author: Xilinx, Inc.***     This program is free software; you can redistribute it and/or modify it*     under the terms of the GNU General Public License as published by the*     Free Software Foundation; either version 2 of the License, or (at your*     option) any later version.***     XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A*     COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS*     ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR STANDARD,*     XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION IS FREE*     FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE FOR OBTAINING*     ANY THIRD PARTY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.*     XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO*     THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY*     WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM*     CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND*     FITNESS FOR A PARTICULAR PURPOSE.***     Xilinx hardware products are not intended for use in life support*     appliances, devices, or systems. Use in such applications is*     expressly prohibited.***     (c) Copyright 2002-2004 Xilinx Inc.*     All rights reserved.***     You should have received a copy of the GNU General Public License along*     with this program; if not, write to the Free Software Foundation, Inc.,*     675 Mass Ave, Cambridge, MA 02139, USA.*******************************************************************************//*****************************************************************************//**** @file xemac_polled.c** Contains functions used when the driver is in polled mode. Use the* XEmac_SetOptions() function to put the driver into polled mode.** <pre>* MODIFICATION HISTORY:** Ver   Who  Date     Changes* ----- ---- -------- -----------------------------------------------* 1.00a rpm  07/31/01 First release* 1.00b rpm  02/20/02 Repartitioned files and functions* 1.00c rpm  12/05/02 New version includes support for simple DMA* </pre>*******************************************************************************//***************************** Include Files *********************************/#include "xbasic_types.h"#include "xemac_i.h"#include "xio.h"#include "xipif_v1_23_b.h"	/* Uses v1.23b of the IPIF *//************************** Constant Definitions *****************************//**************************** Type Definitions *******************************//***************** Macros (Inline Functions) Definitions *********************//************************** Variable Definitions *****************************//************************** Function Prototypes ******************************//*****************************************************************************//**** Send an Ethernet frame in polled mode.  The device/driver must be in polled* mode before calling this function. The driver writes the frame directly to* the MAC's packet FIFO, then enters a loop checking the device status for* completion or error. Statistics are updated if an error occurs. The buffer* to be sent must be word-aligned.** It is assumed that the upper layer software supplies a correctly formatted* Ethernet frame, including the destination and source addresses, the* type/length field, and the data field.  It is also assumed that upper layer* software does not append FCS at the end of the frame.** @param InstancePtr is a pointer to the XEmac instance to be worked on.* @param BufPtr is a pointer to a word-aligned buffer containing the Ethernet*        frame to be sent.* @param ByteCount is the size of the Ethernet frame.** @return** - XST_SUCCESS if the frame was sent successfully* - XST_DEVICE_IS_STOPPED if the device has not yet been started* - XST_NOT_POLLED if the device is not in polled mode* - XST_FIFO_NO_ROOM if there is no room in the EMAC's length FIFO for this frame* - XST_FIFO_ERROR if the FIFO was overrun or underrun. This error is critical*   and requires the caller to reset the device.* - XST_EMAC_COLLISION if the send failed due to excess deferral or late*   collision** @note** There is the possibility that this function will not return if the hardware* is broken (i.e., it never sets the status bit indicating that transmission is* done). If this is of concern to the user, the user should provide protection* from this problem - perhaps by using a different timer thread to monitor the* PollSend thread. On a 10Mbps MAC, it takes about 1.21 msecs to transmit a* maximum size Ethernet frame (1518 bytes). On a 100Mbps MAC, it takes about* 121 usecs to transmit a maximum size Ethernet frame.** @internal** The EMAC uses FIFOs behind its length and status registers. For this reason,* it is important to keep the length, status, and data FIFOs in sync when* reading or writing to them.*******************************************************************************/XStatusXEmac_PollSend(XEmac * InstancePtr, u8 * BufPtr, u32 ByteCount){	u32 IntrStatus;	u32 XmitStatus;	XStatus Result;	XASSERT_NONVOID(InstancePtr != NULL);	XASSERT_NONVOID(BufPtr != NULL);	XASSERT_NONVOID(ByteCount > XEM_HDR_SIZE);	/* send at least 1 byte */	XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);	/*	 * Be sure the device is configured for polled mode and it is started	 */	if (!InstancePtr->IsPolled) {		return XST_NOT_POLLED;	}	if (InstancePtr->IsStarted != XCOMPONENT_IS_STARTED) {		return XST_DEVICE_IS_STOPPED;	}	/*	 * Check for overruns and underruns for the transmit status and length	 * FIFOs and make sure the send packet FIFO is not deadlocked. Any of these	 * conditions is bad enough that we do not want to continue. The upper layer	 * software should reset the device to resolve the error.	 */	IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);	/*	 * Overrun errors	 */	if (IntrStatus & (XEM_EIR_XMIT_SFIFO_OVER_MASK |			  XEM_EIR_XMIT_LFIFO_OVER_MASK)) {		InstancePtr->Stats.XmitOverrunErrors++;		InstancePtr->Stats.FifoErrors++;		return XST_FIFO_ERROR;	}	/*	 * Underrun errors	 */	if (IntrStatus & (XEM_EIR_XMIT_SFIFO_UNDER_MASK |			  XEM_EIR_XMIT_LFIFO_UNDER_MASK)) {		InstancePtr->Stats.XmitUnderrunErrors++;		InstancePtr->Stats.FifoErrors++;		return XST_FIFO_ERROR;	}	if (XPF_V100B_IS_DEADLOCKED(&InstancePtr->SendFifo)) {		InstancePtr->Stats.FifoErrors++;		return XST_FIFO_ERROR;	}	/*	 * Before writing to the data FIFO, make sure the length FIFO is not	 * full.  The data FIFO might not be full yet even though the length FIFO	 * is. This avoids an overrun condition on the length FIFO and keeps the	 * FIFOs in sync.	 */	if (IntrStatus & XEM_EIR_XMIT_LFIFO_FULL_MASK) {		/*		 * Clear the latched LFIFO_FULL bit so next time around the most		 * current status is represented		 */		XIIF_V123B_WRITE_IISR(InstancePtr->BaseAddress,				      XEM_EIR_XMIT_LFIFO_FULL_MASK);		return XST_FIFO_NO_ROOM;	}	/*	 * This is a non-blocking write. The packet FIFO returns an error if there	 * is not enough room in the FIFO for this frame.	 */	Result =	    XPacketFifoV100b_Write(&InstancePtr->SendFifo, BufPtr, ByteCount);	if (Result != XST_SUCCESS) {		return Result;	}	/*	 * Loop on the MAC's status to wait for any pause to complete.	 */	IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);	while ((IntrStatus & XEM_EIR_XMIT_PAUSE_MASK) != 0) {		IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);		/*		   * Clear the pause status from the transmit status register		 */		XIIF_V123B_WRITE_IISR(InstancePtr->BaseAddress,				      IntrStatus & XEM_EIR_XMIT_PAUSE_MASK);	}	/*	 * Set the MAC's transmit packet length register to tell it to transmit	 */	XIo_Out32(InstancePtr->BaseAddress + XEM_TPLR_OFFSET, ByteCount);	/*	 * Loop on the MAC's status to wait for the transmit to complete. The	 * transmit status is in the FIFO when the XMIT_DONE bit is set.	 */	do {		IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);	}	while ((IntrStatus & XEM_EIR_XMIT_DONE_MASK) == 0);	XmitStatus = XIo_In32(InstancePtr->BaseAddress + XEM_TSR_OFFSET);	InstancePtr->Stats.XmitFrames++;	InstancePtr->Stats.XmitBytes += ByteCount;	/*	 * Check for various errors, bump statistics, and return an error status.	 */	/*

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚男人的天堂| 国产午夜精品一区二区| 久久久综合视频| 亚洲激情成人在线| 国产精品一级二级三级| 欧美日韩国产高清一区二区三区| 亚洲国产激情av| 激情综合色综合久久综合| 91麻豆自制传媒国产之光| 久久久久久电影| 日本不卡不码高清免费观看| 在线观看网站黄不卡| 久久久99精品免费观看| 蜜臀av性久久久久蜜臀aⅴ流畅 | 成人ar影院免费观看视频| 欧美区视频在线观看| 亚洲色图一区二区| 波多野结衣精品在线| 91麻豆精品国产综合久久久久久| 夜夜嗨av一区二区三区四季av| 国产成人av福利| 337p日本欧洲亚洲大胆精品| 亚洲国产视频直播| 在线免费视频一区二区| 亚洲伦在线观看| 99精品热视频| 亚洲欧美色一区| 色噜噜狠狠色综合中国| 亚洲另类在线一区| 日本精品视频一区二区三区| 亚洲美女一区二区三区| 91一区二区三区在线观看| 亚洲视频网在线直播| 91色porny蝌蚪| 一区二区三区欧美激情| 欧美日韩在线三级| 日韩福利视频导航| 日韩欧美在线一区二区三区| 免费三级欧美电影| 欧美精品一区二区三区在线| 国产美女精品一区二区三区| 欧美国产日产图区| 色哟哟亚洲精品| 亚洲综合小说图片| 欧美一区二区三区在线视频| 成人成人成人在线视频| 国产欧美日产一区| av一区二区久久| 亚洲影院在线观看| 91精品国产一区二区三区| 精品亚洲国产成人av制服丝袜 | 国产成人精品三级| 国产精品久久毛片a| 色综合天天综合| 午夜a成v人精品| 久久在线免费观看| 色综合久久久久久久| 午夜精品一区二区三区三上悠亚| 日韩一区二区三区在线视频| 成人丝袜18视频在线观看| 亚洲精选视频免费看| 欧美一级夜夜爽| 美腿丝袜亚洲三区| 国产精品色哟哟网站| 欧美三级电影在线看| 极品少妇xxxx偷拍精品少妇| 亚洲欧美偷拍另类a∨色屁股| 欧美疯狂性受xxxxx喷水图片| 老司机免费视频一区二区三区| 中文字幕第一区二区| 欧美群妇大交群中文字幕| 国产成人欧美日韩在线电影| 午夜视频一区二区| 久久精品网站免费观看| 91久久一区二区| 黄色资源网久久资源365| 国产欧美日韩另类一区| 欧美丰满高潮xxxx喷水动漫 | 韩日av一区二区| 亚洲伦理在线精品| 久久综合中文字幕| 欧美日韩精品是欧美日韩精品| 国内精品国产三级国产a久久| 亚洲黄一区二区三区| 久久综合久久鬼色中文字| 在线观看日韩av先锋影音电影院| 激情综合网av| 日产国产高清一区二区三区| 中文字幕一区av| 国产亚洲成年网址在线观看| 日韩一级大片在线| 欧美在线观看18| www.欧美色图| 国产成人小视频| 男女男精品视频网| 亚洲成a人v欧美综合天堂| 1024成人网| 欧美国产一区在线| 26uuu色噜噜精品一区| 在线观看91av| 欧美三级在线视频| 日本福利一区二区| 91免费在线播放| av动漫一区二区| 96av麻豆蜜桃一区二区| av在线不卡电影| 大陆成人av片| 国产aⅴ精品一区二区三区色成熟| 精品午夜久久福利影院| 美女一区二区视频| 免费观看一级欧美片| 日韩中文字幕一区二区三区| 亚洲成人手机在线| 图片区小说区国产精品视频| 中文字幕一区二区三区不卡| 国产亚洲短视频| 日本一二三不卡| 精品国一区二区三区| 欧美丝袜自拍制服另类| 欧美在线免费观看亚洲| 日本精品裸体写真集在线观看| 99久久久久久99| 色偷偷久久人人79超碰人人澡 | 日本高清不卡一区| 色网综合在线观看| 精品视频免费看| 欧美一区在线视频| 日韩午夜激情电影| 久久久国产午夜精品 | 久久综合九色综合97婷婷女人| 日韩午夜av一区| 久久九九国产精品| 自拍偷拍国产亚洲| 亚洲成av人片一区二区三区| 日韩国产欧美在线观看| 久久99国内精品| 午夜视频久久久久久| 久久99久久99| 风间由美一区二区三区在线观看 | 亚洲免费观看高清完整| 亚洲国产综合人成综合网站| 免费视频一区二区| 国产**成人网毛片九色| 色综合激情五月| 欧美一级生活片| 国产精品五月天| 亚洲一本大道在线| 国产九九视频一区二区三区| 91年精品国产| 日韩欧美区一区二| 亚洲欧洲一区二区三区| 蜜臀av一级做a爰片久久| 成人av网站在线| 欧美精品xxxxbbbb| 国产精品传媒入口麻豆| 免费在线一区观看| 色综合久久综合网| 精品久久久三级丝袜| 亚洲免费观看高清| 蜜桃久久久久久| 91在线看国产| 精品国产乱码久久久久久老虎| 成人免费小视频| 精品写真视频在线观看| 欧美性生交片4| 欧美国产欧美综合| 午夜精品久久久久久久| 99久久免费精品高清特色大片| 日韩欧美你懂的| 亚洲资源中文字幕| 国v精品久久久网| 精品国产一区二区三区四区四| 亚洲一区二区三区在线| www.99精品| 精品剧情在线观看| 丝瓜av网站精品一区二区| 91视频一区二区三区| 久久久精品中文字幕麻豆发布| 亚洲123区在线观看| 在线中文字幕不卡| 中文字幕在线观看不卡视频| 国产一区二区三区黄视频 | 日本韩国视频一区二区| 国产欧美一区二区精品忘忧草| 日本成人中文字幕| 欧美日韩第一区日日骚| 亚洲伊人色欲综合网| 91高清在线观看| 亚洲另类在线一区| 99re免费视频精品全部| 国产精品午夜久久| 成人性视频免费网站| 久久久美女毛片| 国产一区二区在线观看免费| 精品少妇一区二区三区在线播放 | 日本在线不卡视频| 欧美美女网站色| 日韩和欧美的一区| 中文乱码免费一区二区| 捆绑调教一区二区三区|