mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 18:43:59 +08:00
[PATCH] Documentation/networking/dmfe.txt: Make documentation nicer
Patch indents dmfe.txt to look like other docs. It adds a tip about CNET cards using Davicom chipsets. Also it removes parts where it refers to how to build driver out-of-kernel which seems to be cruft from times where the driver was out of the kernel. Signed-off-by: Ismail Donmez <ismail@kde.org.tr> Signed-off-by: Domen Puncer <domen@coderock.org> Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:
parent
400de2c0c4
commit
1db1a8740a
@ -1,59 +1,65 @@
|
|||||||
dmfe.c: Version 1.28 01/18/2000
|
Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux.
|
||||||
|
|
||||||
A Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux.
|
This program is free software; you can redistribute it and/or
|
||||||
Copyright (C) 1997 Sten Wang
|
modify it under the terms of the GNU General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is distributed in the hope that it will be useful,
|
||||||
modify it under the terms of the GNU General Public License
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
as published by the Free Software Foundation; either version 2
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
of the License, or (at your option) any later version.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
|
|
||||||
A. Compiler command:
|
This driver provides kernel support for Davicom DM9102(A)/DM9132/DM9801 ethernet cards ( CNET
|
||||||
|
10/100 ethernet cards uses Davicom chipset too, so this driver supports CNET cards too ).If you
|
||||||
|
didn't compile this driver as a module, it will automatically load itself on boot and print a
|
||||||
|
line similar to :
|
||||||
|
|
||||||
A-1: For normal single or multiple processor kernel
|
dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17)
|
||||||
"gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall
|
|
||||||
-Wstrict-prototypes -O6 -c dmfe.c"
|
|
||||||
|
|
||||||
A-2: For single or multiple processor with kernel module version function
|
If you compiled this driver as a module, you have to load it on boot.You can load it with command :
|
||||||
"gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet
|
|
||||||
-Wall -Wstrict-prototypes -O6 -c dmfe.c"
|
insmod dmfe
|
||||||
|
|
||||||
|
This way it will autodetect the device mode.This is the suggested way to load the module.Or you can pass
|
||||||
|
a mode= setting to module while loading, like :
|
||||||
|
|
||||||
|
insmod dmfe mode=0 # Force 10M Half Duplex
|
||||||
|
insmod dmfe mode=1 # Force 100M Half Duplex
|
||||||
|
insmod dmfe mode=4 # Force 10M Full Duplex
|
||||||
|
insmod dmfe mode=5 # Force 100M Full Duplex
|
||||||
|
|
||||||
|
Next you should configure your network interface with a command similar to :
|
||||||
|
|
||||||
|
ifconfig eth0 172.22.3.18
|
||||||
|
^^^^^^^^^^^
|
||||||
|
Your IP Adress
|
||||||
|
|
||||||
|
Then you may have to modify the default routing table with command :
|
||||||
|
|
||||||
|
route add default eth0
|
||||||
|
|
||||||
|
|
||||||
B. The following steps teach you how to activate a DM9102 board:
|
Now your ethernet card should be up and running.
|
||||||
|
|
||||||
1. Used the upper compiler command to compile dmfe.c
|
|
||||||
|
|
||||||
2. Insert dmfe module into kernel
|
|
||||||
"insmod dmfe" ;;Auto Detection Mode (Suggest)
|
|
||||||
"insmod dmfe mode=0" ;;Force 10M Half Duplex
|
|
||||||
"insmod dmfe mode=1" ;;Force 100M Half Duplex
|
|
||||||
"insmod dmfe mode=4" ;;Force 10M Full Duplex
|
|
||||||
"insmod dmfe mode=5" ;;Force 100M Full Duplex
|
|
||||||
|
|
||||||
3. Config a dm9102 network interface
|
|
||||||
"ifconfig eth0 172.22.3.18"
|
|
||||||
^^^^^^^^^^^ Your IP address
|
|
||||||
|
|
||||||
4. Activate the IP routing table. For some distributions, it is not
|
|
||||||
necessary. You can type "route" to check.
|
|
||||||
|
|
||||||
"route add default eth0"
|
|
||||||
|
|
||||||
|
|
||||||
5. Well done. Your DM9102 adapter is now activated.
|
TODO:
|
||||||
|
|
||||||
|
Implement pci_driver::suspend() and pci_driver::resume() power management methods.
|
||||||
|
Check on 64 bit boxes.
|
||||||
|
Check and fix on big endian boxes.
|
||||||
|
Test and make sure PCI latency is now correct for all cases.
|
||||||
|
|
||||||
|
|
||||||
C. Object files description:
|
Authors:
|
||||||
1. dmfe_rh61.o: For Redhat 6.1
|
|
||||||
|
|
||||||
If you can make sure your kernel version, you can rename
|
Sten Wang <sten_wang@davicom.com.tw > : Original Author
|
||||||
to dmfe.o and directly use it without re-compiling.
|
Tobias Ringstrom <tori@unhappy.mine.nu> : Current Maintainer
|
||||||
|
|
||||||
|
Contributors:
|
||||||
|
|
||||||
Author: Sten Wang, 886-3-5798797-8517, E-mail: sten_wang@davicom.com.tw
|
Marcelo Tosatti <marcelo@conectiva.com.br>
|
||||||
|
Alan Cox <alan@redhat.com>
|
||||||
|
Jeff Garzik <jgarzik@pobox.com>
|
||||||
|
Vojtech Pavlik <vojtech@suse.cz>
|
||||||
|
Loading…
Reference in New Issue
Block a user