PAR(7A) — MISC REFERENCE MANUAL PAGES
NAME
/dev/par − Amiga parallel port
SYNOPSIS
#include <sys/types.h>
#include <sys/par.h>
DESCRIPTION
/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.
IOCTL COMMANDS
The parallel device supports ioctl(2) calls of the form:
ioctl(fd, command, arg)
int arg;
The value of command determines the action taken:
PIOCSETCTL
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.
FILES
/dev/par - special file for accessing parallel port
SEE ALSO
Amiga Unix — Last change: