xref: /freebsd/usr.sbin/lptcontrol/lptcontrol.8 (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
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.Dd October 1, 2004
13.Dt LPTCONTROL 8
14.Os
15.Sh NAME
16.Nm lptcontrol
17.Nd a utility for manipulating the lpt printer driver
18.Sh SYNOPSIS
19.Nm
20.Fl e | i | p | s
21.Op Fl d Ar control_device
22.Sh DESCRIPTION
23The
24.Nm
25utility is used to set either the interrupt-driven, extended, standard,
26or polling mode of individual
27.Xr lpt 4
28devices.
29When a printer is switched from
30a mode to another, this change will only take effect
31the next time the device is opened.
32.Pp
33Extended mode is anything the parallel port interface can support.
34For an
35ECP/ISA parallel port, it may be FIFO+DMA or ECP.
36.Pp
37The following command line options are supported:
38.Bl -tag -width indent
39.It Fl e
40Turn on extended mode.
41.It Fl i
42Turn on interrupt-driven mode.
43.It Fl p
44Turn on polled mode.
45.It Fl s
46Turn on standard mode, i.e., turn off extended mode.
47.It Fl d Ar control_device
48Set the mode of the printer control device specified by
49.Ar control_device .
50The default value for
51.Ar control_device
52is
53.Pa /dev/lpt0.ctl .
54.El
55.Pp
56One of
57.Fl e , i , p
58or
59.Fl s
60must be specified.
61.Sh FILES
62.Bl -tag -width /sys/i386/conf/GENERIC -compact
63.It Pa /dev/lpt?
64printer devices
65.It Pa /dev/lpt?.ctl
66printer control devices
67.It Pa /sys/i386/conf/GENERIC
68kernel configuration file
69.It Pa /boot/device.hints
70device hints for the parallel port chipset driver,
71.Xr ppc 4
72.El
73.Sh SEE ALSO
74.Xr lpt 4 ,
75.Xr ppc 4 ,
76.Xr device.hints 5
77.Sh HISTORY
78The
79.Nm
80utility
81first appeared in
82.Fx 1.1.5
83.Sh AUTHORS
84.An Geoffrey M. Rehmet
85.Sh BUGS
86The control device name should never have been an option,
87but should have been an optional argument.
88Because of this, a single argument is treated as a device name.
89