BSD 4_4 development
[unix-history] / usr / share / man / cat4 / vax / ps.0
PS(4) BSD Programmer's Manual (VAX Architecture) PS(4)
N\bNA\bAM\bME\bE
p\bps\bs - Evans and Sutherland Picture System 2 graphics device interface
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
d\bde\bev\bvi\bic\bce\be p\bps\bs0\b0 a\bat\bt u\bub\bba\ba?\b? c\bcs\bsr\br 0\b01\b17\b72\b24\b46\b60\b0 v\bve\bec\bct\bto\bor\br p\bps\bsc\bcl\blo\boc\bck\bki\bin\bnt\btr\br p\bps\bss\bsy\bys\bst\bte\bem\bmi\bin\bnt\btr\br
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The p\bps\bs driver provides access to an Evans and Sutherland Picture System 2
graphics device. Each minor device is a new PS2. When the device is
opened, its interface registers are mapped, via virtual memory, into a
user process's address space. This allows the user process very high
bandwidth to the device with no system call overhead.
DMA to and from the PS2 is not supported. All read and write system calls
will fail. All data is moved to and from the PS2 via programmed I/O us-
ing the device's interface registers.
Commands are fed to and from the driver using the following ioctl(2)s:
PSIOGETADDR Returns the virtual address through which the user
process can access the device's interface registers.
PSIOAUTOREFRESH Start auto refreshing the screen. The argument is an
address in user space where the following data re-
sides. The first longword is a _\bc_\bo_\bu_\bn_\bt of the number of
static refresh buffers. The next _\bc_\bo_\bu_\bn_\bt longwords are
the addresses in refresh memory where the refresh
buffers lie. The driver will cycle through these re-
fresh buffers displaying them one by one on the
screen.
PSIOAUTOMAP Start automatically passing the display file through
the matrix processor and into the refresh buffer. The
argument is an address in user memory where the fol-
lowing data resides. The first longword is a _\bc_\bo_\bu_\bn_\bt of
the number of display files to operate on. The next
_\bc_\bo_\bu_\bn_\bt longwords are the address of these display
files. The final longword is the address in refresh
buffer memory where transformed coordinates are to be
placed if the driver is not in double buffer mode (see
below).
PSIODOUBLEBUFFER Cause the driver to double buffer the output from the
map that is going to the refresh buffer. The argument
is again a user space address where the real arguments
are stored. The first argument is the starting ad-
dress of refresh memory where the two double buffers
are located. The second argument is the length of
each double buffer. The refresh mechanism displays
the current double buffer, in addition to its static
refresh lists, when in double buffer mode.
PSIOSINGLEREFRESH Single step the refresh process. That is, the driver
does not continually refresh the screen.
PSIOSINGLEMAP Single step the matrix process. The driver does not
automatically feed display files through the matrix
unit.
PSIOSINGLEBUFFER Turn off double buffering.
PSIOTIMEREFRESH The argument is a count of the number of refresh in-
terrupts to take before turning off the screen. This
is used to do time exposures.
PSIOWAITREFRESH Suspend the user process until a refresh interrupt has
occurred. If in TIMEREFRESH mode, suspend until count
refreshes have occurred.
PSIOSTOPREFRESH Wait for the next refresh, stop all refreshes, and
then return to user process.
PSIOWAITMAP Wait until a map done interrupt has occurred.
PSIOSTOPMAP Wait for a map done interrupt, do not restart the map,
and then return to the user.
F\bFI\bIL\bLE\bES\bS
/dev/ps
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
p\bps\bs d\bde\bev\bvi\bic\bce\be i\bin\bnt\btr\br.\b.
p\bps\bs d\bdm\bma\ba i\bin\bnt\btr\br.\b. An interrupt was received from the device. This shouldn't
happen, check your device configuration for overlapping interrupt vec-
tors.
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The p\bps\bs driver appeared in 4.2BSD.
B\bBU\bUG\bGS\bS
An invalid access (e.g., longword) to a mapped interface register can
cause the system to crash with a machine check. A user process could
possibly cause infinite interrupts hence bringing things to a crawl.
4.2 Berkeley Distribution June 5, 1993 2