Home | History | Annotate | Line # | Download | only in libtos
kparamb.h revision 1.5.4.1
      1  1.5.4.1  thorpej /*	$NetBSD: kparamb.h,v 1.5.4.1 2002/01/10 19:40:28 thorpej 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.5.4.1  thorpej #ifndef _LIBTOS_KPARAMB_H
     34  1.5.4.1  thorpej #define _LIBTOS_KPARAMB_H
     35      1.1      leo /*
     36      1.1      leo  * Structure passed to bsd_startup().
     37      1.1      leo  */
     38      1.1      leo struct kparamb {
     39  1.5.4.1  thorpej 	u_int8_t	*kp;		/* 00: Kernel load address	*/
     40  1.5.4.1  thorpej 	long		ksize;		/* 04: Size of loaded kernel	*/
     41  1.5.4.1  thorpej 	u_int32_t	entry;		/* 08: Kernel entry point	*/
     42  1.5.4.1  thorpej 	long		stmem_size;	/* 12: Size of st-ram		*/
     43  1.5.4.1  thorpej 	long		ttmem_size;	/* 16: Size of tt-ram		*/
     44  1.5.4.1  thorpej 	long		bootflags;	/* 20: Various boot flags	*/
     45  1.5.4.1  thorpej 	long		boothowto;	/* 24: How to boot		*/
     46  1.5.4.1  thorpej 	long		ttmem_start;	/* 28: Start of tt-ram		*/
     47  1.5.4.1  thorpej 	long		esym_loc;	/* 32: End of symbol table	*/
     48      1.1      leo };
     49      1.1      leo 
     50  1.5.4.1  thorpej #ifdef TOSTOOLS
     51  1.5.4.1  thorpej /*
     52  1.5.4.1  thorpej  * XXX: We cannot reach over....
     53  1.5.4.1  thorpej  */
     54  1.5.4.1  thorpej 
     55      1.1      leo /*
     56      1.1      leo  * Values for 'bootflags'.
     57      1.1      leo  * Note: These should match with the values NetBSD uses!
     58      1.1      leo  */
     59      1.1      leo #define	ATARI_68000	1		/* 68000 CPU			*/
     60      1.1      leo #define	ATARI_68010	(1<<1)		/* 68010 CPU			*/
     61      1.1      leo #define	ATARI_68020	(1<<2)		/* 68020 CPU			*/
     62      1.1      leo #define	ATARI_68030	(1<<3)		/* 68030 CPU			*/
     63      1.1      leo #define	ATARI_68040	(1<<4)		/* 68040 CPU			*/
     64      1.3      leo #define	ATARI_68060	(1<<6)		/* 68060 CPU			*/
     65      1.1      leo #define	ATARI_TT	(1L<<11)	/* This is a TT030		*/
     66      1.1      leo #define	ATARI_FALCON	(1L<<12)	/* This is a Falcon		*/
     67      1.5      leo #define	ATARI_HADES	(1L<<13)	/* This is a Hades		*/
     68      1.5      leo #define	ATARI_MILAN	(1L<<14)	/* This is a Milan		*/
     69      1.1      leo 
     70      1.1      leo #define	ATARI_CLKBROKEN	(1<<16)		/* GEMDOS has faulty year base	*/
     71      1.1      leo 
     72      1.2      leo #define	ATARI_ANYCPU	(ATARI_68000|ATARI_68010|ATARI_68020|ATARI_68030 \
     73      1.3      leo 			|ATARI_68040|ATARI_68060)
     74      1.5      leo #define	ATARI_ANYMACH	(ATARI_TT|ATARI_FALCON|ATARI_HADES|ATARI_MILAN)
     75      1.1      leo 
     76      1.1      leo /*
     77      1.1      leo  * Definitions for boothowto
     78      1.1      leo  * Note: These should match with the values NetBSD uses!
     79      1.1      leo  */
     80      1.1      leo #define	RB_AUTOBOOT	0x00
     81      1.1      leo #define	RB_ASKNAME	0x01
     82      1.1      leo #define	RB_SINGLE	0x02
     83      1.1      leo #define	RB_KDB		0x40
     84      1.1      leo 
     85  1.5.4.1  thorpej #endif	/* TOSTOOLS */
     86  1.5.4.1  thorpej #endif /* !_LIBTOS_KPARAMB_H */
     87