Technical data

lp(7D) Devices SunOS 5.5
NAME lp driver for parallel port
SYNOPSIS include <sys/bpp_io.h>
fd = open("/dev/lpn", flags);
name=lp
class=sysbus
ioaddr=0x378 interrupts=3,7;
name=lp
class=sysbus
ioaddr=0x278 interrupts=3,5;
AVAILABILITY x86
DESCRIPTION The lp driver provides the interface to the parallel ports used by printers for x86 systems.
The lp driver is implemented as aSTREAMS device. Up to three parallel ports can be
accessed by the driver. The lp driver accesses the /kernel/drv/lp.conf file for
specifications about these parallel ports. The specifications include:
name
class
ioaddr The I/O port base address for this port.
interrupts The IRQ level of the port. interrupts is analogous to intr.
For more information about lp.conf, refer to sysbus(4).
IOCTLS BPPIOC_TESTIO Test transfer readiness. This command checks to see if a read or
write transfer would succeed based on pin status. If a transfer
would succeed, 0 is returned. If a transfer would fail, 1 is
returned, and errno is set to EIO. The error status can be retrieved
using theBPPIOC_GETERR ioctl( ) call.
BPPIOC_GETERR Get last error status. The argument is a pointer to a struct
bpp_error_status. See below for a description of the elements of
this structure. This structure indicates the status of all the
appropriate status bits at the time of the most recent error condi-
tion during a read(2) or write(2) call, or the status of the bits at the
most recent BPPIOC_TESTIO ioctl(2) call. The application can
check transfer readiness without attemptinganother transfer using
the BPPIOC_TESTIO ioctl().
7D-200 modified 9 Dec 1993