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