Commit 784f0afe authored by Antonio Borneo's avatar Antonio Borneo Committed by Bernd Eckenfels

mii-tool: update manpage and usage

Document command line "-p addr" / "--phy=addr".
Modify comments describing command line parameters.
Signed-off-by: default avatarAntonio Borneo <borneo.antonio@...>
parent b30cd20e
...@@ -16,6 +16,7 @@ mii\-tool \- view, manipulate media-independent interface status ...@@ -16,6 +16,7 @@ mii\-tool \- view, manipulate media-independent interface status
[\fB\-l\fR, \fB\-\-log\fR] [\fB\-l\fR, \fB\-\-log\fR]
[\fB\-A\fR, \fB\-\-advertise=\fImedia,...\fR] [\fB\-A\fR, \fB\-\-advertise=\fImedia,...\fR]
[\fB\-F\fR, \fB\-\-force=\fImedia\fR] [\fB\-F\fR, \fB\-\-force=\fImedia\fR]
[\fB\-p\fR, \fB\-\-phy=\fIaddr\fR]
.RI "interface\ ..." .RI "interface\ ..."
.SH DESCRIPTION .SH DESCRIPTION
...@@ -69,6 +70,9 @@ Enable and restart autonegotiation, and advertise only the specified ...@@ -69,6 +70,9 @@ Enable and restart autonegotiation, and advertise only the specified
media technologies. Multiple technologies should be separated by media technologies. Multiple technologies should be separated by
commas. Valid media are \fB100baseT4\fR, \fB100baseTx-FD\fR, commas. Valid media are \fB100baseT4\fR, \fB100baseTx-FD\fR,
\fB100baseTx-HD\fR, \fB10baseT-FD\fR, and \fB10baseT-HD\fR. \fB100baseTx-HD\fR, \fB10baseT-FD\fR, and \fB10baseT-HD\fR.
.TP
\fB\-p\fI addr\fR, \fB\-\-phy=\fIaddr\fR
Override the MII address provided by kernel with value \fBaddr\fR.
.SH DIAGNOSTICS .SH DIAGNOSTICS
.TP .TP
......
...@@ -96,10 +96,10 @@ static const struct { ...@@ -96,10 +96,10 @@ static const struct {
struct option longopts[] = { struct option longopts[] = {
/* { name has_arg *flag val } */ /* { name has_arg *flag val } */
{"advertise", 1, 0, 'A'}, /* Change capabilities advertised. */ {"advertise", 1, 0, 'A'}, /* Advertise only specified media. */
{"force", 1, 0, 'F'}, /* Change capabilities advertised. */ {"force", 1, 0, 'F'}, /* Force specified media technology. */
{"phy", 1, 0, 'p'}, /* Set PHY (MII address) to report. */ {"phy", 1, 0, 'p'}, /* Set PHY (MII address) to report. */
{"log", 0, 0, 'l'}, /* Set PHY (MII address) to report. */ {"log", 0, 0, 'l'}, /* With --watch, write events to syslog. */
{"restart", 0, 0, 'r'}, /* Restart link negotiation */ {"restart", 0, 0, 'r'}, /* Restart link negotiation */
{"reset", 0, 0, 'R'}, /* Reset the transceiver. */ {"reset", 0, 0, 'R'}, /* Reset the transceiver. */
{"verbose", 0, 0, 'v'}, /* Report each action taken. */ {"verbose", 0, 0, 'v'}, /* Report each action taken. */
...@@ -448,7 +448,7 @@ static void watch_one_xcvr(int skfd, char *ifname, int index) ...@@ -448,7 +448,7 @@ static void watch_one_xcvr(int skfd, char *ifname, int index)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
const char *usage = const char *usage =
"usage: %s [-VvRrwl] [-A media,... | -F media] <interface ...>\n" "usage: %s [-VvRrwl] [-A media,... | -F media] [-p addr] <interface ...>\n"
" -V, --version display version information\n" " -V, --version display version information\n"
" -v, --verbose more verbose output\n" " -v, --verbose more verbose output\n"
" -R, --reset reset MII to poweron state\n" " -R, --reset reset MII to poweron state\n"
...@@ -457,6 +457,7 @@ const char *usage = ...@@ -457,6 +457,7 @@ const char *usage =
" -l, --log with -w, write events to syslog\n" " -l, --log with -w, write events to syslog\n"
" -A, --advertise=media,... advertise only specified media\n" " -A, --advertise=media,... advertise only specified media\n"
" -F, --force=media force specified media technology\n" " -F, --force=media force specified media technology\n"
" -p, --phy=addr set PHY (MII address) to report\n"
"media: 1000baseTx-HD, 1000baseTx-FD,\n" "media: 1000baseTx-HD, 1000baseTx-FD,\n"
" 100baseT4, 100baseTx-FD, 100baseTx-HD,\n" " 100baseT4, 100baseTx-FD, 100baseTx-HD,\n"
" 10baseT-FD, 10baseT-HD,\n" " 10baseT-FD, 10baseT-HD,\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment