ps.4
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 4 代码 · 共 108 行
4
108 行
.\" SCCSID: @(#)ps.4 8.1 9/11/90.TH ps 4 VAX "" Unsupported.SH Nameps \- Evans and Sutherland Picture System 2 graphics device interface.SH Syntax.B "device ps0 at uba? csr 0172460 vector psintr".SH DescriptionThe.PN psdriver provides accessto an Evans andSutherland 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 devicewith no system call overhead..PPDMA to and from the PS2 is not supported. All read and writesystem calls will fail.All data is moved to and from the PS2 via programmed I/O usingthe device's interface registers..PPCommands are fed to and from the driver using the following ioctls:.TP 5PSIOGETADDRReturns the virtual address through which the user process can accessthe device's interface registers..TPPSIOAUTOREFRESHStart auto refreshing the screen.The argument is an address in user space where the following data resides.The first longword is a.I countof the number of static refresh buffers.The next.I countlongwords are the addresses in refresh memory wherethe refresh buffers lie.The driver will cycle thru these refresh buffers displaying them one by oneon the screen..TPPSIOAUTOMAPStart automatically passing the display file thru the matrix processor andinto the refresh buffer.The argument is an address in user memory where the following data resides.The first longword is a.I countof the number of display files to operate on.The next.I countlongwords are the address of these display files.The final longword is the address in refresh buffer memory where transformedcoordinates are to be placed if the driver is not in double buffer mode (seebelow)..TPPSIODOUBLEBUFFERCause the driver to double buffer the output from the map thatis 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 address of refresh memory where the twodouble buffers are located.The second argument is the length of each double buffer.The refresh mechanism displays the current double buffer, in additionto its static refresh lists, when in double buffer mode..TPPSIOSINGLEREFRESHSingle step the refresh process. That is, the driver does not continuallyrefresh the screen..TPPSIOSINGLEMAPSingle step the matrix process.The driver does not automatically feed display files thru the matrix unit..TPPSIOSINGLEBUFFERTurn off double buffering..TPPSIOTIMEREFRESHThe argument is a count of the number of refresh interrupts to takebefore turning off the screen. This is used to do time exposures..TPPSIOWAITREFRESHSuspend the user process until a refresh interrupt has occurred.If in TIMEREFRESH mode, suspend until count refreshes have occurred..TPPSIOSTOPREFRESHWait for the next refresh, stop all refreshes, and then return to user process..TPPSIOWAITMAPWait until a map done interrupt has occurred..TPPSIOSTOPMAPWait for a map done interrupt, do not restart the map, and thenreturn to the user..SH RestrictionsAn invalid access (for example, longword) to a mapped interface registercan cause the system to crash with a machine check..SH Diagnostics.BR "ps device intr" ..br.BR "ps dma intr" ..brAn interrupt was received from the device. This shouldn't happen,check your device configuration for overlapping interrupt vectors..SH Files.PN /dev/ps
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?