1995-11-23 05:33:17 +03:00
|
|
|
/* $NetBSD: lcareg.h,v 1.1 1995/11/23 02:37:44 cgd Exp $ */
|
1995-06-28 05:24:50 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1995 Carnegie-Mellon University.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
1995-11-23 05:33:17 +03:00
|
|
|
* Author: Jeffrey Hsu
|
1995-06-28 05:24:50 +04:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify and distribute this software and
|
|
|
|
* its documentation is hereby granted, provided that both the copyright
|
|
|
|
* notice and this permission notice appear in all copies of the
|
|
|
|
* software, derivative works or modified versions, and any portions
|
|
|
|
* thereof, and that both notices appear in supporting documentation.
|
|
|
|
*
|
|
|
|
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
|
|
|
|
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
|
|
|
|
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
|
|
|
|
*
|
|
|
|
* Carnegie Mellon requests users of this software to return to
|
|
|
|
*
|
|
|
|
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
|
|
|
|
* School of Computer Science
|
|
|
|
* Carnegie Mellon University
|
|
|
|
* Pittsburgh PA 15213-3890
|
|
|
|
*
|
|
|
|
* any improvements or extensions that they make and grant Carnegie the
|
|
|
|
* rights to redistribute these changes.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1995-11-23 05:33:17 +03:00
|
|
|
* 21066 chip registers
|
1995-06-28 05:24:50 +04:00
|
|
|
*/
|
|
|
|
|
1995-11-23 05:33:17 +03:00
|
|
|
#define REGVAL(r) (*(int32_t *)phystok0seg(r))
|
1995-06-28 05:24:50 +04:00
|
|
|
|
|
|
|
/*
|
1995-11-23 05:33:17 +03:00
|
|
|
* Base addresses
|
1995-06-28 05:24:50 +04:00
|
|
|
*/
|
1995-11-23 05:33:17 +03:00
|
|
|
#define LCA_IOC_BASE 0x180000000L /* LCA IOC Regs */
|
|
|
|
#define LCA_PCI_SIO 0x1c0000000L /* PCI Sp. I/O Space */
|
|
|
|
#define LCA_PCI_CONF 0x1e0000000L /* PCI Conf. Space */
|
|
|
|
#define LCA_PCI_SPARSE 0x200000000L /* PCI Sparse Space */
|
|
|
|
#define LCA_PCI_DENSE 0x300000000L /* PCI Dense Space */
|
|
|
|
|
|
|
|
#define LCA_IOC_HAE LCA_IOC_BASE /* Host Address Extension */
|
|
|
|
|
|
|
|
#define LCA_IOC_CONF (LCA_IOC_BASE + 0x020) /* Configuration Cycle Type */
|
|
|
|
|
|
|
|
#define LCA_IOC_W_BASE0 (LCA_IOC_BASE + 0x100) /* Window Base */
|
|
|
|
#define LCA_IOC_W_MASK0 (LCA_IOC_BASE + 0x140) /* Window Mask */
|
|
|
|
#define LCA_IOC_W_T_BASE0 (LCA_IOC_BASE + 0x180) /* Translated Base */
|
1995-06-28 05:24:50 +04:00
|
|
|
|
1995-11-23 05:33:17 +03:00
|
|
|
#define LCA_IOC_W_BASE1 (LCA_IOC_BASE + 0x120) /* Window Base */
|
|
|
|
#define LCA_IOC_W_MASK1 (LCA_IOC_BASE + 0x160) /* Window Mask */
|
|
|
|
#define LCA_IOC_W_T_BASE1 (LCA_IOC_BASE + 0x1a0) /* Translated Base */
|