1105531Stmm/*-
2105531Stmm * Copyright (c) 2002 by Thomas Moestl <tmm@FreeBSD.org>.
3105531Stmm * All rights reserved.
4105531Stmm *
5105531Stmm * Redistribution and use in source and binary forms, with or without
6105531Stmm * modification, are permitted provided that the following conditions
7105531Stmm * are met:
8105531Stmm * 1. Redistributions of source code must retain the above copyright
9105531Stmm *    notice, this list of conditions and the following disclaimer.
10105531Stmm * 2. Redistributions in binary form must reproduce the above copyright
11105531Stmm *    notice, this list of conditions and the following disclaimer in the
12105531Stmm *    documentation and/or other materials provided with the distribution.
13105531Stmm *
14105531Stmm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15105531Stmm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16105531Stmm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17105531Stmm * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
18105531Stmm * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19105531Stmm * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20105531Stmm * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21105531Stmm * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22105531Stmm * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
23105531Stmm * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24105531Stmm *
25105531Stmm * $FreeBSD$
26105531Stmm */
27105531Stmm
28105531Stmm#ifndef _MACHINE_KERNELDUMP_H_
29105531Stmm#define	_MACHINE_KERNELDUMP_H_
30105531Stmm
31105531Stmmstruct sparc64_dump_reg {
32113238Sjake	vm_paddr_t	dr_pa;
33105531Stmm	vm_offset_t	dr_size;
34105531Stmm	vm_offset_t	dr_offs;
35105531Stmm};
36105531Stmm
37105531Stmm/*
38105531Stmm * Kernel dump format for sparc64. This does not use ELF because it is of no
39105531Stmm * avail (only libkvm knows how to translate addresses properly anyway) and
40105531Stmm * would require some ugly hacks.
41105531Stmm */
42105531Stmmstruct sparc64_dump_hdr {
43105531Stmm	vm_offset_t	dh_hdr_size;
44113238Sjake	vm_paddr_t	dh_tsb_pa;
45105531Stmm	vm_size_t	dh_tsb_size;
46105531Stmm	vm_size_t	dh_tsb_mask;
47105531Stmm	int		dh_nregions;
48105531Stmm	struct sparc64_dump_reg	dh_regions[];
49105531Stmm};
50105531Stmm
51105531Stmm#endif /* _MACHINE_KERNELDUMP_H_ */
52