xref: /freebsd/share/man/man4/pt.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1a77a7ee0SJulian Elischer.\" Copyright (c) 1995
2a77a7ee0SJulian Elischer.\"	Peter Dufault,  All rights reserved.
3a77a7ee0SJulian Elischer.\"
4a77a7ee0SJulian Elischer.\" Redistribution and use in source and binary forms, with or without
5a77a7ee0SJulian Elischer.\" modification, are permitted provided that the following conditions
6a77a7ee0SJulian Elischer.\" are met:
7a77a7ee0SJulian Elischer.\" 1. Redistributions of source code must retain the above copyright
8a77a7ee0SJulian Elischer.\"    notice, this list of conditions and the following disclaimer.
9a77a7ee0SJulian Elischer.\"
10a77a7ee0SJulian Elischer.\" 2. Redistributions in binary form must reproduce the above copyright
11a77a7ee0SJulian Elischer.\"    notice, this list of conditions and the following disclaimer in the
12a77a7ee0SJulian Elischer.\"    documentation and/or other materials provided with the distribution.
13a77a7ee0SJulian Elischer.\"
14a77a7ee0SJulian Elischer.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15a77a7ee0SJulian Elischer.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16a77a7ee0SJulian Elischer.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17a77a7ee0SJulian Elischer.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18a77a7ee0SJulian Elischer.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19a77a7ee0SJulian Elischer.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20a77a7ee0SJulian Elischer.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21a77a7ee0SJulian Elischer.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22a77a7ee0SJulian Elischer.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23a77a7ee0SJulian Elischer.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24a77a7ee0SJulian Elischer.\" SUCH DAMAGE.
25a77a7ee0SJulian Elischer.\"
26cb282243SPeter Dufault.Dd March 2, 1995
27cb282243SPeter Dufault.Dt PT 4
283d45e180SRuslan Ermilov.Os
29cb282243SPeter Dufault.Sh NAME
30cb282243SPeter Dufault.Nm pt
3189533cd9SGarrett Wollman.Nd SCSI processor type driver
32cb282243SPeter Dufault.Sh SYNOPSIS
33b9781e20SJeroen Ruigrok van der Werven.Cd device pt
34cb282243SPeter Dufault.Sh DESCRIPTION
35cb282243SPeter DufaultThe
3689533cd9SGarrett Wollman.Nm
37cb282243SPeter Dufaultdriver provides support for a
3889533cd9SGarrett Wollman.Tn SCSI
39b5e7e999SRuslan Ermilovprocessor type device.
40b5e7e999SRuslan ErmilovThese are usually scanners and other devices using the
4189533cd9SGarrett Wollman.Tn SCSI
4289533cd9SGarrett Wollmanlink as a communication interface with device
43cb282243SPeter Dufaultspecific commands embedded in the data stream.
44cb282243SPeter Dufault.Pp
4589533cd9SGarrett WollmanA
4689533cd9SGarrett Wollman.Tn SCSI
4789533cd9SGarrett Wollmanadapter must be separately configured into the system
48cb282243SPeter Dufaultbefore this driver can be used.
49cb282243SPeter Dufault.Pp
503ece1bd2SKenneth D. MerryThis device supports
51cb282243SPeter Dufault.Xr read 2
52cb282243SPeter Dufaultand
53cb282243SPeter Dufault.Xr write 2 ,
543ece1bd2SKenneth D. Merryand the
5589533cd9SGarrett Wollman.Xr ioctl 2
563ece1bd2SKenneth D. Merrycalls described below.
5789533cd9SGarrett Wollman.Sh IOCTLS
583ece1bd2SKenneth D. MerryThe following
593ece1bd2SKenneth D. Merry.Xr ioctl 2
603ece1bd2SKenneth D. Merrycalls are supported by the
6189533cd9SGarrett Wollman.Nm
625203edcdSRuslan Ermilovdriver.
635203edcdSRuslan ErmilovThey are defined in the header file
64fe08efe6SRuslan Ermilov.In sys/ptio.h .
65*0d9deed5SUlrich Spörlein.Bl -tag -width 012345678901234
663ece1bd2SKenneth D. Merry.It PTIOCGETTIMEOUT
673ece1bd2SKenneth D. MerryThis ioctl allows userland applications to fetch the current
68cb282243SPeter Dufault.Nm
69b5e7e999SRuslan Ermilovdriver read and write timeout.
70b5e7e999SRuslan ErmilovThe value returned is in seconds.
713ece1bd2SKenneth D. Merry.It PTIOCSETTIMEOUT
723ece1bd2SKenneth D. MerryThis ioctl allows userland applications to set the current
733ece1bd2SKenneth D. Merry.Nm
74b5e7e999SRuslan Ermilovdriver read and write timeouts.
75b5e7e999SRuslan ErmilovThe value should be in seconds.
763ece1bd2SKenneth D. Merry.El
7789533cd9SGarrett Wollman.Sh FILES
7889533cd9SGarrett Wollman.Bl -tag -width /dev/ptQQQ -compact
7989533cd9SGarrett Wollman.It Pa /dev/pt Ns Ar N
8089533cd9SGarrett Wollmanthe
81c2d03ea8SRuslan Ermilov.Ar N Ns th processor device.
8289533cd9SGarrett Wollman.El
83cb282243SPeter Dufault.Sh SEE ALSO
842baf3a13SAlexander Motin.Xr cam 4
85cb282243SPeter Dufault.Sh HISTORY
86cb282243SPeter DufaultThe
87cb282243SPeter Dufault.Nm
8889533cd9SGarrett Wollmandriver appeared in
8946f84fcbSMike Pritchard.Fx 2.1 .
90