Amiga Unix — 68040 · 68060

Manual pages › Amiga-specific devices (7A)

par(7A)

Amiga parallel port

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

/dev/par - Amiga parallel port

#include <sys/types.h>
#include <sys/par.h>

/dev/par is a special file which allows access to the Amiga parallel port. This port is a superset of a Centronics standard printer port, but this driver does not currently support anything other than normal Centronics printer usage (i.e., input is not supported). The device must be opened with O_WRONLY mode.

This is a completely "raw" interface; absolutely no translation of data is done during I/O. The BUSY, SEL, POUT and ACK input status lines are normally used for handshaking on output; the first three can be individually set to be ignored.

The parallel device supports ioctl(2) calls of the form:

ioctl(fd, command, arg)
int arg;

The value of command determines the action taken:

Sets the bits which are used for handshaking. This setting stays in effect even across closes and reopens of the device. arg contains the logical or of any of the following: PC_SEL,PC_POUT,PC_BUSY. A bit which is zero causes the corresponding handshake line to be ignored; lines which are not ignored must be in their "ready" state for any output to occur.

/dev/par - special file for accessing parallel port

open(2), ioctl(2).