xref: /freebsd/usr.sbin/lptcontrol/lptcontrol.8 (revision 77a0943ded95b9e6438f7db70c4a28e4d93946d4)
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
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.
41For an
42ECP/ISA parallel port, it may be FIFO+DMA or ECP.
43.Pp
44The following command line options are supported:
45.Bl -tag -width indent
46.It Fl i
47Turn on interrupt-driven mode.
48.It Fl p
49Turn on polled mode.
50.It Fl e
51Turn on extended mode.
52.It Fl s
53Turn on standard mode, i.e. turn off extended mode.
54.It Fl d Ar dev
55Set the mode of the printer device specified by
56.Ar dev .
57The default value for
58.Ar dev
59is
60.Pa /dev/lpt0 .
61.El
62.Pp
63One of
64.Fl i
65,
66.Fl p
67or
68.Fl e
69must be specified.
70.Pp
71.Sh FILES
72.Bl -tag -width /sys/i386/conf/GENERIC -compact
73.It Pa /dev/lpt?
74printer devices
75.It Pa /dev/lpctl?
76printer control devices
77.It Pa /sys/i386/conf/GENERIC
78kernel configuration file
79.El
80.Sh BUGS
81Sure to be some.
82.Sh "SEE ALSO"
83.Xr lpt 4
84.Sh AUTHORS
85.An Geoffrey M. Rehmet
86.Sh HISTORY
87.Nm Lptcontrol
88first appeared in
89.Fx 1.1.5
90