1 |
/* gxemul: $Id: dec_bootinfo.h,v 1.4 2005/03/05 12:34:02 debug Exp $ */ |
2 |
/* $NetBSD: bootinfo.h,v 1.5 2000/01/09 15:34:41 ad Exp $ */ |
3 |
|
4 |
/* |
5 |
* Copyright (c) 1997 |
6 |
* Matthias Drochner. All rights reserved. |
7 |
* |
8 |
* Redistribution and use in source and binary forms, with or without |
9 |
* modification, are permitted provided that the following conditions |
10 |
* are met: |
11 |
* 1. Redistributions of source code must retain the above copyright |
12 |
* notice, this list of conditions and the following disclaimer. |
13 |
* 2. Redistributions in binary form must reproduce the above copyright |
14 |
* notice, this list of conditions and the following disclaimer in the |
15 |
* documentation and/or other materials provided with the distribution. |
16 |
* 3. All advertising materials mentioning features or use of this software |
17 |
* must display the following acknowledgement: |
18 |
* This product includes software developed for the NetBSD Project |
19 |
* by Matthias Drochner. |
20 |
* 4. The name of the author may not be used to endorse or promote products |
21 |
* derived from this software without specific prior written permission. |
22 |
* |
23 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
24 |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
25 |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
26 |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
27 |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
28 |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
29 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
30 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
31 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
32 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
33 |
* |
34 |
*/ |
35 |
|
36 |
#ifndef _PMAX_BOOTINFO_H_ |
37 |
#define _PMAX_BOOTINFO_H_ |
38 |
|
39 |
#define BOOTINFO_MAGIC 0xb007babeULL |
40 |
#define BOOTINFO_SIZE 1024 |
41 |
|
42 |
/* |
43 |
* The bootinfo structure is at the end of the 64kB hole between |
44 |
* 0x80010000 to 0x8001ffff that neither NetBSD nor the PROM uses. |
45 |
*/ |
46 |
#define BOOTINFO_ADDR 0x8001fc00 |
47 |
|
48 |
/* gxemul: these 'uint32_t' were 'int' in NetBSD: */ |
49 |
struct btinfo_common { |
50 |
uint32_t next; /* offset of next item, or zero */ |
51 |
uint32_t type; |
52 |
}; |
53 |
|
54 |
#define BTINFO_MAGIC 1 |
55 |
#define BTINFO_BOOTPATH 2 |
56 |
#define BTINFO_SYMTAB 3 |
57 |
|
58 |
struct btinfo_magic { |
59 |
struct btinfo_common common; |
60 |
uint32_t magic; /* gxemul, was 'int' in NetBSD */ |
61 |
}; |
62 |
|
63 |
#define BTINFO_BOOTPATH_LEN 80 |
64 |
struct btinfo_bootpath { |
65 |
struct btinfo_common common; |
66 |
char bootpath[BTINFO_BOOTPATH_LEN]; |
67 |
}; |
68 |
|
69 |
struct btinfo_symtab { |
70 |
struct btinfo_common common; |
71 |
int nsym; |
72 |
int ssym; |
73 |
int esym; |
74 |
}; |
75 |
|
76 |
#ifdef _KERNEL |
77 |
void *lookup_bootinfo __P((int)); |
78 |
#endif |
79 |
|
80 |
#endif /* !_PMAX_BOOTINFO_H_ */ |