/* $NetBSD: sysioreg.h,v 1.3 2006/02/11 17:57:32 cdi Exp $ */ /* * Copyright (c) 1996 * The President and Fellows of Harvard College. All rights reserved. * Copyright (c) 1995 Paul Kranenburg * * 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: * This product includes software developed by Aaron Brown and * Harvard University. * This product includes software developed by Paul Kranenburg. * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. * */ /* * sysio is the sun5/sun4u SBUS controller/DMA/IOMMU/etc. ASIC. */ struct sysioreg { struct upareg { uint64_t upa_portid; /* UPA port ID register */ /* 1fe.0000.0000 */ uint64_t upa_config; /* UPA config register */ /* 1fe.0000.0008 */ } upa; uint64_t sys_csr; /* SYSIO control/status register */ /* 1fe.0000.0010 */ uint64_t pad0; uint64_t sys_ecccr; /* ECC control register */ /* 1fe.0000.0020 */ uint64_t reserved; /* 1fe.0000.0028 */ uint64_t sys_ue_afsr; /* Uncorrectable Error AFSR */ /* 1fe.0000.0030 */ uint64_t sys_ue_afar; /* Uncorrectable Error AFAR */ /* 1fe.0000.0038 */ uint64_t sys_ce_afsr; /* Correctable Error AFSR */ /* 1fe.0000.0040 */ uint64_t sys_ce_afar; /* Correctable Error AFAR */ /* 1fe.0000.0048 */ char pad1[0x2000 - 0x50]; struct sbusreg { uint64_t sys_sbus_cr; /* SBUS Control Register */ /* 1fe.0000.2000 */ uint64_t reserved; /* 1fe.0000.2008 */ uint64_t sys_sbus_afsr; /* SBUS AFSR */ /* 1fe.0000.2010 */ uint64_t sys_sbus_afar; /* SBUS AFAR */ /* 1fe.0000.2018 */ uint64_t sys_sbus_config0; /* SBUS Slot 0 config register */ /* 1fe.0000.2020 */ uint64_t sys_sbus_config1; /* SBUS Slot 1 config register */ /* 1fe.0000.2028 */ uint64_t sys_sbus_config2; /* SBUS Slot 2 config register */ /* 1fe.0000.2030 */ uint64_t sys_sbus_config3; /* SBUS Slot 3 config register */ /* 1fe.0000.2038 */ uint64_t sys_sbus_config13; /* Slot 13 config register