kparamb.h revision 1.5 1 1.5 leo /* $NetBSD: kparamb.h,v 1.5 2001/01/07 21:24:05 leo Exp $ */
2 1.1 leo
3 1.1 leo /*
4 1.1 leo * Copyright (c) 1995 L. Weppelman
5 1.1 leo * All rights reserved.
6 1.1 leo *
7 1.1 leo * Redistribution and use in source and binary forms, with or without
8 1.1 leo * modification, are permitted provided that the following conditions
9 1.1 leo * are met:
10 1.1 leo * 1. Redistributions of source code must retain the above copyright
11 1.1 leo * notice, this list of conditions and the following disclaimer.
12 1.1 leo * 2. Redistributions in binary form must reproduce the above copyright
13 1.1 leo * notice, this list of conditions and the following disclaimer in the
14 1.1 leo * documentation and/or other materials provided with the distribution.
15 1.1 leo * 3. All advertising materials mentioning features or use of this software
16 1.1 leo * must display the following acknowledgement:
17 1.1 leo * This product includes software developed by Leo Weppelman.
18 1.1 leo * 4. The name of the author may not be used to endorse or promote products
19 1.1 leo * derived from this software without specific prior written permission
20 1.1 leo *
21 1.1 leo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 1.1 leo * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 1.1 leo * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 1.1 leo * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25 1.1 leo * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26 1.1 leo * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 1.1 leo * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 1.1 leo * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 1.1 leo * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30 1.1 leo * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 1.1 leo */
32 1.1 leo
33 1.1 leo /*
34 1.1 leo * Structure passed to bsd_startup().
35 1.1 leo */
36 1.1 leo struct kparamb {
37 1.1 leo u_char *kp; /* 00: Kernel load address */
38 1.1 leo long ksize; /* 04: Size of loaded kernel */
39 1.1 leo u_long entry; /* 08: Kernel entry point */
40 1.1 leo long stmem_size; /* 12: Size of st-ram */
41 1.1 leo long ttmem_size; /* 16: Size of tt-ram */
42 1.1 leo long bootflags; /* 20: Various boot flags */
43 1.1 leo long boothowto; /* 24: How to boot */
44 1.1 leo long ttmem_start; /* 28: Start of tt-ram */
45 1.1 leo long esym_loc; /* 32: End of symbol table */
46 1.1 leo };
47 1.1 leo
48 1.4 leo #ifndef _STANDALONE
49 1.1 leo /*
50 1.1 leo * Values for 'bootflags'.
51 1.1 leo * Note: These should match with the values NetBSD uses!
52 1.1 leo */
53 1.1 leo #define ATARI_68000 1 /* 68000 CPU */
54 1.1 leo #define ATARI_68010 (1<<1) /* 68010 CPU */
55 1.1 leo #define ATARI_68020 (1<<2) /* 68020 CPU */
56 1.1 leo #define ATARI_68030 (1<<3) /* 68030 CPU */
57 1.1 leo #define ATARI_68040 (1<<4) /* 68040 CPU */
58 1.3 leo #define ATARI_68060 (1<<6) /* 68060 CPU */
59 1.1 leo #define ATARI_TT (1L<<11) /* This is a TT030 */
60 1.1 leo #define ATARI_FALCON (1L<<12) /* This is a Falcon */
61 1.5 leo #define ATARI_HADES (1L<<13) /* This is a Hades */
62 1.5 leo #define ATARI_MILAN (1L<<14) /* This is a Milan */
63 1.1 leo
64 1.1 leo #define ATARI_CLKBROKEN (1<<16) /* GEMDOS has faulty year base */
65 1.1 leo
66 1.2 leo #define ATARI_ANYCPU (ATARI_68000|ATARI_68010|ATARI_68020|ATARI_68030 \
67 1.3 leo |ATARI_68040|ATARI_68060)
68 1.5 leo #define ATARI_ANYMACH (ATARI_TT|ATARI_FALCON|ATARI_HADES|ATARI_MILAN)
69 1.1 leo
70 1.1 leo /*
71 1.1 leo * Definitions for boothowto
72 1.1 leo * Note: These should match with the values NetBSD uses!
73 1.1 leo */
74 1.1 leo #define RB_AUTOBOOT 0x00
75 1.1 leo #define RB_ASKNAME 0x01
76 1.1 leo #define RB_SINGLE 0x02
77 1.1 leo #define RB_KDB 0x40
78 1.1 leo
79 1.4 leo #endif /* _STANDALONE */
80