1184728Sraj/*-
2184728Sraj * Copyright (c) 2006 Peter Wemm
3184728Sraj * All rights reserved.
4184728Sraj *
5184728Sraj * Redistribution and use in source and binary forms, with or without
6184728Sraj * modification, are permitted provided that the following conditions
7184728Sraj * are met:
8184728Sraj *
9184728Sraj * 1. Redistributions of source code must retain the above copyright
10184728Sraj *    notice, this list of conditions and the following disclaimer.
11184728Sraj * 2. Redistributions in binary form must reproduce the above copyright
12184728Sraj *    notice, this list of conditions and the following disclaimer in the
13184728Sraj *    documentation and/or other materials provided with the distribution.
14184728Sraj *
15184728Sraj * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16184728Sraj * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17184728Sraj * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18184728Sraj * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19184728Sraj * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20184728Sraj * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21184728Sraj * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22184728Sraj * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23184728Sraj * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24184728Sraj * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25184728Sraj *
26184728Sraj * From: FreeBSD: src/sys/i386/include/minidump.h,v 1.1 2006/04/21 04:28:43
27184728Sraj * $FreeBSD$
28184728Sraj */
29184728Sraj
30184728Sraj#ifndef	_MACHINE_MINIDUMP_H_
31294098Sskra#define	_MACHINE_MINIDUMP_H_
32184728Sraj
33184728Sraj#define	MINIDUMP_MAGIC		"minidump FreeBSD/arm"
34184728Sraj#define	MINIDUMP_VERSION	1
35184728Sraj
36294098Sskra/*
37294098Sskra * The first page of vmcore is dedicated to the following header.
38294098Sskra * As the rest of the page is zeroed, any header extension can be
39294098Sskra * done without version bumping. It should be taken into account
40294098Sskra * only that new entries will be zero in old vmcores.
41294098Sskra */
42294098Sskra
43184728Srajstruct minidumphdr {
44184728Sraj	char magic[24];
45184728Sraj	uint32_t version;
46184728Sraj	uint32_t msgbufsize;
47184728Sraj	uint32_t bitmapsize;
48184728Sraj	uint32_t ptesize;
49184728Sraj	uint32_t kernbase;
50294098Sskra	uint32_t arch;
51294098Sskra	uint32_t mmuformat;
52184728Sraj};
53184728Sraj
54294098Sskra#define MINIDUMP_MMU_FORMAT_UNKNOWN	0
55294098Sskra#define MINIDUMP_MMU_FORMAT_V4		1
56294098Sskra#define MINIDUMP_MMU_FORMAT_V6		2
57294098Sskra#define MINIDUMP_MMU_FORMAT_V6_LPAE	3
58294098Sskra
59184728Sraj#endif /* _MACHINE_MINIDUMP_H_ */
60