patch from JiSheng: fixed usage for option -M, added examples for testing

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22194 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-09-06 18:12:33 +00:00
parent 5f380e3415
commit 759833c921
2 changed files with 23 additions and 1 deletions

View File

@ -92,6 +92,27 @@ IEEE 1394 support for haiku
Physical layer chip
- This does not matter, most physical layer chip should work
6. Example
fwcontrol
Output a list of devices that are connected to the bus
fwcontrol -t
Show the topology map
fwcontrol -c 0
Show the config rom of node 0
fwcontrol -r
trigger bus reset
fwcontrol -R mini.dv
Receive DV or MPEG TS stream and save it in mini.dv. Press Ctrl-C to
stop receiving data.
Note: the program will try to guess which mode first
fwcontrol -M d -R mini.dv
Explicitly specify receiving via DV mode.
References:
[1] IEEE 1394-1995
[2] IEEE 1394a-2000

View File

@ -90,7 +90,7 @@ usage(void)
"fwcontrol [-u bus_num] [-rt] [-g gap_count] [-o node] "
"[-b pri_req] [-c node] [-d node] [-l file] "
#ifdef __HAIKU__
"[-R file] [-S file] \n"
"[-M mode] [-R file] [-S file] \n"
#else
"[-R file] [-S file] [-m target]\n"
#endif
@ -107,6 +107,7 @@ usage(void)
"\t-l: load and parse hex dump file of configuration ROM\n"
"\t-R: Receive DV or MPEG TS stream\n"
#ifdef __HAIKU__
"\t-M: Specify either d for dv mode or m for mpeg mode\n"
"\t-S: Send DV stream\n");
#else
"\t-S: Send DV stream\n"