netbsd_iyonix_bootconfig.h Source File

Back to the index.

netbsd_iyonix_bootconfig.h
Go to the documentation of this file.
1 #ifndef NETBSD_IYONIX_BOOTCONFIG_H
2 #define NETBSD_IYONIX_BOOTCONFIG_H
3 
4 /* $NetBSD: bootconfig.h,v 1.4 2006/10/24 20:39:14 bjh21 Exp $ */
5 
6 /*
7  * Copyright (c) 2002 Reinoud Zandijk.
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  * notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in the
17  * documentation and/or other materials provided with the distribution.
18  * 3. The name of the company nor the name of the author may be used to
19  * endorse or promote products derived from this software without specific
20  * prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
23  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32  * SUCH DAMAGE.
33  *
34  * boot configuration structures
35  *
36  */
37 
38 /* #include <arm/bootconfig.h> */
39 
40 typedef uint32_t Xu_int; /* GXemul */
41 
42 
43 /* get some spare blocks ;) */
44 #define DRAM_BLOCKS 32
45 #define VRAM_BLOCKS 16
46 
47 #define PHYSMEM_TYPE_GENERIC 0
48 #define PHYSMEM_TYPE_PROCESSOR_ONLY 1
49 
50 
51 typedef struct {
55 } phys_mem;
56 
57 
58 struct bootconfig {
60  Xu_int version; /* version 2+ */
61 
62  u_char machine_id[4]; /* unique machine Id */
63  char kernelname[80];
64  char args[512]; /* 512 bytes is better than 4096 */
65 
66  Xu_int kernvirtualbase; /* not used now */
67  Xu_int kernphysicalbase; /* not used now */
69  Xu_int scratchvirtualbase; /* not used now */
70  Xu_int scratchphysicalbase; /* not used now */
71  Xu_int scratchsize; /* not used now */
72 
75 
76  Xu_int MDFvirtualbase; /* not used yet */
77  Xu_int MDFphysicalbase; /* not used yet */
78  Xu_int MDFsize; /* not used yet */
79 
87 
88  char reserved[512]; /* future expansion */
89 
95 
98 
99 };
100 
101 
102 #define BOOTCONFIG_MAGIC 0x43112233
103 #define BOOTCONFIG_VERSION 0x2
104 
105 extern struct bootconfig bootconfig;
106 
107 /* End of bootconfig.h */
108 
109 #endif /* NETBSD_IYONIX_BOOTCONFIG_H */
110 
uint32_t Xu_int
#define VRAM_BLOCKS
#define DRAM_BLOCKS

Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13