150276Speter/*- 2174993Srafan * Copyright (c) 2002 by Thomas Moestl <tmm@FreeBSD.org>. 350276Speter * All rights reserved. 450276Speter * 550276Speter * Redistribution and use in source and binary forms, with or without 650276Speter * modification, are permitted provided that the following conditions 750276Speter * are met: 850276Speter * 1. Redistributions of source code must retain the above copyright 950276Speter * notice, this list of conditions and the following disclaimer. 1050276Speter * 2. Redistributions in binary form must reproduce the above copyright 1150276Speter * notice, this list of conditions and the following disclaimer in the 1250276Speter * documentation and/or other materials provided with the distribution. 1350276Speter * 1450276Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1550276Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1650276Speter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1750276Speter * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 1850276Speter * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 1950276Speter * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2050276Speter * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 2150276Speter * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2250276Speter * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 2350276Speter * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2450276Speter * 2550276Speter * $FreeBSD: releng/10.3/sys/sparc64/include/kerneldump.h 113238 2003-04-08 06:35:09Z jake $ 2650276Speter */ 2750276Speter 2850276Speter#ifndef _MACHINE_KERNELDUMP_H_ 2950276Speter#define _MACHINE_KERNELDUMP_H_ 3050276Speter 3150276Speterstruct sparc64_dump_reg { 32166124Srafan vm_paddr_t dr_pa; 3350276Speter vm_offset_t dr_size; 3450276Speter vm_offset_t dr_offs; 3550276Speter}; 3650276Speter 3750276Speter/* 3850276Speter * Kernel dump format for sparc64. This does not use ELF because it is of no 3950276Speter * avail (only libkvm knows how to translate addresses properly anyway) and 4050276Speter * would require some ugly hacks. 4150276Speter */ 4250276Speterstruct sparc64_dump_hdr { 4350276Speter vm_offset_t dh_hdr_size; 44174993Srafan vm_paddr_t dh_tsb_pa; 4550276Speter vm_size_t dh_tsb_size; 4676726Speter vm_size_t dh_tsb_mask; 4776726Speter int dh_nregions; 4850276Speter struct sparc64_dump_reg dh_regions[]; 4976726Speter}; 5050276Speter 5176726Speter#endif /* _MACHINE_KERNELDUMP_H_ */ 5250276Speter