summaryrefslogtreecommitdiffstats
path: root/share/man/man4/pt.4
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-08-20 03:48:11 +0000
committerken <ken@FreeBSD.org>1999-08-20 03:48:11 +0000
commite6adc2c52ec8788c8eb3ad672e6ced99a9b58607 (patch)
treeeb6d964c55a4f9bf8e661501cc094b71976e6b84 /share/man/man4/pt.4
parent36d05ff1872b2d6a868dd0054ffb6787caab14ac (diff)
downloadFreeBSD-src-e6adc2c52ec8788c8eb3ad672e6ced99a9b58607.zip
FreeBSD-src-e6adc2c52ec8788c8eb3ad672e6ced99a9b58607.tar.gz
Fix short timeout problems with the pt(4) driver:
- increase the default timeout from 10 seconds to 60 seconds - add a new kernel option, SCSI_PT_DEFAULT_TIMEOUT, that lets users specify the default timeout for the pt driver to use - add two new ioctls, one to get the timeout for a given pt device, the other to set the timeout for a given pt device. The idea is that userland applications using the device can set the timeout to suit their purposes. The ioctls are defined in a new header file, sys/ptio.h PR: 10266 Reviewed by: gibbs, joerg
Diffstat (limited to 'share/man/man4/pt.4')
-rw-r--r--share/man/man4/pt.452
1 files changed, 21 insertions, 31 deletions
diff --git a/share/man/man4/pt.4 b/share/man/man4/pt.4
index dbd3191..9a59d08 100644
--- a/share/man/man4/pt.4
+++ b/share/man/man4/pt.4
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id$
+.\" $Id: pt.4,v 1.5 1997/03/07 02:49:30 jmg Exp $
.\"
.Dd March 2, 1995
.Dt PT 4
@@ -32,7 +32,8 @@
.Nm pt
.Nd SCSI processor type driver
.Sh SYNOPSIS
-.Cd device pt0 at scbus?
+.Cd device pt0
+.Cd device pt1 at scbus0 target 3 unit 0
.Sh DESCRIPTION
The
.Nm
@@ -49,42 +50,31 @@ A
adapter must be separately configured into the system
before this driver can be used.
.Pp
-This device only supports
+This device supports
.Xr read 2
and
.Xr write 2 ,
-and the generic
-.Tn SCSI
+and the
.Xr ioctl 2
-calls.
-The
-.Sq Li at scbus?
-is required in the config file for the configuration
-system to know this is a SCSI device and generate the appropriate
-tables.
-.Pp
-The
-.Sq Li 0
-in
-.Sq Li pt0
-in the configuration is required.
-This is a deficiency in
-.Xr config 8 .
+calls described below.
.Sh IOCTLS
-The
+.Bl -tag -width 012345678901234
+The following
+.Xr ioctl 2
+calls are supported by the
.Nm
-driver has no
-.Fn ioctl
-commands of its own but rather acts as a medium for the
-generic
-.Xr scsi 4
-commands. These are described in
-.Aq Pa sys/scsiio.h .
-All
-.Xr scsi 4
-debug ioctls work on
+driver. They are defined in the header file
+.Aq Pa sys/ptio.h .
+.Pp
+.It PTIOCGETTIMEOUT
+This ioctl allows userland applications to fetch the current
.Nm
-devices.
+driver read and write timeout. The value returned is in seconds.
+.It PTIOCSETTIMEOUT
+This ioctl allows userland applications to set the current
+.Nm
+driver read and write timeouts. The value should be in seconds.
+.El
.Sh FILES
.Bl -tag -width /dev/ptQQQ -compact
.It Pa /dev/pt Ns Ar N
OpenPOWER on IntegriCloud