lcareg.h revision 1.2
1/*	$NetBSD: lcareg.h,v 1.2 1996/04/23 14:03:46 cgd Exp $	*/
2
3/*
4 * Copyright (c) 1995 Carnegie-Mellon University.
5 * All rights reserved.
6 *
7 * Author: Jeffrey Hsu
8 *
9 * Permission to use, copy, modify and distribute this software and
10 * its documentation is hereby granted, provided that both the copyright
11 * notice and this permission notice appear in all copies of the
12 * software, derivative works or modified versions, and any portions
13 * thereof, and that both notices appear in supporting documentation.
14 *
15 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
18 *
19 * Carnegie Mellon requests users of this software to return to
20 *
21 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
22 *  School of Computer Science
23 *  Carnegie Mellon University
24 *  Pittsburgh PA 15213-3890
25 *
26 * any improvements or extensions that they make and grant Carnegie the
27 * rights to redistribute these changes.
28 */
29
30/*
31 * 21066 chip registers
32 */
33
34#define REGVAL(r)	(*(int32_t *)phystok0seg(r))
35
36/*
37 * Base addresses
38 */
39#define LCA_IOC_BASE	0x180000000L		/* LCA IOC Regs */
40#define LCA_PCI_SIO	0x1c0000000L		/* PCI Sp. I/O Space */
41#define LCA_PCI_CONF	0x1e0000000L		/* PCI Conf. Space */
42#define LCA_PCI_SPARSE	0x200000000L		/* PCI Sparse Space */
43#define LCA_PCI_DENSE	0x300000000L		/* PCI Dense Space */
44
45#define LCA_IOC_HAE	LCA_IOC_BASE		/* Host Address Extension */
46
47#define LCA_IOC_CONF	(LCA_IOC_BASE + 0x020)	/* Configuration Cycle Type */
48#define LCA_IOC_STAT0	(LCA_IOC_BASE + 0x040)	/* Status 0 */
49#define LCA_IOC_STAT1	(LCA_IOC_BASE + 0x060)	/* Status 1 */
50
51#define LCA_IOC_W_BASE0	(LCA_IOC_BASE + 0x100)	/* Window Base */
52#define LCA_IOC_W_MASK0	(LCA_IOC_BASE + 0x140)	/* Window Mask */
53#define LCA_IOC_W_T_BASE0 (LCA_IOC_BASE + 0x180) /* Translated Base */
54
55#define LCA_IOC_W_BASE1	(LCA_IOC_BASE + 0x120)	/* Window Base */
56#define LCA_IOC_W_MASK1	(LCA_IOC_BASE + 0x160)	/* Window Mask */
57#define LCA_IOC_W_T_BASE1 (LCA_IOC_BASE + 0x1a0) /* Translated Base */
58