⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sis900.txt

📁 grub4dos-0.4.4-2008- 08-src.zip
💻 TXT
字号:
How I added the SIS900 card to EtherbootAuthor: Marty Connor (mdc@thinguin.org)Date:   25 Febrary 2001Description:This file is intended to help people who want to write an Etherbootdriver or port another driver to Etherboot.  It is a starting point.Perhaps someday I may write a more detailed description of writing anEtherboot driver. This text should help get people started, andstudying sis900.[ch] should help show the basic structure andtechniques involved in writing and Etherboot driver.***********************************************************************0. Back up all the files I need to modify:cd etherboot-4.7.20/srccp Makefile Makefile.origcp config.c config.c.origcp pci.h pci.h.origcp NIC NIC.origcp cards.h cards.h.orig1. Edit src/Makefile to add SIS900FLAGS to definesSIS900FLAGS=	       	-DINCLUDE_SIS9002. edit src/pci.h to add PCI signatures for card#define PCI_VENDOR_ID_SIS         	0x1039#define PCI_DEVICE_ID_SIS900     	0x0900   #define PCI_DEVICE_ID_SIS7016    	0x7016  3. Edit src/config.c to add the card to the card probe list#if defined(INCLUDE_NS8390)  || defined(INCLUDE_EEPRO100)  ||     defined(INCLUDE_LANCE)   || defined(INCLUDE_EPIC100)   ||     defined(INCLUDE_TULIP)   || defined(INCLUDE_OTULIP)    ||    defined(INCLUDE_3C90X)   || defined(INCLUDE_3C595)     ||    defined(INCLUDE_RTL8139) || defined(INCLUDE_VIA_RHINE) ||     defined(INCLUDE_SIS900)  || defined(INCLUDE_W89C840)... and ...#ifdef INCLUDE_SIS900       { PCI_VENDOR_ID_SIS,     	PCI_DEVICE_ID_SIS900,         "SIS900", 0, 0, 0, 0},       { PCI_VENDOR_ID_SIS,     	PCI_DEVICE_ID_SIS7016,	 "SIS7016", 0, 0, 0, 0},#endif... and ...#ifdef INCLUDE_SIS900	{ "SIS900", sis900_probe, pci_ioaddrs },	#endif4. Edit NIC to add sis900 and sis7016 to NIC list# SIS 900 and SIS 7016sis900		sis900		0x1039,0x0900sis7016		sis900		0x1039,0x70165. Edit cards.h to add sis900 probe routine declaration#ifdef	INCLUDE_SIS900extern struct nic	*sis900_probe(struct nic *, unsigned short *                        PCI_ARG(struct pci_device *));#endif***********************************************************************At this point, you can begin creating your driver source file.  Seethe "Writing and Etherboot Driver" section of the Etherbootdocumentation for some hints.  See the skel.c file for a startingpoint.  If there is a Linux driver for the card, you may be able touse that.  Copy and learn from existing Etherboot drivers (this is GPL/ Open Source software!).Join the etherboot-developers and etherboot-users mailing lists(information is on etherboot.sourceforge.net) for information andassistance. We invite more developers to help improve Etherboot.Visit the http://etherboot.sourceforge.net, http://thinguin.org, http://rom-o-matic.net, and http://ltsp.org sites for information andassistance.Enjoy.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -