xref: /netbsd-src/sys/dev/mvme/if_iereg.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: if_iereg.h,v 1.2 2008/04/28 20:23:54 martin Exp $	*/
208bde987Sscw 
308bde987Sscw /*-
408bde987Sscw  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
508bde987Sscw  * All rights reserved.
608bde987Sscw  *
708bde987Sscw  * This code is derived from software contributed to The NetBSD Foundation
808bde987Sscw  * by Steve C. Woodford.
908bde987Sscw  *
1008bde987Sscw  * Redistribution and use in source and binary forms, with or without
1108bde987Sscw  * modification, are permitted provided that the following conditions
1208bde987Sscw  * are met:
1308bde987Sscw  * 1. Redistributions of source code must retain the above copyright
1408bde987Sscw  *    notice, this list of conditions and the following disclaimer.
1508bde987Sscw  * 2. Redistributions in binary form must reproduce the above copyright
1608bde987Sscw  *    notice, this list of conditions and the following disclaimer in the
1708bde987Sscw  *    documentation and/or other materials provided with the distribution.
1808bde987Sscw  *
1908bde987Sscw  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2008bde987Sscw  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2108bde987Sscw  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2208bde987Sscw  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2308bde987Sscw  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2408bde987Sscw  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2508bde987Sscw  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2608bde987Sscw  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2708bde987Sscw  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2808bde987Sscw  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2908bde987Sscw  * POSSIBILITY OF SUCH DAMAGE.
3008bde987Sscw  */
3108bde987Sscw 
3208bde987Sscw /*
3308bde987Sscw  * Definitions for the MPU Port and Channel Attention registers
3408bde987Sscw  * of the onboard i82596 Ethernet controller on MVME68K and MVME88K boards.
3508bde987Sscw  */
3608bde987Sscw #ifndef __mvme_if_iereg_h
3708bde987Sscw #define __mvme_if_iereg_h
3808bde987Sscw 
3908bde987Sscw #define	IE_MPUREG_UPPER	0x00	/* Upper Command Word */
4008bde987Sscw #define IE_MPUREG_LOWER	0x02	/* Lower Command Word */
4108bde987Sscw #define IE_MPUREG_CA	0x04	/* Channel Attention. Dummy Rd or Wr */
4208bde987Sscw 
4308bde987Sscw #define IE_MPUREG_SIZE	0x08
4408bde987Sscw 
4508bde987Sscw /*
4608bde987Sscw  * BUS_USE -> Interrupt Active High (edge-triggered),
4708bde987Sscw  *            Lock function enabled,
4808bde987Sscw  *            Internal bus throttle timer triggering,
4908bde987Sscw  *            82586 operating mode.
5008bde987Sscw  */
5108bde987Sscw #define IE_BUS_USE	(IE_SYSBUS_596_INTHIGH	| \
5208bde987Sscw 			 IE_SYSBUS_596_LOCK	| \
5308bde987Sscw 			 IE_SYSBUS_596_TRGINT	| \
5408bde987Sscw 			 IE_SYSBUS_596_82586	| \
5508bde987Sscw 			 IE_SYSBUS_596_RSVD_SET)
5608bde987Sscw 
5708bde987Sscw #endif /* __mvme_if_iereg_h */
58