xref: /netbsd-src/sys/arch/cats/include/bootconfig.h (revision ed5db5831edc30855bc660195c6cfb5fec806bae)
1*ed5db583Sbjh21 /*	$NetBSD: bootconfig.h,v 1.6 2006/10/26 23:31:47 bjh21 Exp $	*/
29e26feedSchris 
39e26feedSchris /*
49e26feedSchris  * Copyright (c) 1994 Mark Brinicombe.
59e26feedSchris  * Copyright (c) 1994 Brini.
69e26feedSchris  * All rights reserved.
79e26feedSchris  *
89e26feedSchris  * This code is derived from software written for Brini by Mark Brinicombe
99e26feedSchris  *
109e26feedSchris  * Redistribution and use in source and binary forms, with or without
119e26feedSchris  * modification, are permitted provided that the following conditions
129e26feedSchris  * are met:
139e26feedSchris  * 1. Redistributions of source code must retain the above copyright
149e26feedSchris  *    notice, this list of conditions and the following disclaimer.
159e26feedSchris  * 2. Redistributions in binary form must reproduce the above copyright
169e26feedSchris  *    notice, this list of conditions and the following disclaimer in the
179e26feedSchris  *    documentation and/or other materials provided with the distribution.
189e26feedSchris  * 3. All advertising materials mentioning features or use of this software
199e26feedSchris  *    must display the following acknowledgement:
209e26feedSchris  *	This product includes software developed by Mark Brinicombe
219e26feedSchris  *	for the NetBSD Project.
229e26feedSchris  * 4. The name of the company nor the name of the author may be used to
239e26feedSchris  *    endorse or promote products derived from this software without specific
249e26feedSchris  *    prior written permission.
259e26feedSchris  *
269e26feedSchris  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
279e26feedSchris  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
289e26feedSchris  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
299e26feedSchris  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
309e26feedSchris  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
319e26feedSchris  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
329e26feedSchris  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
339e26feedSchris  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
349e26feedSchris  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
359e26feedSchris  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
369e26feedSchris  * SUCH DAMAGE.
379e26feedSchris  *
389e26feedSchris  * boot configuration structures
399e26feedSchris  *
409e26feedSchris  * Created      : 12/09/94
419e26feedSchris  *
429e26feedSchris  * Based on kate/boot/bootconfig.h
439e26feedSchris  */
449e26feedSchris 
459e26feedSchris typedef struct _PhysMem {
469e26feedSchris 	u_int address;
479e26feedSchris 	u_int pages;
489e26feedSchris } PhysMem;
499e26feedSchris 
509bb435dbSchris #if defined(_KERNEL)
519e26feedSchris 
5265d685feSbjh21 #include <arm/bootconfig.h>
5365d685feSbjh21 
549e26feedSchris #define	DRAM_BLOCKS	1
559e26feedSchris 
569e26feedSchris typedef struct _BootConfig {
579e26feedSchris 	PhysMem dram[DRAM_BLOCKS];
589e26feedSchris 	u_int dramblocks;
599e26feedSchris } BootConfig;
609e26feedSchris 
619e26feedSchris extern BootConfig bootconfig;
629e26feedSchris #define MAX_BOOT_STRING 255
639e26feedSchris 
64*ed5db583Sbjh21 extern char *boot_file;
659e26feedSchris #endif	/* _KERNEL */
669e26feedSchris 
679e26feedSchris /* End of bootconfig.h */
68