LPT (4) NetBSD Programmer's Manual LPT (4)


generic printer device driver


lpt* at ppbus?
options LPT_DEBUG


The lpt driver is the port of the lpt driver to the ppbus(4) system.

One purpose of this port was to allow parallel port sharing with other parallel devices. Secondly, inb()/outb() calls have been replaced by ppbus function calls. lpt is now arch-independent thanks to the ppbus interface. See ppbus(4) for more information about the parallel port bus system.

The parallel port bus is reserved by lpt when the printer device is opened and released when the device is closed.

Ports can be configured to use DMA, IEEE negotiations, and IEEE compliant transfer modes by using the lptctl(8) command, with modes depending on the hardware available.

Minor bit

The minor bit selects some device features:

Minor Bit Function
128 Do no use interrupts (polled accesses)
64 Do not initialize printer when opened
32 Automatic LF on CR

mknod(8) can be used to create such devices if necessary (see BUGS).


interrupt-driven ports (minor number 0)
polled ports (minor number 128)


atppc(4), ppbus(4), lptctl(8), mknod(8)


This driver is derived from drivers which appear in FreeBSD and NetBSD. The FreeBSD driver is used for ppbus usage while the NetBSD driver's behavior is emulated as much as possible for compatibility.


This manual page was based on the FreeBSD lpt(4) manual page. The information has been updated for NetBSD's port by Gary Thorpe.


December 24, 2003