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