]> git.pld-linux.org Git - packages/diag-ether.git/blame - diag-ether-ne2k-pci.patch
- gcc3 fix
[packages/diag-ether.git] / diag-ether-ne2k-pci.patch
CommitLineData
a05bc8cf 1--- diag-ether/ne2k-pci-diag.c.bak 2004-02-22 21:11:23.000000000 +0000
2+++ diag-ether/ne2k-pci-diag.c 2004-02-22 21:14:39.000000000 +0000
3@@ -767,35 +767,34 @@
4 p[23] & 8 ? "no link beat required" : "autoselect by link beat",
5 winbond_rom[p[23]>>5]);
6 if (ee_data[9] == 0x8c4a)
7- printf("
8-This board has bogus information written into the configuration EEPROM.
9-The configuration table is for a Realtek chip, but this board is using
10-a Winbond 89c940 chip. This misprogramming usually results in an invalid
11-station address, and prevents the board from being detected by standard
12-drivers.
13-
14-To reprogram the configuration EEPROM select a new station address such as
15-40:00:00:12:34:56 and run this diagnostic with the options
16- --write-EEPROM --emergency-rewrite --new-hwaddr 40:00:00:12:34:56
17-");
18+ printf(
19+"This board has bogus information written into the configuration EEPROM.\n"
20+"The configuration table is for a Realtek chip, but this board is using\n"
21+"a Winbond 89c940 chip. This misprogramming usually results in an invalid\n"
22+"station address, and prevents the board from being detected by standard\n"
23+"drivers.\n"
24+"\n"
25+"To reprogram the configuration EEPROM select a new station address such as\n"
26+"40:00:00:12:34:56 and run this diagnostic with the options\n"
27+" --write-EEPROM --emergency-rewrite --new-hwaddr 40:00:00:12:34:56\n"
28+);
29
30 return;
31 }
32
33-static char unknown_eeprom_message[] = "
34- No information is known about how to read or write the configuration
35- EEPROM of this NIC board. It is likely that this NIC is using a common
36- chip with a unique PCI ID. It may be possible to read the EEPROM by
37- explicitly specifying the chip type and I/O address:
38- ne2k-pci-diag -t 1 -p <ioaddr> # For Realtek rtl8029 chip
39- ne2k-pci-diag -t 2 -p <ioaddr> # For Winbond 89C940 chip
40- ne2k-pci-diag -t 3 -p <ioaddr> # For Holtek HT80229 chip
41- If one of these is required, please send a report to becker@scyld.com.
42-";
43-static char no_rewrite_msg[] = "
44-*** Emergency EEPROM rewrite is not yet available for this chip type.
45- ** See the Scyld diagnostic web page for updates and more information.
46- ** http://www.scyld.com/diag/index.html";
47+static char unknown_eeprom_message[] =
48+" No information is known about how to read or write the configuration\n"
49+" EEPROM of this NIC board. It is likely that this NIC is using a common\n"
50+" chip with a unique PCI ID. It may be possible to read the EEPROM by\n"
51+" explicitly specifying the chip type and I/O address:\n"
52+" ne2k-pci-diag -t 1 -p <ioaddr> # For Realtek rtl8029 chip\n"
53+" ne2k-pci-diag -t 2 -p <ioaddr> # For Winbond 89C940 chip\n"
54+" ne2k-pci-diag -t 3 -p <ioaddr> # For Holtek HT80229 chip\n"
55+" If one of these is required, please send a report to becker@scyld.com.\n" ;
56+static char no_rewrite_msg[] =
57+"*** Emergency EEPROM rewrite is not yet available for this chip type.\n"
58+" ** See the Scyld diagnostic web page for updates and more information.\n"
59+" ** http://www.scyld.com/diag/index.html";
60
61 /* The examples below have 00:11:22:33:44:55 as the station address. */
62 static unsigned short winbond_default_eeprom[] = {
This page took 0.084556 seconds and 4 git commands to generate.