Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ lp1x7(7) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

lp(1)

stty(1)

lpadmin(1M)

ioctl(2)

terminfo(4)

ldterm(7)

mvme187(7)

mvme167(7)

termio(7)

termios(7)

lp1x7(7)  —  SPECIAL FILES AND DEVICES

NAME

lp1x7 − line printer device driver

DESCRIPTION

lp1x7 provides an interface to any of the standard Printronix- or Centronics-type parallel line printers using the parallel port on the MVME187, MVME167, and MVME197 CPU boards. 

Printers under System V Release 4 must appear as write-only terminals and are configured using a terminal type in terminfo(4).  The lpadmin(1M) command is used to configure the printer. 

If printing to the raw device, stty(1) settings can be changed, altering the output.  If printing using the lp(1) subsystem, the STREAMS module ldterm will be pushed onto the stream automatically and will handle all canonical processing. 

The ioctl(2) system calls available are a subset of those available to terminals and are discussed in depth in the termio(7) and termios(7) manpages.  Because printers appear as write-only terminals, modifying the input flags for any of these ioctls has no effect on the driver.  A list of the supported calls and a brief description follows. 

EUC_MSAVE, EUC_MREST, EUC_IXLOFF, EUC_IXLON, EUC_OXLOFF, EUC_OXLON
These ioctls are for international character handling and will be utilized in the future.  They are simply acknowledged.  For more information about the proper handling of these ioctls, refer to the STREAMS Programming Guide. 

TCGETS
The argument is a pointer to a termios structure.  The current printer parameters are retrieved and stored in that structure. 

TCSETS
The argument is a pointer to a termios structure.  The current printer parameters are set from the values stored in that structure.  The change is immediate. 

TCSETSW
The argument is a pointer to a termios structure.  The current printer parameters are set from the values stored in that structure.  The change occurs after all characters queued for output have been transmitted.  This form should be used when changing parameters that affect output. 

TCSETSF
The argument is a pointer to a termios structure.  The current terminal parameters are set from the values stored in that structure.  The change occurs after all characters queued for output have been transmitted; all characters queued for input are discarded and the change occurs.  Because there are no input characters from a printer, this command has the same effect as the TCSETSW command. 

TCGETA
The argument is a pointer to a termio structure.  The current terminal parameters are retrieved and parameters that can be stored in a termio structure are stored in that structure. 

TCSETA
The argument is a pointer to a termio structure.  Those terminal parameters that can be stored in a termio structure are set from the values stored in that structure.  The change is immediate. 

TCSETAW
The argument is a pointer to a termio structure.  Those terminal parameters that can be stored in a termio structure are set from the values stored in that structure.  The change occurs after all characters queued for output have been transmitted.  This form should be used when changing parameters that affect output. 

TCSETAF
The argument is a pointer to a termio structure.  Those terminal parameters that can be stored in a termio structure are set from the values stored in that structure.  The change occurs after all characters queued for output have been transmitted; all characters queued for input are discarded and the change occurs.  Because there are no input characters from a printer, this command has the same effect as the TCSETAW command. 

TCSBRK
This command is acknowledged but no action takes place.

TCFLUSH
This command is transformed by ldterm into the STREAMS message M_FLUSH.  The transformation only takes place if ldterm has been pushed onto the stream either by the lp subsystem or by the user. 

TCXONC
This command is transformed by ldterm into a STREAMS message, M_START or M_STOP, depending on which message is appropriate.  The transformation only takes place if ldterm has been pushed onto the stream either by the lp subsystem or by the user. 

For more information about the above ioctls and error messages generated by them, see termio(7). 

FILES

/dev/xedt/lp1x7_c0
on the MVME187 CPU.

/dev/printer/lp187_c0d0
on the MVME187 CPU

/dev/xedt/lp1x7_c0
on the MVME167 CPU

/dev/printer/lp167_c0d0
on the MVME167 CPU

/dev/xedt/lp1x7_c0
on the MVME197 CPU

/dev/printer/lp197_c0d0
on the MVME197 CPU

SEE ALSO

lp(1), stty(1), lpadmin(1M), ioctl(2), terminfo(4), ldterm(7), mvme187(7), mvme167(7), termio(7), termios(7). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026