2 * Copyright (c) 2005-2006, Kohsuke Ohtani
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the author nor the names of any co-contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * Boot information passed by OS loader
33 * Note: The boot structure must have same member with loader's definition.
41 * Image information for kernel, bsp, and boot tasks.
42 * OS loader will build this structure regardless of the file format.
46 char name
[16]; /* Name of image */
47 u_long phys
; /* Physical address */
48 size_t size
; /* Size of image */
49 u_long entry
; /* Entry address */
50 u_long text
; /* Text address */
51 u_long data
; /* Data address */
52 u_long bss
; /* Bss address */
53 u_long ksym
; /* Ksymtab address */
54 size_t text_size
; /* Text size */
55 size_t data_size
; /* Data size */
56 size_t bss_size
; /* Bss size */
57 size_t ksym_size
; /* Ksymtab size */
65 u_long start
; /* Start address */
66 size_t size
; /* Size in bytes */
78 } sys
; /* size fixed to 128 bytes */
79 struct mem_info main_mem
; /* Main memory */
80 struct mem_info reserved
[8]; /* Reserved memory */
81 struct mem_info ram_disk
; /* RAM disk image in memory */
82 struct mem_info boot_modules
; /* Memory include kernel, driver etc */
83 int nr_tasks
; /* Number of boot tasks */
84 struct img_info kernel
; /* Kernel image */
85 struct img_info driver
; /* Driver image */
86 struct img_info tasks
[1]; /* Boot tasks image */
89 extern struct boot_info
*boot_info
;
91 #endif /* !_BOOTINFO_H */