Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ par(7A) — Amiga System V Release 4 Version 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

ioctl(2)

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

open(2), ioctl(2). 

Amiga Unix  —  Last change:

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