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