From 759833c9212e9fc5b94bd3979e9f1d40c3b5b5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 6 Sep 2007 18:12:33 +0000 Subject: [PATCH] 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 --- .../bus_managers/firewire/00README.haiku | 21 +++++++++++++++++++ src/bin/fwcontrol/fwcontrol.c | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/bus_managers/firewire/00README.haiku b/src/add-ons/kernel/bus_managers/firewire/00README.haiku index f06e01b44e..9b6274b7af 100644 --- a/src/add-ons/kernel/bus_managers/firewire/00README.haiku +++ b/src/add-ons/kernel/bus_managers/firewire/00README.haiku @@ -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 diff --git a/src/bin/fwcontrol/fwcontrol.c b/src/bin/fwcontrol/fwcontrol.c index 1f4a14767b..7aefad9ef8 100644 --- a/src/bin/fwcontrol/fwcontrol.c +++ b/src/bin/fwcontrol/fwcontrol.c @@ -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"