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

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

?? xemac_polled.c

?? gumstiz u-boot loader in linux
?? 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一区二区三区免费野_久草精品视频
亚洲成人手机在线| 亚洲精品高清在线观看| 欧美老女人第四色| 欧美影院午夜播放| 欧美性淫爽ww久久久久无| 91老师片黄在线观看| 色88888久久久久久影院按摩| 不卡视频在线看| 日本精品一区二区三区高清 | 欧美一区二区三区在| 欧美久久久久久蜜桃| 欧美日韩国产小视频| 欧美日本视频在线| 欧美r级在线观看| 国产亚洲欧洲997久久综合 | 久久er精品视频| 精品一区二区三区在线观看| 国产suv精品一区二区6| av一本久道久久综合久久鬼色| 99久久精品免费看国产| 91福利资源站| 日韩三级视频中文字幕| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲精品在线观| 国产精品电影院| 日韩国产高清影视| 国产一区二区成人久久免费影院| 成人少妇影院yyyy| 欧美日韩一区在线观看| 26uuu国产电影一区二区| 国产精品久久久久影院色老大| 亚洲一区二区三区免费视频| 极品少妇一区二区三区精品视频| 99精品偷自拍| 欧美mv日韩mv国产网站| 国产精品二三区| 美女视频免费一区| 色香蕉久久蜜桃| 精品女同一区二区| 亚洲最新视频在线观看| 韩国欧美国产一区| 欧美视频在线不卡| 国产精品电影一区二区| 美女任你摸久久| 欧美日韩中文字幕精品| 国产色婷婷亚洲99精品小说| 亚洲v日本v欧美v久久精品| 国产福利91精品| 欧美成va人片在线观看| 成人免费在线播放视频| 国产一二精品视频| 5566中文字幕一区二区电影| 一区二区日韩av| av高清久久久| 国产精品丝袜一区| 国产精品88av| 精品久久久三级丝袜| 五月天精品一区二区三区| 色综合中文综合网| 热久久国产精品| 在线欧美日韩精品| 国产精品免费视频观看| 狠狠狠色丁香婷婷综合激情| 欧美美女视频在线观看| 亚洲成在线观看| 欧美亚洲动漫精品| 一区二区三区美女视频| 不卡在线观看av| 中文字幕久久午夜不卡| 国产成人综合在线| 欧美精品一区二区三区视频| 日韩黄色小视频| 欧美系列亚洲系列| 亚洲国产综合视频在线观看| 色8久久人人97超碰香蕉987| 一区二区在线观看不卡| 色噜噜狠狠色综合中国| 亚洲精品老司机| 91黄色免费版| 五月天婷婷综合| 日韩亚洲欧美高清| 韩国成人在线视频| 国产喂奶挤奶一区二区三区| 福利一区二区在线| 国产精品乱人伦| 91精彩视频在线观看| 五月天激情小说综合| 欧美一级精品在线| 国产老肥熟一区二区三区| 国产情人综合久久777777| 99麻豆久久久国产精品免费| 亚洲影视在线播放| 日韩精品综合一本久道在线视频| 国产美女视频一区| 亚洲欧美日韩中文字幕一区二区三区| 91成人免费在线| 精品综合免费视频观看| 国产精品国产三级国产aⅴ原创| 色久优优欧美色久优优| 日韩二区三区四区| 国产亚洲欧美一级| 在线亚洲精品福利网址导航| 蜜臀99久久精品久久久久久软件| 久久女同精品一区二区| 欧美影片第一页| 国产精品一卡二| 视频一区中文字幕| 中文字幕av一区二区三区| 欧美日韩午夜在线| 国产成人精品免费网站| 亚洲成av人片观看| 国产亲近乱来精品视频 | 亚洲va国产天堂va久久en| 日韩欧美你懂的| 91在线播放网址| 韩国女主播成人在线| 玉足女爽爽91| 国产午夜精品一区二区三区嫩草 | 欧美成人精品3d动漫h| 91久久精品国产91性色tv | 欧美性xxxxxxxx| 大胆亚洲人体视频| 日本欧美一区二区| 亚洲欧洲三级电影| 亚洲精品一区二区三区在线观看 | 久久嫩草精品久久久久| 欧美日本在线看| 色综合欧美在线| 国产成人精品亚洲777人妖| 日本不卡视频一二三区| 一区二区日韩电影| 中文字幕视频一区| 国产精品三级av| 久久久九九九九| 久久综合中文字幕| 欧美大片日本大片免费观看| 欧美精品一二三| 在线观看日韩国产| 一本到一区二区三区| 97精品国产露脸对白| 99这里都是精品| 成人精品视频一区二区三区尤物| 国产乱人伦偷精品视频不卡| 美女www一区二区| 美女mm1313爽爽久久久蜜臀| 日韩电影在线一区二区三区| 午夜天堂影视香蕉久久| 亚洲综合激情小说| 亚洲激情av在线| 亚洲最新在线观看| 亚洲国产另类精品专区| 亚洲国产中文字幕在线视频综合 | 成人精品一区二区三区中文字幕| 国产精品一区二区你懂的| 国产在线一区观看| 国产精品99久久久久久似苏梦涵 | 色偷偷久久一区二区三区| 99精品欧美一区二区三区综合在线| 成人性生交大片免费看在线播放| 国产宾馆实践打屁股91| 成人国产精品免费| 99久久99久久免费精品蜜臀| 北条麻妃国产九九精品视频| 91视频观看免费| 欧美唯美清纯偷拍| 日韩小视频在线观看专区| 欧美videofree性高清杂交| 国产欧美一区二区精品性| 国产精品视频九色porn| 亚洲影视资源网| 久久99久久99小草精品免视看| 国产丶欧美丶日本不卡视频| 91麻豆精品一区二区三区| 欧美日韩视频不卡| 欧美sm极限捆绑bd| 亚洲日本在线天堂| 午夜精品一区在线观看| 国产乱码精品一区二区三区忘忧草 | gogo大胆日本视频一区| 欧美视频一区二区| 26uuu国产日韩综合| 亚洲三级久久久| 久久国产剧场电影| 91碰在线视频| 精品久久久三级丝袜| 亚洲色图19p| 激情小说欧美图片| 91麻豆国产香蕉久久精品| 欧美精品vⅰdeose4hd| 国产精品美女久久久久aⅴ国产馆| 亚洲一区二区三区四区五区黄| 国内精品在线播放| 欧美视频完全免费看| 欧美国产综合色视频| 亚洲va欧美va人人爽午夜| 懂色av中文字幕一区二区三区| 欧美乱妇23p| 亚洲黄色小说网站| 成人免费视频app| 精品乱人伦小说|