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