blob: c0e8398674eff5c5d026ed774a8fb01b23ad6c2b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001 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