summaryrefslogtreecommitdiff
path: root/usr/src/man/man7d/usbprn.7d
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man7d/usbprn.7d')
-rw-r--r--usr/src/man/man7d/usbprn.7d51
1 files changed, 7 insertions, 44 deletions
diff --git a/usr/src/man/man7d/usbprn.7d b/usr/src/man/man7d/usbprn.7d
index 18efbaff0b..5fe69f2b4f 100644
--- a/usr/src/man/man7d/usbprn.7d
+++ b/usr/src/man/man7d/usbprn.7d
@@ -3,7 +3,7 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH usbprn 7D "18 June 2005" "SunOS 5.11" "Devices"
+.TH USBPRN 7D "Jun 18, 2005"
.SH NAME
usbprn \- USB printer class driver
.SH SYNOPSIS
@@ -97,12 +97,10 @@ The following \fBioctl\fR(2) calls are supported for backward compatibility and
are not recommended for new applications.
.sp
.ne 2
-.mk
.na
\fB\fBECPPIOC_GETPARMS\fR\fR
.ad
.RS 20n
-.rt
Gets current transfer parameters. The argument is a pointer to \fBstruct
ecpp_transfer_parms\fR. If parameters are not configured after the device is
opened, the structure will be set to its default configuration.
@@ -117,12 +115,10 @@ supported in \fBusbprn\fR.
.sp
.ne 2
-.mk
.na
\fB\fBECPPIOC_SETPARMS\fR\fR
.ad
.RS 20n
-.rt
Sets transfer parameters. The argument is a pointer to a \fBstruct
ecpp_transfer_parms\fR. If a parameter is out of range, \fBEINVAL\fR is
returned. If the peripheral or host device cannot support the requested mode,
@@ -156,12 +152,10 @@ information.
.sp
.ne 2
-.mk
.na
\fB\fBBPPIOC_TESTIO\fR\fR
.ad
.RS 20n
-.rt
Tests the transfer readiness of a print device and checks status bits to
determine if a \fBwrite\fR(2) will succeed. If status bits are set, a transfer
will fail. If a transfer will succeed, zero is returned. If a transfer fails,
@@ -182,12 +176,10 @@ supported in \fBusbprn\fR. Additionally, \fBbus_error\fR and
.sp
.ne 2
-.mk
.na
\fB\fBBPPIOC_GETERR\fR\fR
.ad
.RS 20n
-.rt
Get last error status. The argument is a pointer to a \fBstruct
bpp_error_status\fR. This structure indicates the status of all the appropriate
status bits at the time of the most recent error condition during a
@@ -199,7 +191,7 @@ status bits at the time of the most recent error condition during a
struct bpp_error_status {
char timeout_occurred; /* not used */
char bus_error; /* not used */
- uchar_t pin_status; /* status of pins which
+ uchar_t pin_status; /* status of pins which
/* could cause error */
};
.fi
@@ -224,12 +216,10 @@ BPP_BUSY_ERR status bit is not supported by USB printers.
.sp
.ne 2
-.mk
.na
\fB\fBECPPIOC_GETDEVID\fR\fR
.ad
.RS 20n
-.rt
Gets the IEEE 1284 device ID from the peripheral. The argument is a pointer to
a \fBstruct ecpp_device_id\fR. Applications should set mode to ECPP_CENTRONICS.
If another mode is used, the driver will return \fBEPROTONOSUPPORT\fR.
@@ -266,24 +256,20 @@ Unlike \fBecpp\fR(7D), only the ECPP_CENTRONICS mode is currently supported in
.SH ERRORS
.sp
.ne 2
-.mk
.na
\fB\fBEBUSY\fR\fR
.ad
.RS 19n
-.rt
The device has been opened and another open is attempted. An attempt has been
made to unload the driver while one of the units is open.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 19n
-.rt
An unsupported IOCTL has been received. A ECPPIOC_SETPARMS \fBioctl\fR(2) is
attempted with an out of range value in the \fBecpp_transfer_parms\fR
structure.
@@ -291,12 +277,10 @@ structure.
.sp
.ne 2
-.mk
.na
\fB\fBEIO\fR\fR
.ad
.RS 19n
-.rt
The driver has received an unrecoverable device error, or the device is not
responding, or the device has stalled when attempting an access. A
\fBwrite\fR(2) or \fBioctl\fR(2) did not complete due to a peripheral access. A
@@ -305,36 +289,30 @@ responding, or the device has stalled when attempting an access. A
.sp
.ne 2
-.mk
.na
\fB\fBENXIO\fR\fR
.ad
.RS 19n
-.rt
The driver has received an \fBopen\fR(2) request for a unit for which the
attach failed.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENODEV\fR\fR
.ad
.RS 19n
-.rt
The driver has received an \fBopen\fR(2) request for a device that has been
disconnected.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEPROTONOSUPPORT\fR\fR
.ad
.RS 19n
-.rt
The driver has received a ECPPIOC_SETPARMS \fBioctl\fR(2) for a mode argument
other than ECPP_CENTRONICS in the \fBecpp_transfer_parms\fR structure.
.RE
@@ -342,56 +320,46 @@ other than ECPP_CENTRONICS in the \fBecpp_transfer_parms\fR structure.
.SH FILES
.sp
.ne 2
-.mk
.na
\fB\fB/kernel/drv/usbprn\fR\fR
.ad
.RS 30n
-.rt
32-bit x86 ELF kernel module
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/kernel/drv/amd64/usbprn\fR\fR
.ad
.RS 30n
-.rt
64-bit x86 ELF kernel module
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/kernel/drv/sparcv9/usbprn\fR\fR
.ad
.RS 30n
-.rt
64-bit SPARC ELF kernel module
.RE
.sp
.ne 2
-.mk
.na
\fB/dev/usb/*/*/* \fR
.ad
.RS 30n
-.rt
ugen(7D) nodes.
.RE
.sp
.ne 2
-.mk
.na
\fB\fB/dev/printers/\fIn\fR\fR\fR
.ad
.RS 30n
-.rt
Character special files
.RE
@@ -403,13 +371,12 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-ArchitectureSPARC, x86, PCI-based systems
+Architecture SPARC, x86, PCI-based systems
.TE
.SH SEE ALSO
@@ -449,7 +416,6 @@ Warning: <device path> (usbprn<instance num>): Error Message...
.sp
.ne 2
-.mk
.na
\fBDevice was disconnected while open. Data may have been lost.\fR
.ad
@@ -461,7 +427,6 @@ data transfer was in progress. The job may be aborted.
.sp
.ne 2
-.mk
.na
\fBCannot access <device>. Please reconnect.\fR
.ad
@@ -473,7 +438,6 @@ the device.
.sp
.ne 2
-.mk
.na
\fBDevice is not identical to the previous one on this port. Please disconnect
and reconnect.\fR
@@ -487,7 +451,6 @@ and reconnect the printer to the same port.
.sp
.ne 2
-.mk
.na
\fBPrinter has been reconnected but data may have been lost.\fR
.ad