xref: /freebsd/share/man/man4/pt.4 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1.\" Copyright (c) 1995
2.\"	Peter Dufault,  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\"
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\"
14.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.Dd March 2, 1995
27.Dt PT 4
28.Os
29.Sh NAME
30.Nm pt
31.Nd SCSI processor type driver
32.Sh SYNOPSIS
33.Cd device pt
34.Sh DESCRIPTION
35The
36.Nm
37driver provides support for a
38.Tn SCSI
39processor type device.
40These are usually scanners and other devices using the
41.Tn SCSI
42link as a communication interface with device
43specific commands embedded in the data stream.
44.Pp
45A
46.Tn SCSI
47adapter must be separately configured into the system
48before this driver can be used.
49.Pp
50This device supports
51.Xr read 2
52and
53.Xr write 2 ,
54and the
55.Xr ioctl 2
56calls described below.
57.Sh IOCTLS
58The following
59.Xr ioctl 2
60calls are supported by the
61.Nm
62driver.
63They are defined in the header file
64.In sys/ptio.h .
65.Bl -tag -width 012345678901234
66.It PTIOCGETTIMEOUT
67This ioctl allows userland applications to fetch the current
68.Nm
69driver read and write timeout.
70The value returned is in seconds.
71.It PTIOCSETTIMEOUT
72This ioctl allows userland applications to set the current
73.Nm
74driver read and write timeouts.
75The value should be in seconds.
76.El
77.Sh FILES
78.Bl -tag -width /dev/ptQQQ -compact
79.It Pa /dev/pt Ns Ar N
80the
81.Ar N Ns th processor device.
82.El
83.Sh SEE ALSO
84.Xr cam 4
85.Sh HISTORY
86The
87.Nm
88driver appeared in
89.Fx 2.1 .
90