Initial import from FreeBSD RELENG_4:
[dragonfly.git] / usr.sbin / lptcontrol / lptcontrol.8
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: src/usr.sbin/lptcontrol/lptcontrol.8,v 1.12.2.6 2003/03/11 21:13:50 trhodes Exp $
14 .Dd September 3, 1994
15 .Dt LPTCONTROL 8
16 .Os
17 .Sh NAME
18 .Nm lptcontrol
19 .Nd a utility for manipulating the lpt printer driver
20 .Sh SYNOPSIS
21 .Nm
22 .Fl i | p | e | s
23 .Op Fl d Ar device
24 .Sh DESCRIPTION
25 The
26 .Nm
27 utility is used to set either the interrupt-driven, extended or polling mode
28 of individual
29 .Xr lpt 4
30 devices.
31 When a printer is switched from
32 a mode to another, this change will only take effect
33 the next time the device is opened.
34 .Pp
35 Extended mode is anything the parallel port interface can support.
36 For an
37 ECP/ISA parallel port, it may be FIFO+DMA or ECP.
38 .Pp
39 The following command line options are supported:
40 .Bl -tag -width indent
41 .It Fl i
42 Turn on interrupt-driven mode.
43 .It Fl p
44 Turn on polled mode.
45 .It Fl e
46 Turn on extended mode.
47 .It Fl s
48 Turn on standard mode, i.e. turn off extended mode.
49 .It Fl d Ar device
50 Set the mode of the printer device specified by
51 .Ar device .
52 The default value for
53 .Ar device
54 is
55 .Pa /dev/lpt0 .
56 .El
57 .Pp
58 One of
59 .Fl i , p
60 or
61 .Fl e
62 must be specified.
63 .Sh FILES
64 .Bl -tag -width /sys/i386/conf/GENERIC -compact
65 .It Pa /dev/lpt?
66 printer devices
67 .It Pa /dev/lpctl?
68 printer control devices
69 .It Pa /sys/i386/conf/GENERIC
70 kernel configuration file
71 .El
72 .Sh BUGS
73 Sure to be some.
74 .Sh SEE ALSO
75 .Xr lpt 4
76 .Sh AUTHORS
77 .An Geoffrey M. Rehmet
78 .Sh HISTORY
79 The
80 .Nm
81 utility
82 first appeared in
83 .Fx 1.1.5