OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [Documentation/] [DocBook/] [sis900.tmpl] - Blame information for rev 1275

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
2
 
3
4
 
5
6
 
7
SiS 900/7016 Fast Ethernet Device Driver
8
 
9
10
11
Ollie
12
Lho
13
14
 
15
16
Lei Chun
17
Chang
18
19
20
 
21
Document Revision: 0.3 for SiS900 driver v1.06 & v1.07
22
November 16, 2000
23
 
24
25
 1999
26
 Silicon Integrated System Corp.
27
28
 
29
30
 
31
        This program is free software; you can redistribute it and/or modify
32
        it under the terms of the GNU General Public License as published by
33
        the Free Software Foundation; either version 2 of the License, or
34
        (at your option) any later version.
35
 
36
 
37
 
38
        This program is distributed in the hope that it will be useful,
39
        but WITHOUT ANY WARRANTY; without even the implied warranty of
40
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41
        GNU General Public License for more details.
42
 
43
 
44
 
45
        You should have received a copy of the GNU General Public License
46
        along with this program; if not, write to the Free Software
47
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
48
 
49
50
 
51
52
53
This document gives some information on installation and usage of SiS 900/7016
54
device driver under Linux.
55
56
57
 
58
59
 
60
61
 
62
63
 Introduction
64
 
65
66
This document describes the revision 1.06 and 1.07 of SiS 900/7016 Fast Ethernet
67
device driver under Linux. The driver is developed by Silicon Integrated
68
System Corp. and distributed freely under the GNU General Public License (GPL).
69
The driver can be compiled as a loadable module and used under Linux kernel
70
version 2.2.x. (rev. 1.06)
71
With minimal changes, the driver can also be used under 2.3.x and 2.4.x kernel
72
(rev. 1.07), please see
73
. If you are intended to
74
use the driver for earlier kernels, you are on your own.
75
76
 
77
78
The driver is tested with usual TCP/IP applications including
79
FTP, Telnet, Netscape etc. and is used constantly by the developers.
80
81
 
82
83
Please send all comments/fixes/questions to
84
Lei-Chun Chang.
85
86
87
 
88
89
 Changes
90
 
91
92
Changes made in Revision 1.07
93
 
94
95
96
97
Separation of sis900.c and sis900.h in order to move most
98
constant definition to sis900.h (many of those constants were
99
corrected)
100
101
102
 
103
104
105
Clean up PCI detection, the pci-scan from Donald Becker were not used,
106
just simple pci_find_*.
107
108
109
 
110
111
112
MII detection is modified to support multiple mii transceiver.
113
114
115
 
116
117
118
Bugs in read_eeprom, mdio_* were removed.
119
120
121
 
122
123
124
Lot of sis900 irrelevant comments were removed/changed and
125
more comments were added to reflect the real situation.
126
127
128
 
129
130
131
Clean up of physical/virtual address space mess in buffer
132
descriptors.
133
134
135
 
136
137
138
Better transmit/receive error handling.
139
140
141
 
142
143
144
The driver now uses zero-copy single buffer management
145
scheme to improve performance.
146
147
148
 
149
150
151
Names of variables were changed to be more consistent.
152
153
154
 
155
156
157
Clean up of auo-negotiation and timer code.
158
159
160
 
161
162
163
Automatic detection and change of PHY on the fly.
164
165
166
 
167
168
169
Bug in mac probing fixed.
170
171
172
 
173
174
175
Fix 630E equalier problem by modifying the equalizer workaround rule.
176
177
178
 
179
180
181
Support for ICS1893 10/100 Interated PHYceiver.
182
183
184
 
185
186
187
Support for media select by ifconfig.
188
189
190
 
191
192
193
Added kernel-doc extratable documentation.
194
195
196
 
197
198
199
200
 
201
202
 Tested Environment
203
 
204
205
This driver is developed on the following hardware
206
 
207
208
209
 
210
211
Intel Celeron 500 with SiS 630 (rev 02) chipset
212
213
214
215
 
216
217
SiS 900 (rev 01) and SiS 7016/7014 Fast Ethernet Card
218
219
220
 
221
222
 
223
and tested with these software environments
224
 
225
226
227
 
228
229
Red Hat Linux version 6.2
230
231
232
233
 
234
235
Linux kernel version 2.4.0
236
237
238
239
 
240
241
Netscape version 4.6
242
243
244
245
 
246
247
NcFTP 3.0.0 beta 18
248
249
250
251
 
252
253
Samba version 2.0.3
254
255
256
 
257
258
 
259
260
 
261
262
 
263
264
Files in This Package
265
 
266
267
In the package you can find these files:
268
269
 
270
271
272
 
273
274
sis900.c
275
276
277
Driver source file in C
278
279
280
281
 
282
283
sis900.h
284
285
286
Header file for sis900.c
287
288
289
290
 
291
292
sis900.sgml
293
294
295
DocBook SGML source of the document
296
297
298
299
 
300
301
sis900.txt
302
303
304
Driver document in plain text
305
306
307
308
 
309
310
311
312
 
313
314
 Installation
315
 
316
317
Silicon Integrated System Corp. is cooperating closely with core Linux Kernel
318
developers. The revisions of SiS 900 driver are distributed by the usuall channels
319
for kernel tar files and patches. Those kernel tar files for official kernel and
320
patches for kernel pre-release can be download at
321
official kernel ftp site
322
and its mirrors.
323
The 1.06 revision can be found in kernel version later than 2.3.15 and pre-2.2.14,
324
and 1.07 revision can be found in kernel version 2.4.0.
325
If you have no prior experience in networking under Linux, please read
326
Ethernet HOWTO and
327
Networking HOWTO available from
328
Linux Documentation Project (LDP).
329
330
 
