xref: /freebsd/usr.sbin/lptcontrol/lptcontrol.8 (revision daf1cffce2e07931f27c6c6998652e90df6ba87e)
1.\"
2.\" lptcontrol - a utility for manipulating the lpt driver
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\"
13.\" $FreeBSD$
14.Dd September 3, 1994
15.Dt LPTCONTROL 8
16.Os FreeBSD 2
17.Sh NAME
18.Nm \&lptcontrol
19.Nd a utility for manipulating the lpt printer driver
20.Sh SYNOPSIS
21.Nm \&lptcontrol
22.Cm -i
23|
24.Cm -p
25|
26.Cm -e
27|
28.Cm -s
29.Op Fl d Ar device
30.Sh DESCRIPTION
31The
32.Nm
33command is used to set either the interrupt-driven, extended or polling mode
34of individual
35.Xr lpt 4
36devices.  When a printer is switched from
37a mode to another, this change will only take effect
38the next time the device is opened.
39.Pp
40Extended mode is anything the parallel port interface can support. For an
41ECP/ISA parallel port, it may be FIFO+DMA or ECP.
42.Pp
43The following command line options are supported:
44.Bl -tag -width indent
45.It Fl i
46Turn on interrupt-driven mode.
47.It Fl p
48Turn on polled mode.
49.It Fl e
50Turn on extended mode.
51.It Fl s
52Turn on standard mode, i.e. turn off extended mode.
53.It Fl d Ar dev
54Set the mode of the printer device specified by
55.Ar dev .
56The default value for
57.Ar dev
58is
59.Pa /dev/lpt0 .
60.El
61.Pp
62One of
63.Fl i
64,
65.Fl p
66or
67.Fl e
68must be specified.
69.Pp
70.Sh FILES
71.Bl -tag -width /sys/i386/conf/GENERIC -compact
72.It Pa /dev/lpt?
73printer devices
74.It Pa /dev/lpctl?
75printer control devices
76.It Pa /sys/i386/conf/GENERIC
77kernel configuration file
78.El
79.Sh BUGS
80Sure to be some.
81.Sh "SEE ALSO"
82.Xr lpt 4
83.Sh AUTHORS
84.An Geoffrey M. Rehmet
85.Sh HISTORY
86.Nm Lptcontrol
87first appeared in
88.Fx 1.1.5
89