[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>

authored by Ismail Donmez and committed by Jeff Garzik 1db1a874 400de2c0

+45 -39
+45 -39
Documentation/networking/dmfe.txt
··· 1 - dmfe.c: Version 1.28 01/18/2000 2 3 - A Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux. 4 - Copyright (C) 1997 Sten Wang 5 6 - This program is free software; you can redistribute it and/or 7 - modify it under the terms of the GNU General Public License 8 - as published by the Free Software Foundation; either version 2 9 - of the License, or (at your option) any later version. 10 - 11 - This program is distributed in the hope that it will be useful, 12 - but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - GNU General Public License for more details. 15 16 17 - A. Compiler command: 18 19 - A-1: For normal single or multiple processor kernel 20 - "gcc -DMODULE -D__KERNEL__ -I/usr/src/linux/net/inet -Wall 21 - -Wstrict-prototypes -O6 -c dmfe.c" 22 23 - A-2: For single or multiple processor with kernel module version function 24 - "gcc -DMODULE -DMODVERSIONS -D__KERNEL__ -I/usr/src/linux/net/inet 25 - -Wall -Wstrict-prototypes -O6 -c dmfe.c" 26 27 28 - B. The following steps teach you how to activate a DM9102 board: 29 30 - 1. Used the upper compiler command to compile dmfe.c 31 32 - 2. Insert dmfe module into kernel 33 - "insmod dmfe" ;;Auto Detection Mode (Suggest) 34 - "insmod dmfe mode=0" ;;Force 10M Half Duplex 35 - "insmod dmfe mode=1" ;;Force 100M Half Duplex 36 - "insmod dmfe mode=4" ;;Force 10M Full Duplex 37 - "insmod dmfe mode=5" ;;Force 100M Full Duplex 38 39 - 3. Config a dm9102 network interface 40 - "ifconfig eth0 172.22.3.18" 41 - ^^^^^^^^^^^ Your IP address 42 43 - 4. Activate the IP routing table. For some distributions, it is not 44 - necessary. You can type "route" to check. 45 46 - "route add default eth0" 47 48 49 - 5. Well done. Your DM9102 adapter is now activated. 50 51 52 - C. Object files description: 53 - 1. dmfe_rh61.o: For Redhat 6.1 54 55 - If you can make sure your kernel version, you can rename 56 - to dmfe.o and directly use it without re-compiling. 57 58 59 - Author: Sten Wang, 886-3-5798797-8517, E-mail: sten_wang@davicom.com.tw
··· 1 + Davicom DM9102(A)/DM9132/DM9801 fast ethernet driver for Linux. 2 3 + This program is free software; you can redistribute it and/or 4 + modify it under the terms of the GNU General Public License 5 + as published by the Free Software Foundation; either version 2 6 + of the License, or (at your option) any later version. 7 8 + This program is distributed in the hope that it will be useful, 9 + but WITHOUT ANY WARRANTY; without even the implied warranty of 10 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 + GNU General Public License for more details. 12 13 14 + This driver provides kernel support for Davicom DM9102(A)/DM9132/DM9801 ethernet cards ( CNET 15 + 10/100 ethernet cards uses Davicom chipset too, so this driver supports CNET cards too ).If you 16 + didn't compile this driver as a module, it will automatically load itself on boot and print a 17 + line similar to : 18 19 + dmfe: Davicom DM9xxx net driver, version 1.36.4 (2002-01-17) 20 21 + If you compiled this driver as a module, you have to load it on boot.You can load it with command : 22 23 + insmod dmfe 24 25 + This way it will autodetect the device mode.This is the suggested way to load the module.Or you can pass 26 + a mode= setting to module while loading, like : 27 28 + insmod dmfe mode=0 # Force 10M Half Duplex 29 + insmod dmfe mode=1 # Force 100M Half Duplex 30 + insmod dmfe mode=4 # Force 10M Full Duplex 31 + insmod dmfe mode=5 # Force 100M Full Duplex 32 33 + Next you should configure your network interface with a command similar to : 34 35 + ifconfig eth0 172.22.3.18 36 + ^^^^^^^^^^^ 37 + Your IP Adress 38 39 + Then you may have to modify the default routing table with command : 40 41 + route add default eth0 42 43 44 + Now your ethernet card should be up and running. 45 46 47 + TODO: 48 49 + Implement pci_driver::suspend() and pci_driver::resume() power management methods. 50 + Check on 64 bit boxes. 51 + Check and fix on big endian boxes. 52 + Test and make sure PCI latency is now correct for all cases. 53 54 55 + Authors: 56 + 57 + Sten Wang <sten_wang@davicom.com.tw > : Original Author 58 + Tobias Ringstrom <tori@unhappy.mine.nu> : Current Maintainer 59 + 60 + Contributors: 61 + 62 + Marcelo Tosatti <marcelo@conectiva.com.br> 63 + Alan Cox <alan@redhat.com> 64 + Jeff Garzik <jgarzik@pobox.com> 65 + Vojtech Pavlik <vojtech@suse.cz>