dec_bootinfo.h Source File

Back to the index.

dec_bootinfo.h
Go to the documentation of this file.
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
65  struct btinfo_common common;
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_ */
btinfo_symtab::nsym
int nsym
Definition: dec_bootinfo.h:71
btinfo_symtab::common
struct btinfo_common common
Definition: dec_bootinfo.h:70
btinfo_magic::common
struct btinfo_common common
Definition: dec_bootinfo.h:59
btinfo_symtab::esym
int esym
Definition: dec_bootinfo.h:73
btinfo_bootpath::bootpath
char bootpath[BTINFO_BOOTPATH_LEN]
Definition: dec_bootinfo.h:66
btinfo_common::next
uint32_t next
Definition: dec_bootinfo.h:50
btinfo_common
Definition: dec_bootinfo.h:49
btinfo_symtab::ssym
int ssym
Definition: dec_bootinfo.h:72
btinfo_bootpath
Definition: dec_bootinfo.h:64
btinfo_symtab
Definition: dec_bootinfo.h:69
btinfo_magic::magic
uint32_t magic
Definition: dec_bootinfo.h:60
btinfo_common::type
uint32_t type
Definition: dec_bootinfo.h:51
btinfo_magic
Definition: dec_bootinfo.h:58
btinfo_bootpath::common
struct btinfo_common common
Definition: dec_bootinfo.h:65
__P
#define __P(x)
Definition: dec_prom.h:6
BTINFO_BOOTPATH_LEN
#define BTINFO_BOOTPATH_LEN
Definition: dec_bootinfo.h:63

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18