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