Technical data

SunOS 5.5 Devices lp(7D)
Error Pins Structure This structure and symbols are defined in the include file <sys/bpp_io.h>:
struct bpp_error_status {
char timeout_occurred; /Not use /
char bus_error; /Not use /
u_char pin_status; /Status of pins which could
cause an error /
};
/Values for pin_status field /
#define BPP_ERR_ERR 0x01 /Error pin active /
#define BPP_SLCT_ERR 0x02 /Select pin active /
#define BPP_PE_ERR 0x04 /Paper empty pin active /
Note: Other pin statuses are defined in <sys/bpp_io.h>, butBPP_ERR_ERR,
BPP_SLCT_ERR and BPP_PE_ERR are the only ones valid for the x86 lp driver.
ERRORS EIO A BPPIOC_TESTIO ioctl() call is attempted while a condition exists that
would prevent a transfer (such as a peripheral error).
EINVAL An ioctl() is attempted with an invalid value in the command argument.
FILES /kernel/drv/lp.conf
configuration file for lp driver. For a description of each field, refer to
sysbus(4).
SEE ALSO sysbus(4), streamio(7I)
DIAGNOSTICS "lp_attach: cannot add intr."
An invalid intr= or interrupts= property has been specified in the
/kernel/drv/lp.conf file.
NOTES A read operation on a bi-directional parallel port is not supported.
modified 9 Dec 1993 7D-201