1292407Sbr/*-
2292407Sbr * Copyright (c) 2006 Peter Wemm
3292407Sbr * All rights reserved.
4292407Sbr *
5292407Sbr * Redistribution and use in source and binary forms, with or without
6292407Sbr * modification, are permitted provided that the following conditions
7292407Sbr * are met:
8292407Sbr *
9292407Sbr * 1. Redistributions of source code must retain the above copyright
10292407Sbr *    notice, this list of conditions and the following disclaimer.
11292407Sbr * 2. Redistributions in binary form must reproduce the above copyright
12292407Sbr *    notice, this list of conditions and the following disclaimer in the
13292407Sbr *    documentation and/or other materials provided with the distribution.
14292407Sbr *
15292407Sbr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16292407Sbr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17292407Sbr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18292407Sbr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19292407Sbr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20292407Sbr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21292407Sbr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22292407Sbr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23292407Sbr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24292407Sbr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25292407Sbr *
26292407Sbr * From i386: FreeBSD:  157909 2006-04-21 04:28:43Z peter
27292407Sbr * $FreeBSD$
28292407Sbr */
29292407Sbr
30292407Sbr#ifndef	_MACHINE_MINIDUMP_H_
31292407Sbr#define	_MACHINE_MINIDUMP_H_ 1
32292407Sbr
33292407Sbr#define	MINIDUMP_MAGIC		"minidump FreeBSD/riscv"
34292407Sbr#define	MINIDUMP_VERSION	1
35292407Sbr
36292407Sbrstruct minidumphdr {
37292407Sbr	char magic[24];
38292407Sbr	uint32_t version;
39292407Sbr	uint32_t msgbufsize;
40292407Sbr	uint32_t bitmapsize;
41292407Sbr	uint32_t pmapsize;
42292407Sbr	uint64_t kernbase;
43292407Sbr	uint64_t dmapphys;
44292407Sbr	uint64_t dmapbase;
45292407Sbr	uint64_t dmapend;
46292407Sbr};
47292407Sbr
48292407Sbr#endif /* _MACHINE_MINIDUMP_H_ */
49