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 
phys_mem
Definition: netbsd_iyonix_bootconfig.h:51
bootconfig::height
Xu_int height
Definition: netbsd_iyonix_bootconfig.h:84
bootconfig::framerate
Xu_int framerate
Definition: netbsd_iyonix_bootconfig.h:86
bootconfig::vramblocks
Xu_int vramblocks
Definition: netbsd_iyonix_bootconfig.h:94
phys_mem::flags
Xu_int flags
Definition: netbsd_iyonix_bootconfig.h:54
bootconfig::scratchvirtualbase
Xu_int scratchvirtualbase
Definition: netbsd_iyonix_bootconfig.h:69
bootconfig::MDFsize
Xu_int MDFsize
Definition: netbsd_iyonix_bootconfig.h:78
bootconfig::ksym_start
Xu_int ksym_start
Definition: netbsd_iyonix_bootconfig.h:73
bootconfig::args
char args[512]
Definition: netbsd_iyonix_bootconfig.h:64
bootconfig::dram
phys_mem dram[DRAM_BLOCKS]
Definition: netbsd_iyonix_bootconfig.h:96
bootconfig::kernvirtualbase
Xu_int kernvirtualbase
Definition: netbsd_iyonix_bootconfig.h:66
Xu_int
uint32_t Xu_int
Definition: netbsd_iyonix_bootconfig.h:40
bootconfig::pagesize
Xu_int pagesize
Definition: netbsd_iyonix_bootconfig.h:90
bootconfig::MDFphysicalbase
Xu_int MDFphysicalbase
Definition: netbsd_iyonix_bootconfig.h:77
bootconfig::MDFvirtualbase
Xu_int MDFvirtualbase
Definition: netbsd_iyonix_bootconfig.h:76
VRAM_BLOCKS
#define VRAM_BLOCKS
Definition: netbsd_iyonix_bootconfig.h:45
bootconfig::reserved
char reserved[512]
Definition: netbsd_iyonix_bootconfig.h:88
bootconfig::display_phys
Xu_int display_phys
Definition: netbsd_iyonix_bootconfig.h:80
phys_mem::address
Xu_int address
Definition: netbsd_iyonix_bootconfig.h:52
DRAM_BLOCKS
#define DRAM_BLOCKS
Definition: netbsd_iyonix_bootconfig.h:44
bootconfig::scratchphysicalbase
Xu_int scratchphysicalbase
Definition: netbsd_iyonix_bootconfig.h:70
bootconfig::drampages
Xu_int drampages
Definition: netbsd_iyonix_bootconfig.h:91
bootconfig::dramblocks
Xu_int dramblocks
Definition: netbsd_iyonix_bootconfig.h:93
bootconfig::width
Xu_int width
Definition: netbsd_iyonix_bootconfig.h:83
bootconfig::vram
phys_mem vram[VRAM_BLOCKS]
Definition: netbsd_iyonix_bootconfig.h:97
bootconfig::kernelname
char kernelname[80]
Definition: netbsd_iyonix_bootconfig.h:63
bootconfig::display_size
Xu_int display_size
Definition: netbsd_iyonix_bootconfig.h:82
bootconfig::version
Xu_int version
Definition: netbsd_iyonix_bootconfig.h:60
bootconfig::kernphysicalbase
Xu_int kernphysicalbase
Definition: netbsd_iyonix_bootconfig.h:67
phys_mem::pages
Xu_int pages
Definition: netbsd_iyonix_bootconfig.h:53
bootconfig::machine_id
u_char machine_id[4]
Definition: netbsd_iyonix_bootconfig.h:62
bootconfig::log2_bpp
Xu_int log2_bpp
Definition: netbsd_iyonix_bootconfig.h:85
bootconfig::kernsize
Xu_int kernsize
Definition: netbsd_iyonix_bootconfig.h:68
bootconfig::magic
Xu_int magic
Definition: netbsd_iyonix_bootconfig.h:59
bootconfig
Definition: netbsd_iyonix_bootconfig.h:58
bootconfig::display_start
Xu_int display_start
Definition: netbsd_iyonix_bootconfig.h:81
bootconfig::scratchsize
Xu_int scratchsize
Definition: netbsd_iyonix_bootconfig.h:71
bootconfig::ksym_end
Xu_int ksym_end
Definition: netbsd_iyonix_bootconfig.h:74
bootconfig::vrampages
Xu_int vrampages
Definition: netbsd_iyonix_bootconfig.h:92

Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17