xref: /illumos-gate/usr/src/uts/intel/io/ecpp.conf (revision 5b6ecd7fe9733cbbf05a3badf91c9d6db3f8a544)
1*5b6ecd7fSRichard Lowe#
2*5b6ecd7fSRichard Lowe# CDDL HEADER START
3*5b6ecd7fSRichard Lowe#
4*5b6ecd7fSRichard Lowe# The contents of this file are subject to the terms of the
5*5b6ecd7fSRichard Lowe# Common Development and Distribution License (the "License").
6*5b6ecd7fSRichard Lowe# You may not use this file except in compliance with the License.
7*5b6ecd7fSRichard Lowe#
8*5b6ecd7fSRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*5b6ecd7fSRichard Lowe# or http://www.opensolaris.org/os/licensing.
10*5b6ecd7fSRichard Lowe# See the License for the specific language governing permissions
11*5b6ecd7fSRichard Lowe# and limitations under the License.
12*5b6ecd7fSRichard Lowe#
13*5b6ecd7fSRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each
14*5b6ecd7fSRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*5b6ecd7fSRichard Lowe# If applicable, add the following below this CDDL HEADER, with the
16*5b6ecd7fSRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
17*5b6ecd7fSRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
18*5b6ecd7fSRichard Lowe#
19*5b6ecd7fSRichard Lowe# CDDL HEADER END
20*5b6ecd7fSRichard Lowe#
21*5b6ecd7fSRichard Lowe#
22*5b6ecd7fSRichard Lowe# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*5b6ecd7fSRichard Lowe# Use is subject to license terms.
24*5b6ecd7fSRichard Lowe#
25*5b6ecd7fSRichard Lowe#
26*5b6ecd7fSRichard Lowe
27*5b6ecd7fSRichard Lowe# When fast-centronics is set to "true", handshaking between the
28*5b6ecd7fSRichard Lowe# driver and the peripheral is conducted by hardware. For some
29*5b6ecd7fSRichard Lowe# Centronics devices the hardware handshaking is too fast for the
30*5b6ecd7fSRichard Lowe# peripheral.  To slow down the handshaking, fast-centronics must
31*5b6ecd7fSRichard Lowe# be set to "false". By default fast-centronics is set to "false".
32*5b6ecd7fSRichard Lowe
33*5b6ecd7fSRichard Lowefast-centronics="false";
34*5b6ecd7fSRichard Lowe
35*5b6ecd7fSRichard Lowe
36*5b6ecd7fSRichard Lowe# When fast-1284-compatible is set to "true", IEEE 1284 compliant
37*5b6ecd7fSRichard Lowe# devices operating in Compatibility mode will have the parallel port
38*5b6ecd7fSRichard Lowe# handshaking controlled by the hardware.  When it is set to "false"
39*5b6ecd7fSRichard Lowe# handshaking is PIO controlled by the driver.  By default
40*5b6ecd7fSRichard Lowe# fast-1284-compatible is set "true".
41*5b6ecd7fSRichard Lowe
42*5b6ecd7fSRichard Lowefast-1284-compatible="true";
43*5b6ecd7fSRichard Lowe
44*5b6ecd7fSRichard Lowe
45*5b6ecd7fSRichard Lowe# Some Centronics devices require the Init signal to be toggled upon
46*5b6ecd7fSRichard Lowe# power-up.  The application should do this directly with ioctl(2) interface
47*5b6ecd7fSRichard Lowe# as specified in ecpp(4D). As an alternative to using the API, the driver
48*5b6ecd7fSRichard Lowe# may be configured to toggle the nInit signal upon every time the device
49*5b6ecd7fSRichard Lowe# is opened. If centronics-init-seq is set to "true" the Init signal
50*5b6ecd7fSRichard Lowe# will be toggled when the device is opened.  The default is "false".
51*5b6ecd7fSRichard Lowe
52*5b6ecd7fSRichard Lowecentronics-init-seq="false";
53*5b6ecd7fSRichard Lowe
54*5b6ecd7fSRichard Lowe
55*5b6ecd7fSRichard Lowe# When the ecpp driver detects a Centronics device is in an error state,
56*5b6ecd7fSRichard Lowe# ecpp will re-examine the device every centronics-retry milliseconds.
57*5b6ecd7fSRichard Lowe# The default is 750 milliseconds.
58*5b6ecd7fSRichard Lowe
59*5b6ecd7fSRichard Lowecentronics-retry=750;
60*5b6ecd7fSRichard Lowe
61*5b6ecd7fSRichard Lowe
62*5b6ecd7fSRichard Lowe# Some Centronics printers continue to assert BUSY after the ACK pulse.
63*5b6ecd7fSRichard Lowe# The driver waits for centronics-wait-for-busy microseconds for a
64*5b6ecd7fSRichard Lowe# desertion of BUSY before it queues the current data transfer.
65*5b6ecd7fSRichard Lowe# The default is 5000 microseconds (5ms).
66*5b6ecd7fSRichard Lowe
67*5b6ecd7fSRichard Lowecentronics-wait-for-busy=5000;
68*5b6ecd7fSRichard Lowe
69*5b6ecd7fSRichard Lowe
70*5b6ecd7fSRichard Lowe# Devices that are not using fast handshaking may adjust the data setup
71*5b6ecd7fSRichard Lowe# time and the strobe pulse width. The Centronics specification states that
72*5b6ecd7fSRichard Lowe# each must be at least 1 microsecond.  The default values are set to
73*5b6ecd7fSRichard Lowe# 2 microseconds to ensure reliable transfers.
74*5b6ecd7fSRichard Lowe
75*5b6ecd7fSRichard Lowecentronics-data-setup-time=2;
76*5b6ecd7fSRichard Lowecentronics-strobe-pulse-width=2;
77*5b6ecd7fSRichard Lowe
78*5b6ecd7fSRichard Lowe# The ecpp driver waits ecpp-transfer-timeout seconds before it aborts
79*5b6ecd7fSRichard Lowe# the current transfer and put the untransferred data back on the queue.
80*5b6ecd7fSRichard Lowe# The default value for ecpp-transfer-timeout is 90 seconds.
81*5b6ecd7fSRichard Lowe
82*5b6ecd7fSRichard Loweecpp-transfer-timeout=90;
83*5b6ecd7fSRichard Lowe
84*5b6ecd7fSRichard Lowe# The following note applies to x86 platforms only
85*5b6ecd7fSRichard Lowe# If a system has a standard parallel port, but not enumerated
86*5b6ecd7fSRichard Lowe# in the device tree, you may gain access to the port by uncommenting
87*5b6ecd7fSRichard Lowe# the following lines and run "update_drv ecpp".
88*5b6ecd7fSRichard Lowe#
89*5b6ecd7fSRichard Lowe# name="lp" parent="/isa" interrupts=7 reg=1,0x378,0x8;
90