331
332
The driver is bundled in release later than 2.2.11 and 2.3.15 so this
333
is the most easy case.
334
Be sure you have the appropriate packages for compiling kernel source.
335
Those packages are listed in Document/Changes in kernel source
336
distribution. If you have to install the driver other than those bundled
337
in kernel release, you should have your driver file
338
sis900.c and sis900.h
339
copied into /usr/src/linux/drivers/net/ first.
340
There are two alternative ways to install the driver
341
342
 
343
344
Building the driver as loadable module
345
 
346
347
To build the driver as a loadable kernel module you have to reconfigure
348
the kernel to activate network support by
349
350
 
351
352
make menuconfig
353
354
 
355
356
Choose Loadable module support  --->,
357
then select Enable loadable module support.
358
359
 
360
361
Choose Network Device Support  --->, select
362
Ethernet (10 or 100Mbit).
363
Then select EISA, VLB, PCI and on board controllers,
364
and choose SiS 900/7016 PCI Fast Ethernet Adapter support
365
to M.
366
367
 
368
369
After reconfiguring the kernel, you can make the driver module by
370
371
 
372
373
make modules
374
375
 
376
377
The driver should be compiled with no errors. After compiling the driver,
378
the driver can be installed to proper place by
379
380
 
381
382
make modules_install
383
384
 
385
386
Load the driver into kernel by
387
388
 
389
390
insmod sis900
391
392
 
393
394
When loading the driver into memory, some information message can be view by
395
396
 
397
398
399
dmesg
400
401
 
402
or
403
 
404
405
cat /var/log/message
406
407
408
 
409
410
If the driver is loaded properly you will have messages similar to this:
411
412
 
413
414
sis900.c: v1.07.06  11/07/2000
415
eth0: SiS 900 PCI Fast Ethernet at 0xd000, IRQ 10, 00:00:e8:83:7f:a4.
416
eth0: SiS 900 Internal MII PHY transceiver found at address 1.
417
eth0: Using SiS 900 Internal MII PHY as default
418
419
 
420
421
showing the version of the driver and the results of probing routine.
422
423
 
424
425
Once the driver is loaded, network can be brought up by
426
427
 
428
429
/sbin/ifconfig eth0 IPADDR broadcast BROADCAST netmask NETMASK media TYPE
430
431
 
432
433
where IPADDR, BROADCAST, NETMASK are your IP address, broadcast address and
434
netmask respectively. TYPE is used to set medium type used by the device.
435
Typical values are "10baseT"(twisted-pair 10Mbps Ethernet) or "100baseT"
436
(twisted-pair 100Mbps Ethernet). For more information on how to configure
437
network interface, please refer to
438
Networking HOWTO.
439
440
 
441
442
The link status is also shown by kernel messages. For example, after the
443
network interface is activated, you may have the message:
444
445
 
446
447
eth0: Media Link On 100mbps full-duplex
448
449
 
450
451
If you try to unplug the twist pair (TP) cable you will get
452
453
 
454
455
eth0: Media Link Off
456
457
 
458
459
indicating that the link is failed.
460
461
462
 
463
464
Building the driver into kernel
465
 
466
467
If you want to make the driver into kernel, choose Y
468
rather than M on
469
SiS 900/7016 PCI Fast Ethernet Adapter support
470
when configuring the kernel. Build the kernel image in the usual way
471
472
 
473
474
make dep
475
 
476
make clean
477
 
478
make bzlilo
479
480
 
481
482
Next time the system reboot, you have the driver in memory.
483
484
 
485
486
487
 
488
489
 Known Problems and Bugs
490
 
491
492
There are some known problems and bugs. If you find any other bugs please
493
mail to lcchang@sis.com.tw
494
 
495
496
 
497
498
499
AM79C901 HomePNA PHY is not thoroughly tested, there may be some
500
bugs in the on the fly change of transceiver.
501
502
503
 
504
505
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:
509
 
510
511
eth0: NULL pointer encountered in Rx ring, skipping
512
513
 
514
which can be viewed with dmesg or
515
cat /var/log/message.
516
517
518
 
519
520
521
The media type change from 10Mbps to 100Mbps twisted-pair ethernet
522
by ifconfig causes the media link down.
523
524
525
 
526
527
528
529
 
530
531
 Revision History
532
 
533
534
535
 
536
537
538
November 13, 2000, Revision 1.07, seventh release, 630E problem fixed
539
and furthur clean up.
540
541
542
 
543
544
545
November 4, 1999, Revision 1.06, Second release, lots of clean up
546
and optimization.
547
548
549
 
550
551
552
August 8, 1999, Revision 1.05, Initial Public Release
553
554
555
 
556
557
558
559
 
560
561
 Acknowledgements
562
 
563
564
This driver was originally derived form
565
Donald Becker's
566
567
>pci-skeleton and
568
569
>rtl8139 drivers. Donald also provided various suggestion
570
regarded with improvements made in revision 1.06.
571
572
 
573
574
The 1.05 revision was created by
575
Jim Huang, AMD 79c901
576
support was added by Chin-Shan Li.
577
578
579
 
580
581
List of Functions
582
!Idrivers/net/sis900.c
583
584
 
585

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.