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