Home | History | Annotate | Line # | Download | only in ic
smc90cx6reg.h revision 1.5
      1  1.5      is /*	$NetBSD: smc90cx6reg.h,v 1.5 1998/09/02 22:32:08 is Exp $ */
      2  1.2  chopps 
      3  1.1  chopps /*
      4  1.5      is  * Copyright (c) 1994, 1995, 1998 Ignatios Souvatzis
      5  1.1  chopps  * All rights reserved.
      6  1.1  chopps  *
      7  1.1  chopps  * Redistribution and use in source and binary forms, with or without
      8  1.1  chopps  * modification, are permitted provided that the following conditions
      9  1.1  chopps  * are met:
     10  1.1  chopps  * 1. Redistributions of source code must retain the above copyright
     11  1.1  chopps  *    notice, this list of conditions and the following disclaimer.
     12  1.1  chopps  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  chopps  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  chopps  *    documentation and/or other materials provided with the distribution.
     15  1.1  chopps  * 3. All advertising materials mentioning features or use of this software
     16  1.1  chopps  *    must display the following acknowledgement:
     17  1.2  chopps  *      This product includes software developed by Ignatios Souvatzis
     18  1.2  chopps  *      for the NetBSD project.
     19  1.2  chopps  * 4. The name of the author may not be used to endorse or promote products
     20  1.2  chopps  *    derived from this software without specific prior written permission
     21  1.1  chopps  *
     22  1.2  chopps  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23  1.2  chopps  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24  1.2  chopps  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25  1.2  chopps  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     26  1.2  chopps  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27  1.2  chopps  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28  1.2  chopps  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29  1.2  chopps  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30  1.2  chopps  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     31  1.2  chopps  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32  1.1  chopps  */
     33  1.1  chopps 
     34  1.1  chopps /*
     35  1.5      is  * chip offsets and bits for the SMC Arcnet chipset.
     36  1.1  chopps  */
     37  1.1  chopps 
     38  1.5      is #ifndef _SMC90CXVAR_H_
     39  1.5      is #define _SMC90CXVAR_H_
     40  1.1  chopps 
     41  1.5      is /* register offsets */
     42  1.5      is 
     43  1.5      is #define BAHSTAT	0
     44  1.5      is #define	BAHCMD	1
     45  1.5      is 
     46  1.5      is /* memory offsets */
     47  1.5      is #define BAHCHECKBYTE 0
     48  1.5      is #define BAHMACOFF 1
     49  1.5      is 
     50  1.5      is #define BAH_TXDIS	0x01
     51  1.5      is #define BAH_RXDIS	0x02
     52  1.5      is #define BAH_TX(x)	(0x03 | ((x)<<3))
     53  1.5      is #define BAH_RX(x)	(0x04 | ((x)<<3))
     54  1.5      is #define BAH_RXBC(x)	(0x84 | ((x)<<3))
     55  1.5      is 
     56  1.5      is #define BAH_CONF(x)  	(0x05 | (x))
     57  1.3  chopps #define CLR_POR		0x08
     58  1.3  chopps #define CLR_RECONFIG	0x10
     59  1.1  chopps 
     60  1.5      is #define BAH_CLR(x)	(0x06 | (x))
     61  1.3  chopps #define CONF_LONG	0x08
     62  1.3  chopps #define CONF_SHORT	0x00
     63  1.1  chopps 
     64  1.1  chopps /*
     65  1.1  chopps  * These are not in the COM90C65 docs. Derived from the arcnet.asm
     66  1.1  chopps  * packet driver by Philippe Prindeville and Russel Nelson.
     67  1.1  chopps  */
     68  1.1  chopps 
     69  1.5      is #define BAH_LDTST(x)	(0x07 | (x))
     70  1.3  chopps #define TEST_ON		0x08
     71  1.3  chopps #define TEST_OFF	0x00
     72  1.1  chopps 
     73  1.5      is #define BAH_TA		1	/* int mask also */
     74  1.5      is #define BAH_TMA		2
     75  1.5      is #define BAH_RECON	4	/* int mask also */
     76  1.5      is #define BAH_TEST	8	/* not in the COM90C65 docs (see above) */
     77  1.5      is #define BAH_POR		0x10	/* non maskable interrupt */
     78  1.5      is #define BAH_ET1		0x20	/* timeout value bits, normally 1 */
     79  1.5      is #define BAH_ET2		0x40	/* timeout value bits, normally 1 */
     80  1.5      is #define BAH_RI		0x80	/* int mask also */
     81  1.5      is 
     82  1.5      is #endif
     83