summaryrefslogtreecommitdiff
path: root/static/plan9-4e/man3/lpt.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/plan9-4e/man3/lpt.3')
-rw-r--r--static/plan9-4e/man3/lpt.343
1 files changed, 43 insertions, 0 deletions
diff --git a/static/plan9-4e/man3/lpt.3 b/static/plan9-4e/man3/lpt.3
new file mode 100644
index 00000000..a8df37dd
--- /dev/null
+++ b/static/plan9-4e/man3/lpt.3
@@ -0,0 +1,43 @@
+.TH LPT 3
+.SH NAME
+lpt \- parallel port interface for PC's
+.SH SYNOPSIS
+.nf
+.B bind -a #L[123] /dev
+
+.B /dev/lpt[123]data
+.B /dev/lpt[123]dlr
+.B /dev/lpt[123]pcr
+.B /dev/lpt[123]psr
+.fi
+.SH DESCRIPTION
+The
+.I lpt
+driver provides an interface to the parallel
+interface normally used for printers.
+The specifiers
+.BR 1 ,
+.BR 2 ,
+and
+.BR 3
+correspond to
+the parallel interfaces at PC ports 0x3bc, 0x378, and 0x278
+respectively.
+.PP
+.B Lpt?data
+is write only.
+Writing to it sends data to the interface.
+This file is sufficient for communicating with most printers.
+.PP
+.BR Lpt?dlr ,
+.BR lpt?pcr ,
+and
+.B lpt?psr
+are used for fine control of the parallel port.
+Reading or writing these files corresponds to
+reading and writing the data latch register,
+printer control register, and printer status
+register.
+These are used by programs to drive special devices.
+.SH SOURCE
+.B /sys/src/9/pc/devlpt.c