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

📄 if_cssre.h

📁 open bsd vax module -if function
💻 H
字号:
/* * Copyright (c) 1982, 1986 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. * *	@(#)if_cssreg.h	7.3 (Berkeley) 6/28/90 *//*  * DEC/CSS IMP11-A ARPAnet interface */struct cssdma {	short	wc;		/* word count */	u_short	ba;		/* bus address (low 16 bits) */	short	csr;		/* status register */	short	db;		/* data buffer*/};struct cssdevice {	struct	cssdma	css_output;	/* transmit DR11-B */	struct	cssdma	css_hole;	/* unclever gap */	struct	cssdma	css_input;	/* receive DR11-B */};#define css_icsr        css_input.csr#define css_iba         css_input.ba#define css_iwc         css_input.wc#define css_ocsr        css_output.csr#define css_oba         css_output.ba#define css_owc         css_output.wc/* * Bits Common to both input and out CSR's */#define CSS_ERR         0x8000          /* error present */#define CSS_NXM         0x4000          /* non-existant memory */#define	CSS_ATTN	0x2000		/* attention */#define	CSS_MAINT	0x1000		/* maintenance mode */#define	CSS_CYCLE	0x0100		/* force bus cycle */#define CSS_RDY         0x0080          /* ready */#define CSS_IE          0x0040          /* interrupt enable */#define	CSS_XA		0x0030		/* extended address bits */#define	CSS_CLR		0x0020		/* clear status (reset) */#define CSS_GO          0x0001          /* start operation *//* * Input Control Status Register */#define IN_EOM          0x0800          /* end-of-message recieved */#define IN_IMPNR	0x0400          /* IMP not ready */#define IN_RLE          0x0200          /* ready line error */#define IN_WEN          0x0008          /* write enable */#define IN_HRDY         0x0004          /* host ready */#define CSS_INBITS \"\20\20ERR\17NXM\16ATTN\15MAINT\14EOM\13IMPNR\12RLE\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4WE\3HRDY\2CLR\1GO"/* * Output Control Status Register */#define OUT_TXEC	0x0008          /* tx error clear */#define OUT_ENLB	0x0004          /* enable last bit */#define CSS_OUTBITS \"\20\20ERR\17NXM\16ATTN\15MAINT\11CYCLE\10RDY\7IE\6XBA17\5XBA16\4TXEC\3ENLB\2CLR\1GO"

⌨️ 快捷键说明

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