]> git.pld-linux.org Git - packages/diag-ether.git/blame - diag-ether-diag-example.patch
- gcc3 fix
[packages/diag-ether.git] / diag-ether-diag-example.patch
CommitLineData
a05bc8cf 1--- diag-ether/diag-example.c.org 2004-02-22 22:21:09.000000000 +0000
2+++ diag-ether/diag-example.c 2004-02-22 22:22:20.000000000 +0000
3@@ -37,42 +37,42 @@
4 " For details and other options see http://www.scyld.com/diag/index.html\n";
5
6 static const char long_usage_msg[] =
7-"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]
8-
9- Show the internal state of a network adapter.
10-
11- The common usage is
12- diag -aem
13-
14- Frequently used options are
15- -a --show_all_registers Print all registers.
16- -e --show-eeprom Dump EEPROM contents, \"-ee\" shows the details.
17- -m --show_mii Print the MII transceiver state
18- Using -mm monitors the link.
19- -f --force Perform operation, even on a running NIC.
20-
21- To operate on a single NIC, or one that hasn't been automatically found:
22- -# --card_num INDEX Operate on the specified card index.
23- -p --port-base IOADDR Assume an adapter at the specified I/O address.
24- -t --chip-type TYPE Specify adapter type (with '-p'), use '-1' to list.
25-
26- To change the persistent EEPROM settings
27- -F, --new-interface N Set the default transceiver type.
28- -G --parameters PARMS Set adapter-specific parameters.
29- -H --new-hwaddr 01:23:45:67:89:ab
30- Set a new hardware station address. Typically disabled for safety.
31- -w --write-EEPROM Actually write the new settings into the EEPROM.
32- To read and write the boot BIOS extension Flash ROM
33- -B Show the first few bytes of the ROM
34- -L FILE Load the Flash from FILE.
35- -S FILE Store the Flash image to FILE.
36-
37- -D --debug
38- -v --verbose Report each action taken.
39- -V --version Emit version information.
40-
41- -A --advertise <speed|setting> (See the mii-diag manual page.)
42-";
43+"Usage: %s [-aDfrRvVw] [-AF <speed+duplex>] [-#<BoardNum>]\n"
44+"\n"
45+" Show the internal state of a network adapter.\n"
46+"\n"
47+" The common usage is\n"
48+" diag -aem\n"
49+"\n"
50+" Frequently used options are\n"
51+" -a --show_all_registers Print all registers.\n"
52+" -e --show-eeprom Dump EEPROM contents, \"-ee\" shows the details.\n"
53+" -m --show_mii Print the MII transceiver state\n"
54+" Using -mm monitors the link.\n"
55+" -f --force Perform operation, even on a running NIC.\n"
56+"\n"
57+" To operate on a single NIC, or one that hasn't been automatically found:\n"
58+" -# --card_num INDEX Operate on the specified card index.\n"
59+" -p --port-base IOADDR Assume an adapter at the specified I/O address.\n"
60+" -t --chip-type TYPE Specify adapter type (with '-p'), use '-1' to list.\n"
61+"\n"
62+" To change the persistent EEPROM settings\n"
63+" -F, --new-interface N Set the default transceiver type.\n"
64+" -G --parameters PARMS Set adapter-specific parameters.\n"
65+" -H --new-hwaddr 01:23:45:67:89:ab\n"
66+" Set a new hardware station address. Typically disabled for safety.\n"
67+" -w --write-EEPROM Actually write the new settings into the EEPROM.\n"
68+" To read and write the boot BIOS extension Flash ROM\n"
69+" -B Show the first few bytes of the ROM\n"
70+" -L FILE Load the Flash from FILE.\n"
71+" -S FILE Store the Flash image to FILE.\n"
72+"\n"
73+" -D --debug\n"
74+" -v --verbose Report each action taken.\n"
75+" -V --version Emit version information.\n"
76+"\n"
77+" -A --advertise <speed|setting> (See the mii-diag manual page.)\n"
78+"\n";
79
80 #if ! defined(__OPTIMIZE__)
81 #warning You must compile this program with the correct options!
82@@ -91,7 +91,6 @@
83
84 /* The following are required only with unaligned field accesses. */
85 #include <asm/types.h>
86-#include <asm/unaligned.h>
87
88 #if defined(__linux__) && __GNU_LIBRARY__ == 1
89 #include <asm/io.h> /* Newer libraries use <sys/io.h> instead. */
This page took 0.065582 seconds and 4 git commands to generate.