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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? cs89x0.c

?? grub4dos-0.4.4-2008- 08-src.zip
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* cs89x0.c: A Crystal Semiconductor CS89[02]0 driver for grub4dos. * *  Copyright (C) 2007 Tinybit <tinybit@tom.com> *  Copyright (C) 1997-2007 Ken Yap <ken.yap@acm.org> *  Copyright (C) 1996-2007 Markus Gutschke <gutschk@math.uni-muenster.de> *  Copyright (C) 1988-2007 Russell Nelson, Crynwr Software * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License version 1 or *  version 2 as published by the Free Software Foundation. * *  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., 675 Mass Ave, Cambridge, MA 02139, USA. *//*In August 2, 2007, Sascha Sommer <ssommer@suse.de> posted a message tothe grub4dos-devel@gna.org mailing list as follows:-------------------------------------------------------------------------------	Subject: 	[Grub4dos-devel] cs89x0.c driver	Hi,	the file netboot/cs98x0.txt contains the following statement:	"Permission is granted to distribute the enclosed cs89x0.[ch] driver	only in conjunction with the Etherboot package.  The code is	ordinarily distributed under the GPL.			Russ Nelson, January 2000"	So it looks like these files cannot be distributed with grub4dos. 	As the Makefile in the netboot dir contains following statements		"# Don't build the netboot support by default."	I wonder if the cs89x0 driver cannot be removed from the grub4dos	distribution.		Regards		Sascha-------------------------------------------------------------------------------In reply to the doubts above, I make the following note on the license issue,and claim we are distributing the code under GPL at the very beginning of thefile.In etherboot-4.2 which was released in June 5, 1999, the files cs89x0.[ch]have this copyright notice by Markus Gutschke(gutschk@math.uni-muenster.de):===============================================================================  This code is heavily based on the linux driver as written by  Russell Nelson <nelson@crynwr.com> and Donald Becker  <becker@cesdis.gsfc.nasa.gov> and modified by Mike Cruse  <mcruse@cti-ltd.com>. That driver has been released under the  conditions of the GNU Public License, thus this one is probably to  be considered "derived work". Therefore, there are some legal  obstacles in combining this file with etherboot's code, which is  released under a BSD style license.  So, if you want to actually use this code, you should make sure that  you are aware of the legal implications. I release *my* work into  the PUBLIC DOMAIN which implies that you can use it either under a  BSD style license, or under the conditions of the GPL, or under any  other conditions that you like. N.B. this does not apply to the  parts that originate from other authors. So, you should probably  contact them first and verify if they agree with your intended use.  If you contacted all of the above authors and they agreed to give  special permission for using this code under the conditions of a BSD  style license, then please do let me know.===============================================================================In a later etherboot release, the copyright notice changed to this:**********************************************************************  Permission is granted to distribute the enclosed cs89x0.[ch] driver  only in conjunction with the Etherboot package.  The code is  ordinarily distributed under the GPL.  Russ Nelson, January 2000**********************************************************************Don't be confused by the statements. Look at the first statement:  Permission is granted to distribute the enclosed cs89x0.[ch] driver  only in conjunction with the Etherboot package.It should be understood as:  ----------------------------------------------------------------------------                                (1)  Permission is granted **(to distribute the enclosed cs89x0.[ch] driver  only in conjunction with the Etherboot package)**.  ----------------------------------------------------------------------------which means if the driver is distributed only in conjunction with theEtherboot package, then Permission is granted for it.It should not be understood as this:  ----------------------------------------------------------------------------                                (2)  **(Permission is granted to distribute the enclosed cs89x0.[ch] driver)**  only in conjunction with the Etherboot package.  ----------------------------------------------------------------------------which means Permission is **only** granted to distribute the driverin conjunction with the Etherboot package, and if it is not distributed inconjunction with Etherboot, then Permission is not granted.The latter understanding of (2) is obviously wrong because it directlyconflicts with GPL claimed above in the second statement by Russ Nelson.But if you consider Russ Nelson's announcements as dual license: one licenseis for how to use this driver in Etherboot:  ----------------------------------------------------------------------------  Permission is granted to distribute the enclosed cs89x0.[ch] driver  only in conjunction with the Etherboot package.  ----------------------------------------------------------------------------and the other license is for how to use this driver in other packages:  --------------------------------------------------------  The code is ordinarily distributed under the GPL.  --------------------------------------------------------then the different understandings between (1) and (2) are not important.This is because, for the dual license, either of the included licensescan be chosen by the recipient. You don't have to accept both licensessimultaneously.We are introducing the driver from Etherboot, so we can legally inheritthe GPL from Etherboot. In any case, we can distribute the cs89x0.[ch]driver under GPL. There are no problems. Don't worry.             ---- Tinybit <tinybit@tom.com> August 20, 2007*//***************************************************************************//***************************************************************************//* cs89x0.c: A Crystal Semiconductor CS89[02]0 driver for etherboot. *//*  Permission is granted to distribute the enclosed cs89x0.[ch] driver  only in conjunction with the Etherboot package.  The code is  ordinarily distributed under the GPL.    Russ Nelson, January 2000  ChangeLog:  Thu Dec 6 22:40:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * disabled all "advanced" features; this should make the code more reliable  * reorganized the reset function  * always reset the address port, so that autoprobing will continue working  * some cosmetic changes  * 2.5  Thu Dec 5 21:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * tested the code against a CS8900 card  * lots of minor bug fixes and adjustments  * this is the first release, that actually works! it still requires some    changes in order to be more tolerant to different environments  * 4  Fri Nov 22 23:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * read the manuals for the CS89x0 chipsets and took note of all the    changes that will be neccessary in order to adapt Russel Nelson's code    to the requirements of a BOOT-Prom  * 6  Thu Nov 19 22:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * Synched with Russel Nelson's current code (v1.00)  * 2  Thu Nov 12 18:00:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * Cleaned up some of the code and tried to optimize the code size.  * 1.5  Sun Nov 10 16:30:00 1996  Markus Gutschke  <gutschk@math.uni-muenster.de>  * First experimental release. This code compiles fine, but I  have no way of testing whether it actually works.  * I did not (yet) bother to make the code 16bit aware, so for  the time being, it will only work for Etherboot/32.  * 12  */#include "etherboot.h"#include "nic.h"#include "cards.h"#include "cs89x0.h"static unsigned short	eth_nic_base;static unsigned long    eth_mem_start;static unsigned short   eth_irq;static unsigned short   eth_cs_type;	/* one of: CS8900, CS8920, CS8920M  */static unsigned short   eth_auto_neg_cnf;static unsigned short   eth_adapter_cnf;static unsigned short	eth_linectl;/*************************************************************************	CS89x0 - specific routines**************************************************************************/static inline int readreg(int portno){	outw(portno, eth_nic_base + ADD_PORT);	return inw(eth_nic_base + DATA_PORT);}static inline void writereg(int portno, int value){	outw(portno, eth_nic_base + ADD_PORT);	outw(value, eth_nic_base + DATA_PORT);	return;}/*************************************************************************EEPROM access**************************************************************************/static int wait_eeprom_ready(void){	unsigned long tmo = currticks() + 4*TICKS_PER_SEC;	/* check to see if the EEPROM is ready, a timeout is used -	   just in case EEPROM is ready when SI_BUSY in the	   PP_SelfST is clear */	while(readreg(PP_SelfST) & SI_BUSY) {		if (currticks() >= tmo)			return -1; }	return 0;}static int get_eeprom_data(int off, int len, unsigned short *buffer){	int i;#ifdef	EDEBUG	printf("\ncs: EEPROM data from %hX for %hX:",off,len);#endif	for (i = 0; i < len; i++) {		if (wait_eeprom_ready() < 0)			return -1;		/* Now send the EEPROM read command and EEPROM location		   to read */		writereg(PP_EECMD, (off + i) | EEPROM_READ_CMD);		if (wait_eeprom_ready() < 0)			return -1;		buffer[i] = readreg(PP_EEData);#ifdef	EDEBUG		if (!(i%10))			printf("\ncs: ");		printf("%hX ", buffer[i]);#endif	}#ifdef	EDEBUG	putchar('\n');#endif	return(0);}static int get_eeprom_chksum(int off, int len, unsigned short *buffer){	int  i, cksum;	cksum = 0;	for (i = 0; i < len; i++)		cksum += buffer[i];	cksum &= 0xffff;	if (cksum == 0)		return 0;	return -1;}/*************************************************************************Activate all of the available media and probe for network**************************************************************************/static void clrline(void){	int i;	putchar('\r');	for (i = 79; i--; ) putchar(' ');	printf("\rcs: ");	return;}static void control_dc_dc(int on_not_off){	unsigned int selfcontrol;	unsigned long tmo = currticks() + TICKS_PER_SEC;	/* control the DC to DC convertor in the SelfControl register.  */	selfcontrol = HCB1_ENBL; /* Enable the HCB1 bit as an output */	if (((eth_adapter_cnf & A_CNF_DC_DC_POLARITY) != 0) ^ on_not_off)		selfcontrol |= HCB1;	else		selfcontrol &= ~HCB1;	writereg(PP_SelfCTL, selfcontrol);	/* Wait for the DC/DC converter to power up - 1000ms */	while (currticks() < tmo);	return;}static int detect_tp(void){	unsigned long tmo;	/* Turn on the chip auto detection of 10BT/ AUI */	clrline(); printf("attempting %s:","TP");        /* If connected to another full duplex capable 10-Base-T card	   the link pulses seem to be lost when the auto detect bit in	   the LineCTL is set.  To overcome this the auto detect bit	   will be cleared whilst testing the 10-Base-T interface.	   This would not be necessary for the sparrow chip but is	   simpler to do it anyway. */	writereg(PP_LineCTL, eth_linectl &~ AUI_ONLY);	control_dc_dc(0);        /* Delay for the hardware to work out if the TP cable is	   present - 150ms */	for (tmo = currticks() + 4; currticks() < tmo; );	if ((readreg(PP_LineST) & LINK_OK) == 0)		return 0;	if (eth_cs_type != CS8900) {		writereg(PP_AutoNegCTL, eth_auto_neg_cnf & AUTO_NEG_MASK);		if ((eth_auto_neg_cnf & AUTO_NEG_BITS) == AUTO_NEG_ENABLE) {			printf(" negotiating duplex... ");			while (readreg(PP_AutoNegST) & AUTO_NEG_BUSY) {				if (currticks() - tmo > 40*TICKS_PER_SEC) {					printf("time out ");					break;				}			}		}		if (readreg(PP_AutoNegST) & FDX_ACTIVE)			printf("using full duplex");		else			printf("using half duplex");	}	return A_CNF_MEDIA_10B_T;}/* send a test packet - return true if carrier bits are ok */static int send_test_pkt(struct nic *nic){	static unsigned char testpacket[] = { 0,0,0,0,0,0, 0,0,0,0,0,0,				     0, 46, /*A 46 in network order       */				     0, 0,  /*DSAP=0 & SSAP=0 fields      */				     0xf3,0 /*Control (Test Req+P bit set)*/ };	unsigned long tmo;	writereg(PP_LineCTL, readreg(PP_LineCTL) | SERIAL_TX_ON);	memcpy(testpacket, nic->node_addr, ETH_ALEN);	memcpy(testpacket+ETH_ALEN, nic->node_addr, ETH_ALEN);	outw(TX_AFTER_ALL, eth_nic_base + TX_CMD_PORT);	outw(ETH_ZLEN, eth_nic_base + TX_LEN_PORT);	/* Test to see if the chip has allocated memory for the packet */	for (tmo = currticks() + 2;	     (readreg(PP_BusST) & READY_FOR_TX_NOW) == 0; )		if (currticks() >= tmo)			return(0);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品视频1区2区3区| 欧美日本视频在线| 日韩精品1区2区3区| 一区二区三区在线免费观看| 欧美一级专区免费大片| 高清日韩电视剧大全免费| 午夜欧美大尺度福利影院在线看 | 色呦呦日韩精品| 成人18精品视频| 午夜精品爽啪视频| 中文字幕一区二区三区蜜月| 日韩一区二区三区电影在线观看| 91成人在线免费观看| 成人av在线资源网站| 精品一区免费av| 五月综合激情网| 樱桃国产成人精品视频| 国产欧美一区二区三区在线看蜜臀| 91精品国产免费| 欧美日韩精品专区| 在线免费观看日韩欧美| 91麻豆国产在线观看| 成人网在线免费视频| 国产精品自在在线| 国产一区二区美女| 卡一卡二国产精品 | 亚洲免费观看高清完整版在线| 精品久久久久久久久久久院品网| 91精品福利在线一区二区三区 | 久久久亚洲午夜电影| 精品国产一区二区三区忘忧草| 欧美丰满少妇xxxxx高潮对白| 欧美在线观看18| 欧美在线制服丝袜| 欧洲一区二区三区免费视频| 色综合天天综合网天天狠天天| 成人av在线观| 97久久超碰国产精品电影| aaa欧美色吧激情视频| 成人激情图片网| www.欧美日韩| 一本久久综合亚洲鲁鲁五月天 | av激情成人网| 成人黄色网址在线观看| jizzjizzjizz欧美| 99久久综合99久久综合网站| 91麻豆swag| 欧美在线视频你懂得| 欧美精品色综合| 精品国产一二三| 国产夜色精品一区二区av| 中文字幕av在线一区二区三区| 国产精品久久久久久久久动漫| 中文字幕一区av| 亚洲自拍偷拍网站| 亚洲第一福利视频在线| 日韩在线一区二区| 国产中文字幕精品| 成人免费高清在线| 一本一本久久a久久精品综合麻豆| 色综合一个色综合| 在线播放中文一区| 精品国产123| 亚洲欧洲av色图| 亚洲国产成人高清精品| 看片的网站亚洲| 99视频精品在线| 欧美视频三区在线播放| 日韩欧美在线影院| 中文成人av在线| 亚洲小说欧美激情另类| 久久精品国产一区二区三| 成人听书哪个软件好| 欧美日本在线视频| 国产日韩欧美精品一区| 一区二区三区视频在线看| 美女视频第一区二区三区免费观看网站| 狠狠v欧美v日韩v亚洲ⅴ| 不卡欧美aaaaa| 56国语精品自产拍在线观看| 国产三级一区二区| 一区二区三区精品| 国产精品77777| 欧美性感一区二区三区| 久久―日本道色综合久久| 依依成人精品视频| 久久不见久久见免费视频1| 99九九99九九九视频精品| 日韩丝袜情趣美女图片| 亚洲美女少妇撒尿| 国产一区二区三区美女| 欧美日韩一区小说| 国产精品白丝在线| 免费观看在线综合| 色婷婷av一区二区三区gif | 国产精品久久一卡二卡| 日韩精品福利网| 99久久综合精品| 久久女同性恋中文字幕| 午夜av电影一区| 色呦呦国产精品| 欧美高清一级片在线观看| 视频一区二区中文字幕| www.亚洲精品| 久久精品水蜜桃av综合天堂| 日韩电影在线一区二区三区| 91一区二区三区在线播放| 久久亚洲综合av| 蜜桃av一区二区在线观看| 欧美日韩综合色| 一区二区在线观看免费| 盗摄精品av一区二区三区| 精品精品欲导航| 天天综合日日夜夜精品| 色哟哟一区二区在线观看| 国产日韩综合av| 国精产品一区一区三区mba桃花 | 91精品国产一区二区三区蜜臀| 亚洲免费av在线| 99热这里都是精品| 国产免费久久精品| 风流少妇一区二区| 久久日韩精品一区二区五区| 九九热在线视频观看这里只有精品| 欧美日韩国产大片| 亚洲一二三专区| 欧美性淫爽ww久久久久无| 亚洲女人小视频在线观看| 不卡在线视频中文字幕| 中文字幕成人在线观看| 国产999精品久久久久久 | 香蕉加勒比综合久久| 欧美在线视频日韩| 午夜精品久久久久久久| 欧美日韩在线综合| 肉肉av福利一精品导航| 91精品国产色综合久久不卡蜜臀 | 国产日韩欧美不卡在线| 国产成人自拍网| 国产精品午夜在线| 成人v精品蜜桃久久一区| 国产精品国产三级国产a| 91原创在线视频| 亚洲影视在线播放| 欧美一区二区三区系列电影| 麻豆久久一区二区| 亚洲精品在线免费观看视频| 国产麻豆成人精品| 国产精品久久久久久久久免费丝袜 | www国产亚洲精品久久麻豆| 国产在线一区观看| 中文字幕av一区 二区| 91小宝寻花一区二区三区| 亚洲一区二区3| 日韩精品一区二区三区蜜臀| 国产成人亚洲综合a∨婷婷图片| 日本一区二区成人| 色综合中文字幕国产| 一区二区三区不卡视频在线观看 | 久久国产尿小便嘘嘘尿| 久久精品视频一区| 91香蕉视频污| 婷婷综合在线观看| 国产拍欧美日韩视频二区| 色国产精品一区在线观看| 日本va欧美va瓶| 欧美国产日韩亚洲一区| 欧美日韩激情一区二区三区| 日韩精彩视频在线观看| 久久精品人人爽人人爽| 91网页版在线| 蜜桃视频在线一区| 国产精品高清亚洲| 91精品黄色片免费大全| 国产a区久久久| 午夜精品久久久久久久99水蜜桃| 久久亚洲综合色一区二区三区| 色婷婷久久一区二区三区麻豆| 蜜桃av一区二区三区电影| ...av二区三区久久精品| 日韩视频永久免费| 色美美综合视频| 国产乱子伦一区二区三区国色天香| 亚洲视频你懂的| 337p日本欧洲亚洲大胆精品| 日本韩国欧美在线| 国产精品一区2区| 91在线视频官网| 欧美一级免费大片| 国产精品不卡一区| 久久婷婷成人综合色| 91在线国产观看| 久久精品国产亚洲一区二区三区 | 亚洲国产欧美一区二区三区丁香婷| 日韩欧美一级精品久久| 91麻豆精品秘密| 国产成人综合自拍| 另类小说视频一区二区| 亚洲精品乱码久久久久久| 国产亚洲美州欧州综合国|