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

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

?? cs89x0.c

?? grub4dos-0.4.4-2008- 08-src.zip
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* 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);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人综合在线| 99综合影院在线| 国产精品久线观看视频| 精品视频资源站| 成人性生交大片免费看在线播放| 亚洲成年人网站在线观看| 国产精品网友自拍| 欧美成人午夜电影| 一本大道久久精品懂色aⅴ| 国产麻豆成人精品| 日本一道高清亚洲日美韩| 1000部国产精品成人观看| 久久亚洲免费视频| 欧美精品aⅴ在线视频| 91国产精品成人| www.亚洲人| 国产一区二区导航在线播放| 日本不卡123| 亚洲一二三区在线观看| 亚洲欧美激情插 | 国产一区二区三区四| 香蕉久久一区二区不卡无毒影院| 国产精品电影一区二区三区| 久久久五月婷婷| 日韩欧美一区二区久久婷婷| 欧美日韩不卡一区二区| 欧美亚洲国产怡红院影院| 99久久精品国产麻豆演员表| 国产ts人妖一区二区| 九色综合狠狠综合久久| 麻豆91精品视频| 麻豆免费精品视频| 美女尤物国产一区| 久久99最新地址| 国内久久婷婷综合| 国产精品一级在线| 国产精品系列在线观看| 国产成人免费在线观看不卡| 国产大陆a不卡| 成人午夜激情在线| 成人av中文字幕| 91久久精品午夜一区二区| www.综合网.com| 97久久精品人人爽人人爽蜜臀| 99精品黄色片免费大全| av网站一区二区三区| 不卡的看片网站| 色欧美88888久久久久久影院| 99精品久久久久久| 欧美午夜精品久久久久久超碰| 在线视频国内一区二区| 欧美日韩精品欧美日韩精品一综合| 99国产精品久久久久| 欧美日韩国产大片| 成人午夜激情在线| 粉嫩高潮美女一区二区三区| 懂色av一区二区夜夜嗨| 色网站国产精品| 欧美日韩国产综合视频在线观看 | 精品国产一二三区| 久久精品夜夜夜夜久久| 国产精品毛片久久久久久| 一区二区三区资源| 蜜桃视频免费观看一区| 国产老女人精品毛片久久| 99国产一区二区三精品乱码| 欧美色图12p| 精品国产伦一区二区三区观看体验| 久久久99久久| 亚洲一区二区av电影| 美女视频一区二区| av成人免费在线观看| 欧美日韩三级一区| 2023国产精品自拍| 亚洲私人黄色宅男| 日本伊人色综合网| 成人性生交大片免费看在线播放| 欧美怡红院视频| 久久久久99精品国产片| 亚洲精品免费一二三区| 日本不卡在线视频| 成人少妇影院yyyy| 9191久久久久久久久久久| 久久久久久久久久久久久夜| 亚洲精品成人悠悠色影视| 美腿丝袜一区二区三区| 91麻豆视频网站| 日韩精品一区二区在线| 一区二区三区国产豹纹内裤在线| 久久成人免费网站| 色婷婷综合激情| 久久久亚洲国产美女国产盗摄| 亚洲影视在线播放| 国产不卡免费视频| 欧美一区二区三区的| 亚洲人成在线播放网站岛国| 国产.欧美.日韩| 91精品婷婷国产综合久久竹菊| 国产精品网曝门| 极品少妇一区二区三区精品视频| 91电影在线观看| 国产精品免费视频网站| 国内精品久久久久影院薰衣草| 欧洲精品一区二区三区在线观看| 欧美国产激情一区二区三区蜜月| 秋霞电影网一区二区| 91成人在线精品| 亚洲欧洲精品成人久久奇米网| 蜜臀va亚洲va欧美va天堂 | 色综合视频一区二区三区高清| 日韩三级精品电影久久久| 亚洲黄色av一区| 高清国产一区二区| 欧美精品一区二区三区高清aⅴ| 亚洲午夜电影网| 色综合天天综合狠狠| 国产欧美一区二区三区在线老狼| 奇米精品一区二区三区四区 | 欧美日韩免费在线视频| 中文字幕日韩欧美一区二区三区| 韩国理伦片一区二区三区在线播放 | 免费精品视频在线| 欧美系列日韩一区| 一区二区三区加勒比av| 91在线视频在线| 最新日韩av在线| www.亚洲国产| 日韩一区中文字幕| 成人激情综合网站| 国产精品国产自产拍在线| 国产91露脸合集magnet| 国产免费久久精品| 国产.精品.日韩.另类.中文.在线.播放| 欧美精品一区男女天堂| 狠狠v欧美v日韩v亚洲ⅴ| 日韩欧美亚洲国产另类| 九一久久久久久| 久久免费精品国产久精品久久久久| 国内精品在线播放| 国产亚洲制服色| 成人精品一区二区三区四区 | 国产真实乱子伦精品视频| 精品动漫一区二区三区在线观看| 捆绑调教一区二区三区| 久久综合久色欧美综合狠狠| 国产又粗又猛又爽又黄91精品| 26uuu久久天堂性欧美| 国产成人午夜电影网| 国产精品视频一二三区| 91浏览器在线视频| 中文字幕日本乱码精品影院| 一本色道a无线码一区v| 亚洲高清视频在线| 精品乱人伦一区二区三区| 国产99久久久精品| 亚洲欧美另类久久久精品| 欧美日韩黄色影视| 蜜桃视频在线观看一区| 久久久久久免费网| fc2成人免费人成在线观看播放| 亚洲老妇xxxxxx| 欧美一区二区三区思思人| 国产综合色产在线精品| 日韩一区欧美小说| 6080日韩午夜伦伦午夜伦| 国产综合色视频| 亚洲欧洲综合另类在线| 91精品午夜视频| 成人激情图片网| 香蕉成人伊视频在线观看| 欧美精品一区二区在线观看| 本田岬高潮一区二区三区| 亚洲高清在线视频| 久久精品免视看| 欧美色区777第一页| 国产一区二区91| 一区二区三区在线观看视频| 精品国一区二区三区| 91日韩一区二区三区| 久久国产精品区| 亚洲最新在线观看| 久久久激情视频| 欧美日韩国产a| 99精品视频在线观看免费| 婷婷亚洲久悠悠色悠在线播放| 国产日韩精品久久久| 欧美日韩一区二区三区不卡| 国产精品一区专区| 婷婷成人综合网| 亚洲视频在线一区二区| 日韩一区二区在线免费观看| 盗摄精品av一区二区三区| 日韩高清一区在线| 亚洲人成网站在线| 国产日韩在线不卡| 日韩一区二区三区三四区视频在线观看 | 午夜精品免费在线| 国产精品福利在线播放| 欧美va天堂va视频va在线| 欧美主播一区二区三区美女|