xref: /netbsd/usr.sbin/iopctl/iopctl.8 (revision bf9ec67e)
1.\"	$NetBSD: iopctl.8,v 1.8 2002/01/19 03:15:05 wiz Exp $
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
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 Ar tid
48.Sh DESCRIPTION
49The
50.Nm
51command can be used to interrogate and control I2O devices.
52.Pp
53The following options are available:
54.Bl -tag -width xxxxxxxxxxx
55.It Fl f Ar ctldev
56Specify the control device to use. The default is
57.Pa /dev/iop0 .
58.El
59.Pp
60The following commands are available:
61.Bl -tag -width indent
62.It reconfig
63Reconfigure the IOP: ask all bus ports to rescan their busses, and attach or
64detach devices to and from the system as necessary.
65.It showddmid Ar tid
66Retrieve and display the DDM (device driver module) identity parameter group
67from the specified target.
68.It showdevid Ar tid
69Retrieve and display the device identity parameter group from the specified
70target.
71.It showlct
72Display the driver's private copy of the logical configuration table.  This
73copy of the LCT matches the current device configuration, but is not
74necessarily the latest available version of the LCT.
75.It showstatus
76Display the current status of the IOP.
77.It showtidmap
78Display the device to TID map.
79.El
80.Sh FILES
81.Bl -tag -width /dev/iopn -compact
82.It Pa /dev/iop Ns Ar u
83control device for IOP unit
84.Ar u
85.El
86.Sh SEE ALSO
87.Xr ioctl 2 ,
88.Xr iop 4 ,
89.Xr iopsp 4 ,
90.Xr ld 4
91.Pp
92The
93.Pa sysutils/i2ocfg
94package.
95.Sh HISTORY
96The
97.Nm
98command first appeared in
99.Nx 1.5.3 .
100.Sh AUTHORS
101The
102.Nm
103command was written by
104.An Andrew Doran Aq ad@netbsd.org .
105