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

📄 va.4

📁 早期freebsd实现
💻 4
字号:
.\" Copyright (c) 1980, 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..\".\"     @(#)va.4	8.1 (Berkeley) 6/5/93.\".Dd June 5, 1993.Dt VA 4 vax.Os BSD 4.Sh NAME.Nm va.Nd Benson-Varian interface.Sh SYNOPSIS.Cd "controller va0 at uba0 csr 0164000 vector vaintr".Cd "disk vz0 at va0 drive 0".Sh DESCRIPTION.Bf -symbolic(NOTE: the configuration description, while counter-intuitive,is actually as shown above.).Ef.PpThe Benson-Varian printer/plotter in normally used with the line printersystem.This description is designed for those who wish to drive the Benson-Variandirectly..PpIn print mode, the Benson-Varian uses a modified.Tn ASCIIcharacter set.Most control characters print various non-.Tn ASCIIgraphics such as daggers,sigmas, copyright symbols, etc.Only.Tn LFand.Tn FFare used as format effectors..Tn LFacts as a newline,advancing to the beginning of the next line, and.Tn FFadvances to the top ofthe next page..PpIn plot mode, the Benson-Varian prints one raster line at a time.An entire raster line of bits (2112 bits = 264 bytes) is sent, andthen the Benson-Varian advances to the next raster line..Pp.Em Note :The Benson-Varian must be sent an even number of bytes.If an odd number is sent, the last byte will be lost.Nulls can be used in print mode to pad to an even number of bytes..PpTo use the Benson-Varian yourself,you must realize that you cannot open the device,.Pa /dev/va0if there is an daemon active.You can see if there is an active daemon by doing a.Xr lpq 1and seeing if there are any files being printed.Printing should be turned off using.Xr lpc 8 ..PpTo set the Benson-Varian into plot mode include the file.Aq Pa sys/vcmd.hand use the following.Xr ioctl 2call.Bd -literal -offset indentioctl(fileno(va), VSETSTATE, plotmd);.Ed.Ppwhere.Ar plotmdis defined to be.Bd -literal -offset indentint plotmd[] = { VPLOT, 0, 0 };.Ed.Ppand.Ar vais the result of a call to.Xr fopenon stdio.When you finish using the Benson-Varian in plot mode you should advance toa new pageby sending it a.Tn FFafter putting it back into print mode, i.e. by.Bd -literal -offset indentint prtmd[] = { VPRINT, 0, 0 };\&...fflush(va);ioctl(fileno(va), VSETSTATE, prtmd);write(fileno(va), "\ef\e0", 2);.Ed.Sh FILES.Bl -tag -width /dev/va0xx -compact.It Pa /dev/va0.El.Sh DIAGNOSTICSThe following error numbers are significant at thetime the device is opened..Bl -tag -width ENXIOxx.It Bq Er ENXIOThe device is already in use..It Bq Er EIOThe device is offline..El.PpThe following message may be printed on the console..Pp.Bl -diag.It va%d: npr timeout.The device was not able to get data fromthe.Tn UNIBUSwithin the timeout period, most likely because some otherdevice was hogging the bus.  (But see.Sx BUGSbelow)..El.Sh SEE ALSO.Xr vfont 5 ,.Xr lpr 1 ,.Xr lpd 8 ,.Xr vp 4.Sh HISTORYThe.Nmdriver appeared in.Bx 4.0 ..Sh BUGSThe 1's (one's) and l's (lower-case el's) in the Benson-Varian'sstandard character set look very similar; caution is advised..PpThe interface hardware is rumored to have problems which canplay havoc with the.Tn UNIBUS .We have intermittent minor problems on the.Tn UNIBUSwhere our.Xr valives, but haven't ever been able to pin them downcompletely.

⌨️ 快捷键说明

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