No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / acorn26 / include / boot.h
blob1351c04c49cfc0738ad877f3f7324162b3309d06
1 /* $NetBSD: boot.h,v 1.2 2002/03/24 23:37:43 bjh21 Exp $ */
2 /*-
3 * Copyright (c) 1998 Ben Harris
4 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 * boot.h -- Stuff to do with starting the kernel
32 #ifndef _ARM26_BOOT_H
33 #define _ARM26_BOOT_H
35 #include <sys/types.h>
38 * Bootloader contract 0.2:
39 * + APCS conformant entry.
40 * + SVC mode.
41 * + Interrupts (IRQ and FIQ) disabled on CPU.
42 * + CPU caches disabled.
43 * + Physical memory below 512k is unused except for screen.
44 * + First three 32k blocks above 512k are zero page, stack and msgbuf.
45 * + From there to freebase should be preserved unless you know better.
46 * + From freebase to top of RAM is for general use.
47 * + VIDC is set up as specified (not really bootloader's job).
50 #define BOOT_MAGIC 0x942B7DFE
52 struct bootconfig {
53 u_int32_t magic; /* BOOT_MAGIC */
54 u_int32_t version; /* minor version of structure */
55 /* Standard NetBSD boot parameters */
56 u_int32_t boothowto; /* Reboot flags (single-user etc) */
57 u_int32_t bootdev; /* Boot device */
58 u_int32_t ssym; /* Start of debugging symbols */
59 u_int32_t esym; /* End of debugging symbols */
60 /* Parameters gathered by OS_ReadMemMapInfo */
61 u_int32_t nbpp; /* Machine page size in bytes */
62 u_int32_t npages; /* Number of pages */
63 /* Layout of physical memory. */
64 u_int32_t txtbase; /* Kernel text base */
65 u_int32_t txtsize; /* ... and size */
66 u_int32_t database; /* Ditto for data */
67 u_int32_t datasize; /* and bss */
68 u_int32_t bssbase; /* Note that base addresses are */
69 u_int32_t bsssize; /* "physical" ie bytes above 0x02000000 */
70 u_int32_t freebase; /* Start of free space */
71 /* Framebuffer state -- used to initialise raster console */
72 u_int32_t xpixels; /* Pixels across screen (XWindLimit + 1) */
73 u_int32_t ypixels; /* Pixels down screen (YWindLimit + 1) */
74 u_int32_t bpp; /* Bits per pixel (1 << Log2BPP) */
75 u_int32_t screenbase; /* Physical base of screen */
76 u_int32_t screensize; /* Size of framebuffer (TotalScreenSize) */
77 u_int32_t cpixelrow; /* first free pixel row on screen */
78 /* Version 0 ends here */
81 #ifdef _KERNEL
82 extern struct bootconfig bootconfig;
83 #endif
84 #endif