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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mv_eth.c

?? u-boot1.3.0的原碼,從配了網(wǎng)絡(luò)驅(qū)動(dòng)和FLASH的驅(qū)動(dòng),并該用ESC竟如
?? C
?? 第 1 頁 / 共 5 頁
字號(hào):
			break;		default:	/* should not happen */			break;		}	} while (release_result == ETH_OK);	return 0;		/* success */      error:	return 1;		/* Failed - higher layers will free the skb */}/********************************************************************** * mv64360_eth_receive * * This function is forward packets that are received from the port's * queues toward kernel core or FastRoute them to another interface. * * Input : dev - a pointer to the required interface *         max - maximum number to receive (0 means unlimted) * * Output : number of served packets **********************************************************************/int mv64360_eth_receive (struct eth_device *dev){	ETH_PORT_INFO *ethernet_private;	struct mv64360_eth_priv *port_private;	unsigned int port_num;	PKT_INFO pkt_info;	struct net_device_stats *stats;	ethernet_private = (ETH_PORT_INFO *) dev->priv;	port_private =		(struct mv64360_eth_priv *) ethernet_private->port_private;	port_num = port_private->port_num;	stats = port_private->stats;	while ((eth_port_receive (ethernet_private, ETH_Q0, &pkt_info) ==		ETH_OK)) {#ifdef DEBUG_MV_ETH		if (pkt_info.byte_cnt != 0) {			printf ("%s: Received %d byte Packet @ 0x%x\n",				__FUNCTION__, pkt_info.byte_cnt,				pkt_info.buf_ptr);		}#endif		/* Update statistics. Note byte count includes 4 byte CRC count */		stats->rx_packets++;		stats->rx_bytes += pkt_info.byte_cnt;		/*		 * In case received a packet without first / last bits on OR the error		 * summary bit is on, the packets needs to be dropeed.		 */		if (((pkt_info.		      cmd_sts & (ETH_RX_FIRST_DESC | ETH_RX_LAST_DESC)) !=		     (ETH_RX_FIRST_DESC | ETH_RX_LAST_DESC))		    || (pkt_info.cmd_sts & ETH_ERROR_SUMMARY)) {			stats->rx_dropped++;			printf ("Received packet spread on multiple descriptors\n");			/* Is this caused by an error ? */			if (pkt_info.cmd_sts & ETH_ERROR_SUMMARY) {				stats->rx_errors++;			}			/* free these descriptors again without forwarding them to the higher layers */			pkt_info.buf_ptr &= ~0x7;	/* realign buffer again */			pkt_info.byte_cnt = 0x0000;	/* Reset Byte count */			if (eth_rx_return_buff			    (ethernet_private, ETH_Q0, &pkt_info) != ETH_OK) {				printf ("Error while returning the RX Desc to Ring\n");			} else {				DP (printf ("RX Desc returned to Ring\n"));			}			/* /free these descriptors again */		} else {/* !!! call higher layer processing */#ifdef DEBUG_MV_ETH			printf ("\nNow send it to upper layer protocols (NetReceive) ...\n");#endif			/* let the upper layer handle the packet */			NetReceive ((uchar *) pkt_info.buf_ptr,				    (int) pkt_info.byte_cnt);/* **************************************************************** *//* free descriptor  */			pkt_info.buf_ptr &= ~0x7;	/* realign buffer again */			pkt_info.byte_cnt = 0x0000;	/* Reset Byte count */			DP (printf			    ("RX: pkt_info.buf_ptr =	%x\n",			     pkt_info.buf_ptr));			if (eth_rx_return_buff			    (ethernet_private, ETH_Q0, &pkt_info) != ETH_OK) {				printf ("Error while returning the RX Desc to Ring\n");			} else {				DP (printf ("RX Desc returned to Ring\n"));			}/* **************************************************************** */		}	}	mv64360_eth_get_stats (dev);	/* update statistics */	return 1;}/********************************************************************** * mv64360_eth_get_stats * * Returns a pointer to the interface statistics. * * Input : dev - a pointer to the required interface * * Output : a pointer to the interface's statistics **********************************************************************/static struct net_device_stats *mv64360_eth_get_stats (struct eth_device *dev){	ETH_PORT_INFO *ethernet_private;	struct mv64360_eth_priv *port_private;	unsigned int port_num;	ethernet_private = (ETH_PORT_INFO *) dev->priv;	port_private =		(struct mv64360_eth_priv *) ethernet_private->port_private;	port_num = port_private->port_num;	mv64360_eth_update_stat (dev);	return port_private->stats;}/********************************************************************** * mv64360_eth_update_stat * * Update the statistics structure in the private data structure * * Input : pointer to ethernet interface network device structure * Output : N/A **********************************************************************/static void mv64360_eth_update_stat (struct eth_device *dev){	ETH_PORT_INFO *ethernet_private;	struct mv64360_eth_priv *port_private;	struct net_device_stats *stats;	unsigned int port_num;	volatile unsigned int dummy;	ethernet_private = (ETH_PORT_INFO *) dev->priv;	port_private =		(struct mv64360_eth_priv *) ethernet_private->port_private;	port_num = port_private->port_num;	stats = port_private->stats;	/* These are false updates */	stats->rx_packets += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_FRAMES_RECEIVED);	stats->tx_packets += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_FRAMES_SENT);	stats->rx_bytes += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_OCTETS_RECEIVED_LOW);	/*	 * Ideally this should be as follows -	 *	 *   stats->rx_bytes   += stats->rx_bytes +	 * ((unsigned long) ethReadMibCounter (ethernet_private->port_num ,	 * ETH_MIB_GOOD_OCTETS_RECEIVED_HIGH) << 32);	 *	 * But the unsigned long in PowerPC and MIPS are 32bit. So the next read	 * is just a dummy read for proper work of the GigE port	 */	dummy = eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_OCTETS_RECEIVED_HIGH);	stats->tx_bytes += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_OCTETS_SENT_LOW);	dummy = eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_GOOD_OCTETS_SENT_HIGH);	stats->rx_errors += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_MAC_RECEIVE_ERROR);	/* Rx dropped is for received packet with CRC error */	stats->rx_dropped +=		(unsigned long) eth_read_mib_counter (ethernet_private->						      port_num,						      ETH_MIB_BAD_CRC_EVENT);	stats->multicast += (unsigned long)		eth_read_mib_counter (ethernet_private->port_num,				      ETH_MIB_MULTICAST_FRAMES_RECEIVED);	stats->collisions +=		(unsigned long) eth_read_mib_counter (ethernet_private->						      port_num,						      ETH_MIB_COLLISION) +		(unsigned long) eth_read_mib_counter (ethernet_private->						      port_num,						      ETH_MIB_LATE_COLLISION);	/* detailed rx errors */	stats->rx_length_errors +=		(unsigned long) eth_read_mib_counter (ethernet_private->						      port_num,						      ETH_MIB_UNDERSIZE_RECEIVED)		+		(unsigned long) eth_read_mib_counter (ethernet_private->						      port_num,						      ETH_MIB_OVERSIZE_RECEIVED);	/* detailed tx errors */}#ifndef  UPDATE_STATS_BY_SOFTWARE/********************************************************************** * mv64360_eth_print_stat * * Update the statistics structure in the private data structure * * Input : pointer to ethernet interface network device structure * Output : N/A **********************************************************************/static void mv64360_eth_print_stat (struct eth_device *dev){	ETH_PORT_INFO *ethernet_private;	struct mv64360_eth_priv *port_private;	struct net_device_stats *stats;	unsigned int port_num;	ethernet_private = (ETH_PORT_INFO *) dev->priv;	port_private =		(struct mv64360_eth_priv *) ethernet_private->port_private;	port_num = port_private->port_num;	stats = port_private->stats;	/* These are false updates */	printf ("\n### Network statistics: ###\n");	printf ("--------------------------\n");	printf (" Packets received:		%ld\n", stats->rx_packets);	printf (" Packets send:			%ld\n", stats->tx_packets);	printf (" Received bytes:		%ld\n", stats->rx_bytes);	printf (" Send bytes:			%ld\n", stats->tx_bytes);	if (stats->rx_errors != 0)		printf (" Rx Errors:			%ld\n",			stats->rx_errors);	if (stats->rx_dropped != 0)		printf (" Rx dropped (CRC Errors):	%ld\n",			stats->rx_dropped);	if (stats->multicast != 0)		printf (" Rx mulicast frames:		%ld\n",			stats->multicast);	if (stats->collisions != 0)		printf (" No. of collisions:		%ld\n",			stats->collisions);	if (stats->rx_length_errors != 0)		printf (" Rx length errors:		%ld\n",			stats->rx_length_errors);}#endif/************************************************************************** *network_start - Network Kick Off Routine UBoot *Inputs : *Outputs : **************************************************************************/bool db64360_eth_start (struct eth_device *dev){	return (mv64360_eth_open (dev));	/* calls real open */}/******************************************************************************************************************************************************************************************************************************  The second part is the low level driver of the gigE ethernet ports.   ******************************************************************************************************************************************************************************************************************************//* * based on Linux code * arch/ppc/galileo/EVB64360/mv64360_eth.c - Driver for MV64360X ethernet ports * Copyright (C) 2002 rabeeh@galileo.co.il * 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. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * 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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * *//******************************************************************************** * Marvell's Gigabit Ethernet controller low level driver * * DESCRIPTION: *       This file introduce low level API to Marvell's Gigabit Ethernet *		controller. This Gigabit Ethernet Controller driver API controls *		1) Operations (i.e. port init, start, reset etc'). *		2) Data flow (i.e. port send, receive etc'). *		Each Gigabit Ethernet port is controlled via ETH_PORT_INFO *		struct. *		This struct includes user configuration information as well as *		driver internal data needed for its operations. * *		Supported Features: *		- This low level driver is OS independent. Allocating memory for *		  the descriptor rings and buffers are not within the scope of *		  this driver. *		- The user is free from Rx/Tx queue managing. *		- This low level driver introduce functionality API that enable *		  the to operate Marvell's Gigabit Ethernet Controller in a *		  convenient way. *		- Simple Gigabit Ethernet port operation API. *		- Simple Gigabit Ethernet port data flow API. *		- Data flow and operation API support per queue functionality. *		- Support cached descriptors for better performance. *		- Enable access to all four DRAM banks and internal SRAM memory *		  spaces. *		- PHY access and control API. *		- Port control register configuration API. *		- Full control over Unicast and Multicast MAC configurations. * *		Operation flow: * *		Initialization phase *		This phase complete the initialization of the ETH_PORT_INFO *		struct. *		User information regarding port configuration has to be set *		prior to calling the port initialization routine. For example, *		the user has to assign the port_phy_addr field which is board *		depended parameter. *		In this phase any port Tx/Rx activity is halted, MIB counters *		are cleared, PHY address is set according to user parameter and *		access to DRAM and internal SRAM memory spaces. * *		Driver ring initialization *		Allocating memory for the descriptor rings and buffers is not *		within the scope of this driver. Thus, the user is required to *		allocate memory for the descriptors ring and buffers. Those *		memory parameters are used by the Rx and Tx ring initialization *		routines in order to curve the descriptor linked list in a form *		of a ring. *		Note: Pay special attention to alignment issues when using *		cached descriptors/buffers. In this phase the driver store *		information in the ETH_PORT_INFO struct regarding each queue *		ring. * *		Driver start *		This phase prepares the Ethernet port for Rx and Tx activity. *		It uses the information stored in the ETH_PORT_INFO struct to *		initialize the various port registers. * *		Data flow: *		All packet references to/from the driver are done using PKT_INFO *		struct. *		This struct is a unified struct used with Rx and Tx operations. *		This way the user is not required to be familiar with neither *		Tx nor Rx descriptors structures. *		The driver's descriptors rings are management by indexes. *		Those indexes controls the ring resources and used to indicate *		a SW resource error: *		'current' *		This index points to the current available resource for use. For *		example in Rx process this index will point to the descriptor *		that will be passed to the user upon calling the receive routine. *		In Tx process, this index will point to the descriptor *		that will be assigned with the user packet info and transmitted. *		'used' *		This index points to the descriptor that need to restore its *		resources. For example in Rx process, using the Rx buffer return

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
884aa四虎影成人精品一区| 精品动漫一区二区三区在线观看| 国产一区中文字幕| 日韩av电影天堂| 精品成人私密视频| 欧美一二三区在线观看| 欧美亚洲综合在线| 成av人片一区二区| 成人高清视频在线| 成人av免费在线观看| 国产成人精品一区二| 国产精品中文字幕日韩精品| 蜜桃视频在线观看一区二区| 亚洲电影欧美电影有声小说| 亚洲精品日韩一| 亚洲美女免费在线| 久久综合九色综合欧美98 | 91色porny在线视频| 美女尤物国产一区| 香蕉久久夜色精品国产使用方法| 亚洲精品精品亚洲| 美女在线视频一区| 亚洲一区在线播放| 国产亚洲福利社区一区| 日韩无一区二区| 日韩三级.com| 久久久精品影视| 国产精品的网站| 一区二区三区四区在线免费观看| 夜夜精品浪潮av一区二区三区| 午夜私人影院久久久久| 日本中文字幕一区二区有限公司| 久久99国产乱子伦精品免费| 国产大陆a不卡| 色吧成人激情小说| 欧美一二三四在线| 日本一区二区视频在线观看| 亚洲精品免费一二三区| 日本不卡在线视频| 成人av电影免费在线播放| 在线观看欧美精品| 亚洲精品在线免费播放| 中文字幕在线观看不卡| 丝袜美腿成人在线| 成人免费视频播放| 在线播放91灌醉迷j高跟美女 | 国产婷婷色一区二区三区四区 | 亚洲综合在线免费观看| 秋霞午夜av一区二区三区 | 日韩精品一区二区三区中文不卡| 国产日产欧美精品一区二区三区| 亚洲精品免费在线观看| 久久疯狂做爰流白浆xx| 色琪琪一区二区三区亚洲区| 日韩欧美专区在线| 亚洲人成网站在线| 国产一区二区在线免费观看| 欧美在线视频日韩| 久久精品亚洲精品国产欧美| 一区二区视频在线| 国产精品99久久久久久似苏梦涵| 欧美亚洲一区二区在线观看| 国产欧美日韩综合| 亚洲成va人在线观看| 丁香一区二区三区| 欧美一区二区视频观看视频 | 粉嫩aⅴ一区二区三区四区五区| 欧美日韩亚洲综合一区 | 美女被吸乳得到大胸91| 日本乱人伦aⅴ精品| 国产午夜精品久久久久久免费视| 日韩中文字幕av电影| 91尤物视频在线观看| 久久精品人人做人人综合 | 亚洲午夜视频在线| av在线播放不卡| 精品美女在线播放| 日韩影院在线观看| 欧美日韩精品综合在线| 中文一区二区完整视频在线观看| 免费高清在线一区| 欧美军同video69gay| 夜夜爽夜夜爽精品视频| av激情亚洲男人天堂| 久久久久成人黄色影片| 激情偷乱视频一区二区三区| 91精品国产一区二区人妖| 亚洲自拍欧美精品| 色综合久久久久久久| 综合av第一页| 99视频热这里只有精品免费| 久久精品一二三| 国产精品一区二区三区网站| 久久亚洲欧美国产精品乐播| 免费久久精品视频| 欧美日韩三级一区二区| 午夜一区二区三区在线观看| 日本高清不卡视频| 综合中文字幕亚洲| 色一情一乱一乱一91av| 亚洲精品欧美激情| 91豆麻精品91久久久久久| 亚洲美女免费视频| 在线视频综合导航| 亚洲国产日韩a在线播放性色| 日本韩国精品在线| 亚洲欧美国产毛片在线| 色妞www精品视频| 亚洲专区一二三| 欧美中文字幕一二三区视频| 亚洲一区二区三区在线看| 精品视频在线免费观看| 日韩专区欧美专区| 日韩美女视频在线| 国内精品伊人久久久久av影院| 久久综合五月天婷婷伊人| 国产乱子伦一区二区三区国色天香| 欧美国产激情二区三区| a亚洲天堂av| 亚洲一区二区欧美| 欧美电影影音先锋| 狠狠色综合播放一区二区| 久久你懂得1024| bt7086福利一区国产| 亚洲精品国产高清久久伦理二区| 欧美在线你懂得| 青青国产91久久久久久| 精品久久国产97色综合| 国产成人亚洲综合a∨婷婷图片| 国产精品久久久久一区二区三区共| 一本一本大道香蕉久在线精品| 亚洲宅男天堂在线观看无病毒| 7777精品伊人久久久大香线蕉超级流畅| 视频在线观看91| 欧美精品一区二区不卡| 99久久精品国产一区二区三区| 亚洲精品国产a久久久久久| 欧美午夜精品久久久久久超碰| 视频在线观看一区| 国产午夜精品一区二区三区嫩草 | 日韩精品专区在线影院重磅| 国产一区二区三区四区五区美女 | 另类调教123区| 中文欧美字幕免费| 欧美日韩在线三级| 国产一区二区三区在线观看精品 | 中文字幕一区二区在线播放| 欧美日韩中字一区| 国产成人免费视频一区| 亚洲v精品v日韩v欧美v专区| 精品盗摄一区二区三区| 91小宝寻花一区二区三区| 日韩激情中文字幕| 国产精品美女久久久久久久| 欧美日韩黄色影视| 丰满少妇久久久久久久| 午夜精品视频在线观看| 亚洲国产精品成人久久综合一区| 欧美日韩一区三区四区| 国产很黄免费观看久久| 日日夜夜一区二区| 日韩毛片视频在线看| 日韩免费在线观看| 一本色道久久综合亚洲aⅴ蜜桃 | 99久久久无码国产精品| 日本v片在线高清不卡在线观看| 最新久久zyz资源站| 日韩欧美亚洲国产精品字幕久久久 | 亚洲国产美国国产综合一区二区 | 久久99精品久久只有精品| 亚洲欧洲综合另类| 久久久亚洲欧洲日产国码αv| 欧美探花视频资源| 国产黄色91视频| 久久成人免费电影| 亚洲国产视频一区| 最新中文字幕一区二区三区| 精品88久久久久88久久久| 91精品欧美一区二区三区综合在| 欧美一级专区免费大片| 国产精品久久久久7777按摩| 欧美一区二区成人| 国产精品一品视频| 亚洲高清视频中文字幕| 亚洲人一二三区| 国产精品素人一区二区| 日韩欧美一区二区不卡| 精品视频1区2区| 欧美亚洲综合网| 91免费在线播放| 91影视在线播放| 99久久精品国产毛片| 国产成人午夜视频| 国产剧情一区二区| 久久精品国产99国产精品| 国产精品羞羞答答xxdd| 精品一二三四在线| 精品亚洲成a人| 国产一区二区在线观看免费| 免费观看在线色综合|