1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []
>
5 <book id=
"SiS900Guide">
9 <title>SiS
900/
7016 Fast Ethernet Device Driver
</title>
13 <firstname>Ollie
</firstname>
14 <surname>Lho
</surname>
18 <firstname>Lei Chun
</firstname>
19 <surname>Chang
</surname>
23 <edition>Document Revision:
0.3 for SiS900 driver v1.06
& v1.07
</edition>
24 <pubdate>November
16,
2000</pubdate>
28 <holder>Silicon Integrated System Corp.
</holder>
33 This program is free software; you can redistribute it and/or modify
34 it under the terms of the GNU General Public License as published by
35 the Free Software Foundation; either version
2 of the License, or
36 (at your option) any later version.
40 This program is distributed in the hope that it will be useful,
41 but WITHOUT ANY WARRANTY; without even the implied warranty of
42 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43 GNU General Public License for more details.
47 You should have received a copy of the GNU General Public License
48 along with this program; if not, write to the Free Software
49 Foundation, Inc.,
59 Temple Place, Suite
330, Boston, MA
02111-
1307 USA
55 This document gives some information on installation and usage of SiS
900/
7016
56 device driver under Linux.
65 <title>Introduction
</title>
68 This document describes the revision
1.06 and
1.07 of SiS
900/
7016 Fast Ethernet
69 device driver under Linux. The driver is developed by Silicon Integrated
70 System Corp. and distributed freely under the GNU General Public License (GPL).
71 The driver can be compiled as a loadable module and used under Linux kernel
72 version
2.2.x. (rev.
1.06)
73 With minimal changes, the driver can also be used under
2.3.x and
2.4.x kernel
74 (rev.
1.07), please see
75 <xref linkend=
"install"/>. If you are intended to
76 use the driver for earlier kernels, you are on your own.
80 The driver is tested with usual TCP/IP applications including
81 FTP, Telnet, Netscape etc. and is used constantly by the developers.
85 Please send all comments/fixes/questions to
86 <ulink url=
"mailto:lcchang@sis.com.tw">Lei-Chun Chang
</ulink>.
90 <chapter id=
"changes">
91 <title>Changes
</title>
94 Changes made in Revision
1.07
99 Separation of sis900.c and sis900.h in order to move most
100 constant definition to sis900.h (many of those constants were
107 Clean up PCI detection, the pci-scan from Donald Becker were not used,
108 just simple pci
_find
_*.
114 MII detection is modified to support multiple mii transceiver.
120 Bugs in read
_eeprom, mdio
_* were removed.
126 Lot of sis900 irrelevant comments were removed/changed and
127 more comments were added to reflect the real situation.
133 Clean up of physical/virtual address space mess in buffer
140 Better transmit/receive error handling.
146 The driver now uses zero-copy single buffer management
147 scheme to improve performance.
153 Names of variables were changed to be more consistent.
159 Clean up of auo-negotiation and timer code.
165 Automatic detection and change of PHY on the fly.
171 Bug in mac probing fixed.
177 Fix
630E equalier problem by modifying the equalizer workaround rule.
183 Support for ICS1893
10/
100 Interated PHYceiver.
189 Support for media select by ifconfig.
195 Added kernel-doc extratable documentation.
203 <chapter id=
"tested">
204 <title>Tested Environment
</title>
207 This driver is developed on the following hardware
213 Intel Celeron
500 with SiS
630 (rev
02) chipset
219 SiS
900 (rev
01) and SiS
7016/
7014 Fast Ethernet Card
225 and tested with these software environments
231 Red Hat Linux version
6.2
237 Linux kernel version
2.4.0
266 <title>Files in This Package
</title>
269 In the package you can find these files:
276 <term>sis900.c
</term>
279 Driver source file in C
285 <term>sis900.h
</term>
288 Header file for sis900.c
294 <term>sis900.sgml
</term>
297 DocBook SGML source of the document
303 <term>sis900.txt
</term>
306 Driver document in plain text
315 <chapter id=
"install">
316 <title>Installation
</title>
319 Silicon Integrated System Corp. is cooperating closely with core Linux Kernel
320 developers. The revisions of SiS
900 driver are distributed by the usuall channels
321 for kernel tar files and patches. Those kernel tar files for official kernel and
322 patches for kernel pre-release can be download at
323 <ulink url=
"http://ftp.kernel.org/pub/linux/kernel/">official kernel ftp site
</ulink>
325 The
1.06 revision can be found in kernel version later than
2.3.15 and pre-
2.2.14,
326 and
1.07 revision can be found in kernel version
2.4.0.
327 If you have no prior experience in networking under Linux, please read
328 <ulink url=
"http://www.tldp.org/">Ethernet HOWTO
</ulink> and
329 <ulink url=
"http://www.tldp.org/">Networking HOWTO
</ulink> available from
330 Linux Documentation Project (LDP).
334 The driver is bundled in release later than
2.2.11 and
2.3.15 so this
335 is the most easy case.
336 Be sure you have the appropriate packages for compiling kernel source.
337 Those packages are listed in Document/Changes in kernel source
338 distribution. If you have to install the driver other than those bundled
339 in kernel release, you should have your driver file
340 <filename>sis900.c
</filename> and
<filename>sis900.h
</filename>
341 copied into
<filename class=
"directory">/usr/src/linux/drivers/net/
</filename> first.
342 There are two alternative ways to install the driver
346 <title>Building the driver as loadable module
</title>
349 To build the driver as a loadable kernel module you have to reconfigure
350 the kernel to activate network support by
358 Choose
<quote>Loadable module support --->
</quote>,
359 then select
<quote>Enable loadable module support
</quote>.
363 Choose
<quote>Network Device Support --->
</quote>, select
364 <quote>Ethernet (
10 or
100Mbit)
</quote>.
365 Then select
<quote>EISA, VLB, PCI and on board controllers
</quote>,
366 and choose
<quote>SiS
900/
7016 PCI Fast Ethernet Adapter support
</quote>
371 After reconfiguring the kernel, you can make the driver module by
379 The driver should be compiled with no errors. After compiling the driver,
380 the driver can be installed to proper place by
388 Load the driver into kernel by
396 When loading the driver into memory, some information message can be view by
412 If the driver is loaded properly you will have messages similar to this:
416 sis900.c: v1.07
.06 11/
07/
2000
417 eth0: SiS
900 PCI Fast Ethernet at
0xd000, IRQ
10,
00:
00:e8:
83:
7f:a4.
418 eth0: SiS
900 Internal MII PHY transceiver found at address
1.
419 eth0: Using SiS
900 Internal MII PHY as default
423 showing the version of the driver and the results of probing routine.
427 Once the driver is loaded, network can be brought up by
431 /sbin/ifconfig eth0 IPADDR broadcast BROADCAST netmask NETMASK media TYPE
435 where IPADDR, BROADCAST, NETMASK are your IP address, broadcast address and
436 netmask respectively. TYPE is used to set medium type used by the device.
437 Typical values are
"10baseT"(twisted-pair
10Mbps Ethernet) or
"100baseT"
438 (twisted-pair
100Mbps Ethernet). For more information on how to configure
439 network interface, please refer to
440 <ulink url=
"http://www.tldp.org/">Networking HOWTO
</ulink>.
444 The link status is also shown by kernel messages. For example, after the
445 network interface is activated, you may have the message:
449 eth0: Media Link On
100mbps full-duplex
453 If you try to unplug the twist pair (TP) cable you will get
461 indicating that the link is failed.
466 <title>Building the driver into kernel
</title>
469 If you want to make the driver into kernel, choose
<quote>Y
</quote>
470 rather than
<quote>M
</quote> on
471 <quote>SiS
900/
7016 PCI Fast Ethernet Adapter support
</quote>
472 when configuring the kernel. Build the kernel image in the usual way
482 Next time the system reboot, you have the driver in memory.
488 <chapter id=
"problems">
489 <title>Known Problems and Bugs
</title>
492 There are some known problems and bugs. If you find any other bugs please
493 mail to
<ulink url=
"mailto:lcchang@sis.com.tw">lcchang@sis.com.tw
</ulink>
499 AM79C901 HomePNA PHY is not thoroughly tested, there may be some
500 bugs in the
<quote>on the fly
</quote> change of transceiver.
506 A bug is hidden somewhere in the receive buffer management code,
507 the bug causes NULL pointer reference in the kernel. This fault is
508 caught before bad things happen and reported with the message:
511 eth0: NULL pointer encountered in Rx ring, skipping
514 which can be viewed with
<literal remap=
"tt">dmesg
</literal> or
515 <literal remap=
"tt">cat /var/log/message
</literal>.
521 The media type change from
10Mbps to
100Mbps twisted-pair ethernet
522 by ifconfig causes the media link down.
530 <chapter id=
"RHistory">
531 <title>Revision History
</title>
538 November
13,
2000, Revision
1.07, seventh release,
630E problem fixed
539 and further clean up.
545 November
4,
1999, Revision
1.06, Second release, lots of clean up
552 August
8,
1999, Revision
1.05, Initial Public Release
560 <chapter id=
"acknowledgements">
561 <title>Acknowledgements
</title>
564 This driver was originally derived form
565 <ulink url=
"mailto:becker@cesdis1.gsfc.nasa.gov">Donald Becker
</ulink>'s
566 <ulink url=
"ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/kern-2.3/pci-skeleton.c"
567 >pci-skeleton
</ulink> and
568 <ulink url=
"ftp://cesdis.gsfc.nasa.gov/pub/linux/drivers/kern-2.3/rtl8139.c"
569 >rtl8139
</ulink> drivers. Donald also provided various suggestion
570 regarded with improvements made in revision
1.06.
574 The
1.05 revision was created by
575 <ulink url=
"mailto:cmhuang@sis.com.tw">Jim Huang
</ulink>, AMD
79c901
576 support was added by
<ulink url=
"mailto:lcs@sis.com.tw">Chin-Shan Li
</ulink>.
580 <chapter id=
"functions">
581 <title>List of Functions
</title>
582 !Idrivers/net/sis900.c