Deleted Added
full compact
lpt.4 (56460) lpt.4 (57676)
1.\"
2.\" Copyright (c) 1993 Christopher G. Demetriou
3.\" Copyright (c) 1994 Geoffrey M. Rehmet
4.\" Copyright (c) 1999 Nicolas Souchu
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\"
2.\" Copyright (c) 1993 Christopher G. Demetriou
3.\" Copyright (c) 1994 Geoffrey M. Rehmet
4.\" Copyright (c) 1999 Nicolas Souchu
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/share/man/man4/lpt.4 56460 2000-01-23 15:04:20Z asmodai $
28.\" $FreeBSD: head/share/man/man4/lpt.4 57676 2000-03-01 14:50:24Z sheldonh $
29.\"
30.Dd February 14, 1999
31.Dt LPT 4
32.Os FreeBSD
33.Sh NAME
34.Nm lpt
35.Nd
36Generic printer device driver

--- 17 unchanged lines hidden (view full) ---

54.Sh DESCRIPTION
55The current
56.Em lpt
57driver is the port of the original lpt driver to the
58.Xr ppbus 4
59system.
60.Pp
61One purpose of this port was to allow parallel port sharing with other
29.\"
30.Dd February 14, 1999
31.Dt LPT 4
32.Os FreeBSD
33.Sh NAME
34.Nm lpt
35.Nd
36Generic printer device driver

--- 17 unchanged lines hidden (view full) ---

54.Sh DESCRIPTION
55The current
56.Em lpt
57driver is the port of the original lpt driver to the
58.Xr ppbus 4
59system.
60.Pp
61One purpose of this port was to allow parallel port sharing with other
62parallel devices. Secondly, inb()/outb() calls have been replaced by ppbus
63function calls. lpt is now arch-independent thanks to the ppbus interface. See
62parallel devices.
63Secondly, inb()/outb() calls have been replaced by ppbus
64function calls.
65lpt is now arch-independent thanks to the ppbus interface.
66See
64.Xr ppbus 4
65for more info about the ppbus system.
66.Pp
67The parallel port bus is allocated by lpt when the printer device is opened
68and released only when the transfer is completed: either when the device
69is closed or when the entire buffer is sent in interrupt driven mode.
70.Pp
71The driver can be configured to be either interrupt-driven, or
72to poll the printer. Ports that are configured to be
73interrupt-driven can be switched to polled mode by using the
74.Xr lptcontrol 8
75command.
76.Pp
77Depending on your hardware, extended capabilities may be configured with the
78.Xr lptcontrol 8
67.Xr ppbus 4
68for more info about the ppbus system.
69.Pp
70The parallel port bus is allocated by lpt when the printer device is opened
71and released only when the transfer is completed: either when the device
72is closed or when the entire buffer is sent in interrupt driven mode.
73.Pp
74The driver can be configured to be either interrupt-driven, or
75to poll the printer. Ports that are configured to be
76interrupt-driven can be switched to polled mode by using the
77.Xr lptcontrol 8
78command.
79.Pp
80Depending on your hardware, extended capabilities may be configured with the
81.Xr lptcontrol 8
79command. With an ECP/ISA port, you can take advantage
82command.
83With an ECP/ISA port, you can take advantage
80of FIFO and DMA.
81.Pp
82In order to retrieve printer info from /dev/lpt0, just apply the
83.Nm cat
84of FIFO and DMA.
85.Pp
86In order to retrieve printer info from /dev/lpt0, just apply the
87.Nm cat
84command to the device. If the printer supports IEEE1284 nibble mode and has
88command to the device.
89If the printer supports IEEE1284 nibble mode and has
85data to send to the host, you'll get it.
86.Sh SEE ALSO
87.Xr ppbus 4 ,
88.Xr lptcontrol 8
89.Sh HISTORY
90This driver replaces the functionality of the lpa
91driver, which is now defunct.
92.Sh FILES

--- 13 unchanged lines hidden ---
90data to send to the host, you'll get it.
91.Sh SEE ALSO
92.Xr ppbus 4 ,
93.Xr lptcontrol 8
94.Sh HISTORY
95This driver replaces the functionality of the lpa
96driver, which is now defunct.
97.Sh FILES

--- 13 unchanged lines hidden ---