iopctl.8 revision 1.2
1
2.\"
3.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Andrew Doran.
8.\"
9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions
11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright
13.\"    notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\"    notice, this list of conditions and the following disclaimer in the
16.\"    documentation and/or other materials provided with the distribution.
17.\" 3. All advertising materials mentioning features or use of this software
18.\"    must display the following acknowledgement:
19.\"        This product includes software developed by the NetBSD
20.\"        Foundation, Inc. and its contributors.
21.\" 4. Neither the name of The NetBSD Foundation nor the names of its
22.\"    contributors may be used to endorse or promote products derived
23.\"    from this software without specific prior written permission.
24.\"
25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35.\" POSSIBILITY OF SUCH DAMAGE.
36.\"
37.Dd October 1, 2000
38.Dt IOPCTL 8
39.Os NetBSD
40.Sh NAME
41.Nm iopctl
42.Nd a program to control IOP devices
43.Sh SYNOPSIS
44.Nm iopctl
45.Op Fl f Ar ctldev
46.Ar command
47.Op tid
48.Sh DESCRIPTION
49.Nm
50can be used to interrogate, issue commands to and otherwise control
51.Xr iop 4
52devices.
53.Pp
54The following options are available:
55.Bl -tag -width xxxxxxxxxxx
56.It Fl f Ar ctldev
57Specify the control device to use. The default is
58.Pa /dev/iop0 .
59.El
60.Pp
61The following commands are available:
62.Bl -tag -width indent
63.It reconfig
64Reconfigure the IOP: ask all bus ports to rescan their busses, and attach or
65detach devices from the system as necessary.
66.It showddmid Ar tid
67Retrieve and display the device driver module parameter group from the
68specified target.
69.It showdevid Ar tid
70Retrieve and display the device identity parameter group from the specified
71target.
72.It showlct
73Display the driver's private copy of the logical configuration table.  This
74copy of the LCT matches the current device configuration, but is not
75necessarily the latest available version of the LCT.
76.It showstatus
77Display the current status of the IOP.
78.El
79.Sh FILES
80.Bl -tag -width /dev/iopn -compact
81.It Pa /dev/iop Ns Ar u
82control device for IOP unit
83.Ar u
84.El
85.Sh SEE ALSO
86.Xr ioctl 2 ,
87.Xr iop 4 ,
88.Xr iopsp 4 ,
89.Xr ld 4
90.Sh AUTHOR
91The
92.Nm
93command was written by Andrew Doran.
94.Sh HISTORY
95The
96.Nm
97command first appeared in
98.Nx 1.6 .
99.Sh BUGS
100I2O configuration dialogs are not yet catered for.
101