summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ncrcontrol
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1995-09-14 18:14:28 +0000
committerse <se@FreeBSD.org>1995-09-14 18:14:28 +0000
commit6d71f32a42887d0c64769283d9e9a465a40b81a3 (patch)
tree4ff76c13aa083291475c504e7055c4d5cf58e596 /usr.sbin/ncrcontrol
parent966d73112d90c139a063e193d30a30f496cb9d04 (diff)
downloadFreeBSD-src-6d71f32a42887d0c64769283d9e9a465a40b81a3.zip
FreeBSD-src-6d71f32a42887d0c64769283d9e9a465a40b81a3.tar.gz
Improve usage message and document "-u" option to select one of multiple
NCR controller cards.
Diffstat (limited to 'usr.sbin/ncrcontrol')
-rw-r--r--usr.sbin/ncrcontrol/ncrcontrol.c40
1 files changed, 22 insertions, 18 deletions
diff --git a/usr.sbin/ncrcontrol/ncrcontrol.c b/usr.sbin/ncrcontrol/ncrcontrol.c
index ec1f8ff..9b486a8 100644
--- a/usr.sbin/ncrcontrol/ncrcontrol.c
+++ b/usr.sbin/ncrcontrol/ncrcontrol.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncrcontrol.c,v 1.7 1995/03/16 15:10:11 se Exp $
+** $Id: ncrcontrol.c,v 1.8 1995/05/30 03:49:12 rgrimes Exp $
**
** Utility for NCR 53C810 device driver.
**
@@ -677,6 +677,23 @@ void do_set (char * arg)
u_long addr;
int i;
+ if (!strcmp(arg, "?")) { printf (
+"async: disable synchronous transfers.\n"
+"sync=value: set the maximal synchronous transfer rate (MHz).\n"
+"fast: set FAST SCSI-2.\n"
+"\n"
+"wide=value: set the bus width (0=8bit 1=16bit).\n"
+"\n"
+"tags=value: use this number of tags.\n"
+"orderedtag: use ordered tags only.\n"
+"simpletag: use simple tags only.\n"
+"orderedwrite: use simple tags for read, else ordered tags.\n"
+"\n"
+"debug=value: set debug mode.\n"
+"\n");
+ return;
+ };
+
open_kvm(O_RDWR);
addr = ncr_base + offsetof (struct ncb, user);
@@ -703,22 +720,6 @@ void do_set (char * arg)
user.data = 0;
user.cmd = 0;
- if (!strcmp(arg, "?")) { printf (
-"async: disable synchronous transfers.\n"
-"sync=value: set the maximal synchronous transfer rate (MHz).\n"
-"fast: set FAST SCSI-2.\n"
-"\n"
-"wide=value: set the bus width (0=8bit 1=16bit).\n"
-"\n"
-"tags=value: use this number of tags.\n"
-"orderedtag: use ordered tags only.\n"
-"simpletag: use simple tags only.\n"
-"orderedwrite: use simple tags for read, else ordered tags.\n"
-"\n"
-"debug=value: set debug mode.\n"
-"\n");
- return;
- };
if (!strcmp(arg, "async")) {
user.data = 255;
@@ -1504,11 +1505,13 @@ void main(argc, argv)
};
vmunix = optarg;
break;
+#ifdef OPT_F
case 'f':
fprintf (stderr,
"%s: -f: option not yet implemented.\n",
prog);
exit (1);
+#endif
case 'u':
i = strtoul (optarg, &charp, 0);
@@ -1598,8 +1601,9 @@ void main(argc, argv)
fprintf (stderr,
"Usage:\n"
"\n"
- "%s [-M$] [-N$] {-f$} {-t#} {-l#} [-hivw?] [-d$] [-s$] [-k] [[-p] <time>]\n"
+ "%s [-M$] [-N$] [-u] {-t#} {-l#} [-hivw?] [-d$] [-s$] [-k] [[-p] <time>]\n"
"\n"
+ "-u <#> select controller number\n"
"-t <#> select target number\n"
"-l <#> select lun number\n"
"-i get info\n"
OpenPOWER on IntegriCloud