PS(4) —
NAME
ps − PostScript printer
SYNOPSIS
For the IBM RT PC: device ps0 at iocc0 csr 0xf0000278 priority 7
For the IBM 6152 Academic System: device ps0 at iocc0 csr 0xf0000278 priority 7
device ps1 at iocc0 csr 0xf000027C priority 7
device ps2 at iocc0 csr 0xf0000378 priority 7
device ps3 at iocc0 csr 0xf000037C priority 7
DESCRIPTION
Ps provides the interface to the IBM 4216 Personal Pageprinter adapter. Text is transmitted to the printer as either a plain text PostScript data stream (WRITENORMAL mode), or as discrete packets of up to 1024 bytes of data (WRITEPACKETS mode). Responses may be received from the PostScript interpreter by reading data from the printer. Data to be read is buffered by the driver. Data may be read as plain text (READNORMAL mode), or as packets containing up to 1024 bytes of data (READPACKETS mode). The ps device may only be opened exclusively for writing, regardless of the opening mode used in the program. Attempts to open a ps device for writing which is already open will ALWAYS return EBUSY. The device is released on closing. Other than exclusive access, all other support for multi-user access to the 4216 printer is handled in the lp spooler lpr.
Note that a line printer and the PostScript printer should NOT share the same address.
NOTES
Several ioctls apply to the device, and have the form:
#include <sys/psioctl.h>
ioctl(filedes, code, arg); int ∗arg;
The applicable codes are:
PS_RESET
Reset the PostScript adapter. Then causes the adapter to enter the IPL sequence, for loading the PostScript interpreter. This ioctl is specifically for programs which load the PostScript interpreter into the adapter card, i.e., ldps(8).
PS_WRITENORMAL, PS_WRITEPACKETS
Cause the driver to expect that data written to the ps device is a series of ASCII characters or packets, respectively.
PS_READNORMAL, PS_READPACKETS
Cause the driver to return data either as a series of ASCII characters or as packets containing up to 1024 bytes of data, respectively.
FILES
/dev/ps0
SEE ALSO
bits4216, showps(1), ldps(8), ldfnt(8), pstext(8R), pps(8R)
DIAGNOSTICS
None
BUGS
The driver will not accept data written more than 1024 bytes at a time. Messages from the printer may be from a previous job.
PRPQs 5799-WZQ/5799-PFF: IBM/4.3 — December 1988