⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ps.4

📁 早期freebsd实现
💻 4
字号:
.\" Copyright (c) 1983, 1991, 1993.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)ps.4	8.1 (Berkeley) 6/5/93.\".Dd June 5, 1993.Dt PS 4 vax.Os BSD 4.2.Sh NAME.Nm ps.Nd Evans and Sutherland Picture System 2 graphics device interface.Sh SYNOPSIS.Cd "device ps0 at uba? csr 0172460 vector psclockintr pssystemintr".Sh DESCRIPTIONThe.Nm psdriver provides accessto an Evans andSutherland Picture System 2 graphics device.Each minor device is a new.Tn 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..Pp.Tn DMAto and from the.Tn PS2is not supported. All read and writesystem calls will fail.All data is moved to and from the.Tn PS2via programmed.Tn I/Ousingthe device's interface registers..PpCommands are fed to and from the driver using the following.Xr ioctl 2 Ns s :.Bl -tag -width PSIOSINGLEREFRESH.It Dv PSIOGETADDRReturns the virtual address through which the user process can accessthe device's interface registers..It Dv PSIOAUTOREFRESHStart auto refreshing the screen.The argument is an address in user space where the following data resides.The first longword is a.Em countof the number of static refresh buffers.The next.Em countlongwords are the addresses in refresh memory wherethe refresh buffers lie.The driver will cycle through these refresh buffers displaying them one by oneon the screen..It Dv PSIOAUTOMAPStart automatically passing the display file through 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.Em countof the number of display files to operate on.The next.Em 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)..It Dv PSIODOUBLEBUFFERCause 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..It Dv PSIOSINGLEREFRESHSingle step the refresh process. That is, the driver does not continuallyrefresh the screen..It Dv PSIOSINGLEMAPSingle step the matrix process.The driver does not automatically feed display files through the matrix unit..It Dv PSIOSINGLEBUFFERTurn off double buffering..It Dv PSIOTIMEREFRESHThe argument is a count of the number of refresh interrupts to takebefore turning off the screen.  This is used to do time exposures..It Dv PSIOWAITREFRESHSuspend the user process until a refresh interrupt has occurred.If in.Dv TIMEREFRESHmode, suspend until count refreshes have occurred..It Dv PSIOSTOPREFRESHWait for the next refresh, stop all refreshes, and then return to user process..It Dv PSIOWAITMAPWait until a map done interrupt has occurred..It Dv PSIOSTOPMAPWait for a map done interrupt, do not restart the map, and thenreturn to the user..El.Sh FILES.Bl -tag -width /dev/psxx.It Pa /dev/ps.El.Sh DIAGNOSTICS.Bl -diag.It ps device intr..It ps dma intr.An interrupt was received from the device. This shouldn't happen,check your device configuration for overlapping interrupt vectors..El.Sh HISTORYThe.Nmdriver appeared in.Bx 4.2 ..Sh BUGSAn invalid access (e.g., longword) to a mapped interface registercan cause the system to crash with a machine check.A user process could possibly cause infinite interrupts hencebringing things to a crawl.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -