1 /* $NetBSD: bootconfig.h,v 1.3 2005/12/11 12:17:51 christos Exp $ */
4 * Copyright (c) 2002 Reinoud Zandijk.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. The name of the company nor the name of the author may be used to
16 * endorse or promote products derived from this software without specific
17 * prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
20 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * boot configuration structures
35 #include <arm/bootconfig.h>
37 /* get some spare blocks ;) */
38 #define DRAM_BLOCKS 32
39 #define VRAM_BLOCKS 16
41 #define PHYSMEM_TYPE_GENERIC 0
42 #define PHYSMEM_TYPE_PROCESSOR_ONLY 1
54 u_int version
; /* version 2+ */
56 u_char machine_id
[4]; /* unique machine Id */
58 char args
[512]; /* 512 bytes is better than 4096 */
60 u_int kernvirtualbase
; /* not used now */
61 u_int kernphysicalbase
; /* not used now */
63 u_int scratchvirtualbase
; /* not used now */
64 u_int scratchphysicalbase
; /* not used now */
65 u_int scratchsize
; /* not used now */
70 u_int MDFvirtualbase
; /* not used yet */
71 u_int MDFphysicalbase
; /* not used yet */
72 u_int MDFsize
; /* not used yet */
82 char reserved
[512]; /* future expansion */
90 phys_mem dram
[DRAM_BLOCKS
];
91 phys_mem vram
[VRAM_BLOCKS
];
96 #define BOOTCONFIG_MAGIC 0x43112233
97 #define BOOTCONFIG_VERSION 0x2
99 extern struct bootconfig bootconfig
;
101 /* End of bootconfig.h */