xref: /netbsd-src/share/man/man4/man4.mac68k/cpi.4 (revision 370b757da0b6af069273f414ae59ae49c0db506f)
1.\"	$NetBSD: cpi.4,v 1.8 2017/02/18 22:39:01 wiz Exp $
2.\"
3.\" Copyright (c) 2008 Hauke Fath.  All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
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 ``AS IS'' AND ANY EXPRESS OR
15.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\"
25.Dd February 17, 2017
26.Dt CPI 4 mac68k
27.Os
28.Sh NAME
29.Nm cpi
30.Nd parallel printer driver for Creative Systems Inc. Hurdler CPI Nubus card
31.\"
32.Sh SYNOPSIS
33.Cd "cpi* at nubus? flags 0x1"
34.\"
35.Sh DESCRIPTION
36The
37.Nm
38interface provides access to parallel printer ports.
39.\"
40.Sh CONFIGURATION
41The
42.Nm
43driver supports the following
44.Sy flags
45for use in
46.Xr config 1
47files:
48.Pp
49.Bl -tag -compact -width "bits 16-23:"
50.It bit 0 :
51use the CIO counters 1 and 2 as a 32 bit
52.Xr timecounter 9 .
53.El
54.\"
55.Sh HARDWARE
56The
57.Nm
58interface supports the Creative Systems Inc. Hurdler CPI Nubus card,
59which is based on a Zilog Z8536 CIO.
60.\"
61.Pp
62The parallel port on the Hurdler CPI card is wired as follows:
63.Bl -column "/STROBE" "Page error" "SubD pin" "Z8536 pin" "Z8536 signal"
64.It Sy "Signal"		SubD pin	Z8536 pin	Z8536 signal
65.It /STROBE	Strobe	1	22	PC3
66.It D0		2	33	PA0
67.It \&D1		3	32	PA1
68.It D2		4	31	PA2
69.It D3		5	30	PA3
70.It D4		6	29	PA4
71.It D5		7	28	PA5
72.It D6		8	27	PA6
73.It D7		9	26	PA7
74.It /ACK		10	21 + 11	PC2 + PB3
75.It BUSY		11	19 + 14	PC0 + PB6
76.It PE	Paper Error	12	20	PC1
77.It SEL	Select	13	13	PB5
78.It /AUTOFD	Auto Feed	14	12	PB4
79.It /FAULT		15	9	PB1
80.It /RESET		16	8	PB0
81.It /SELIN	Select \&In	17	10	PB2
82.El
83.Pp
84The Z8536 INT line (pin 24) is wired to PB7 (pin 15).
85.\"
86.Sh SEE ALSO
87.Xr lpt 4 ,
88.Xr mac68k/autoconf 4 ,
89.Xr nubus 4 ,
90.Xr printcap 5 ,
91.Xr timecounter 9
92.Pp
93.Tn IEEE Standard 1284-1994
94.\" .Sh STANDARDS
95.\"
96.Sh HISTORY
97.Nm
98first appeared in
99.Nx 5.0 .
100.\"
101.Sh AUTHORS
102The
103.Nm
104driver was written by
105.An Hauke Fath
106.Aq hauke@NetBSD.org .
107.\"
108.Sh CAVEATS
109The Hurdler CPI Nubus card does not use a TTL buffer to
110drive the parallel interface.
111Instead, the card's Z8536 CIO drives the printer port directly.
112Printers terminating the parallel interface with less
113than 2 kOhms may cause permanent damage to the Z8536 CIO.
114