1999-02-17 02:34:10 +03:00
|
|
|
/* $NetBSD: smc90cx6reg.h,v 1.7 1999/02/16 23:34:13 is Exp $ */
|
1995-03-01 14:34:02 +03:00
|
|
|
|
1999-02-17 01:46:55 +03:00
|
|
|
/*-
|
1999-02-17 02:34:10 +03:00
|
|
|
* Copyright (c) 1994, 1995, 1998 The NetBSD Foundation, Inc.
|
1995-03-01 01:03:59 +03:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
1999-02-17 01:46:55 +03:00
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by Ignatios Souvatzis.
|
|
|
|
*
|
1995-03-01 01:03:59 +03:00
|
|
|
* 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:
|
1999-02-17 01:46:55 +03:00
|
|
|
* This product includes software developed by the NetBSD
|
|
|
|
* Foundation, Inc. and its contributors.
|
|
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
1995-03-01 01:03:59 +03:00
|
|
|
*
|
1999-02-17 01:46:55 +03:00
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. 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 FOUNDATION 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.
|
1995-03-01 01:03:59 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1998-09-03 02:32:06 +04:00
|
|
|
* chip offsets and bits for the SMC Arcnet chipset.
|
1995-03-01 01:03:59 +03:00
|
|
|
*/
|
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#ifndef _SMC90CXVAR_H_
|
|
|
|
#define _SMC90CXVAR_H_
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
/* register offsets */
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAHSTAT 0
|
|
|
|
#define BAHCMD 1
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
/* memory offsets */
|
|
|
|
#define BAHCHECKBYTE 0
|
|
|
|
#define BAHMACOFF 1
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAH_TXDIS 0x01
|
|
|
|
#define BAH_RXDIS 0x02
|
|
|
|
#define BAH_TX(x) (0x03 | ((x)<<3))
|
|
|
|
#define BAH_RX(x) (0x04 | ((x)<<3))
|
|
|
|
#define BAH_RXBC(x) (0x84 | ((x)<<3))
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAH_CONF(x) (0x05 | (x))
|
1995-03-02 12:12:27 +03:00
|
|
|
#define CLR_POR 0x08
|
|
|
|
#define CLR_RECONFIG 0x10
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAH_CLR(x) (0x06 | (x))
|
1995-03-02 12:12:27 +03:00
|
|
|
#define CONF_LONG 0x08
|
|
|
|
#define CONF_SHORT 0x00
|
1995-03-01 01:03:59 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These are not in the COM90C65 docs. Derived from the arcnet.asm
|
|
|
|
* packet driver by Philippe Prindeville and Russel Nelson.
|
|
|
|
*/
|
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAH_LDTST(x) (0x07 | (x))
|
1995-03-02 12:12:27 +03:00
|
|
|
#define TEST_ON 0x08
|
|
|
|
#define TEST_OFF 0x00
|
1995-03-01 01:03:59 +03:00
|
|
|
|
1998-09-03 02:32:06 +04:00
|
|
|
#define BAH_TA 1 /* int mask also */
|
|
|
|
#define BAH_TMA 2
|
|
|
|
#define BAH_RECON 4 /* int mask also */
|
|
|
|
#define BAH_TEST 8 /* not in the COM90C65 docs (see above) */
|
|
|
|
#define BAH_POR 0x10 /* non maskable interrupt */
|
|
|
|
#define BAH_ET1 0x20 /* timeout value bits, normally 1 */
|
|
|
|
#define BAH_ET2 0x40 /* timeout value bits, normally 1 */
|
|
|
|
#define BAH_RI 0x80 /* int mask also */
|
|
|
|
|
|
|
|
#endif
|