1*95e1ffb1Schristos /* $NetBSD: kcore.h,v 1.5 2005/12/11 12:18:43 christos Exp $ */ 25804d3f6Sws 36451b033Sbriggs /* 46451b033Sbriggs * Copyright (c) 2005 Wasabi Systems, Inc. 55804d3f6Sws * All rights reserved. 65804d3f6Sws * 76451b033Sbriggs * Written by Allen Briggs for Wasabi Systems, Inc. 86451b033Sbriggs * 95804d3f6Sws * Redistribution and use in source and binary forms, with or without 105804d3f6Sws * modification, are permitted provided that the following conditions 115804d3f6Sws * are met: 125804d3f6Sws * 1. Redistributions of source code must retain the above copyright 135804d3f6Sws * notice, this list of conditions and the following disclaimer. 145804d3f6Sws * 2. Redistributions in binary form must reproduce the above copyright 155804d3f6Sws * notice, this list of conditions and the following disclaimer in the 165804d3f6Sws * documentation and/or other materials provided with the distribution. 175804d3f6Sws * 3. All advertising materials mentioning features or use of this software 185804d3f6Sws * must display the following acknowledgement: 196451b033Sbriggs * This product includes software developed for the NetBSD Project by 206451b033Sbriggs * Wasabi Systems, Inc. 216451b033Sbriggs * 4. The name of Wasabi Systems, Inc. may not be used to endorse 226451b033Sbriggs * or promote products derived from this software without specific prior 236451b033Sbriggs * written permission. 245804d3f6Sws * 256451b033Sbriggs * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 266451b033Sbriggs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 276451b033Sbriggs * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 286451b033Sbriggs * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 296451b033Sbriggs * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 306451b033Sbriggs * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 316451b033Sbriggs * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 326451b033Sbriggs * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 336451b033Sbriggs * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 346451b033Sbriggs * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 356451b033Sbriggs * POSSIBILITY OF SUCH DAMAGE. 365804d3f6Sws */ 375804d3f6Sws 38c89494d0Smatt #ifndef _POWERPC_KCORE_H_ 39c89494d0Smatt #define _POWERPC_KCORE_H_ 405804d3f6Sws 416451b033Sbriggs /* 426451b033Sbriggs * Support for 4xx/8xx/82xx/etc, will probably make this a union. 436451b033Sbriggs * The pad/pvr should be kept in the same place, though, so we can 446451b033Sbriggs * tell the difference. 456451b033Sbriggs */ 465804d3f6Sws typedef struct cpu_kcore_hdr { 476451b033Sbriggs uint32_t pad; /* Pad for 64-bit register_t */ 486451b033Sbriggs uint32_t pvr; /* PVR */ 496451b033Sbriggs register_t sdr1; /* SDR1 */ 506451b033Sbriggs register_t sr[16]; /* Segment registers */ 516451b033Sbriggs register_t dbatl[8]; /* DBATL[] */ 526451b033Sbriggs register_t dbatu[8]; /* DBATU[] */ 536451b033Sbriggs register_t ibatl[8]; /* IBATL[] */ 546451b033Sbriggs register_t ibatu[8]; /* IBATU[] */ 556451b033Sbriggs register_t pad_reg; /* Pad for 32-bit systems */ 565804d3f6Sws } cpu_kcore_hdr_t; 575804d3f6Sws 58c89494d0Smatt #endif /* _POWERPC_KCORE_H_ */ 59