xref: /netbsd-src/sys/arch/evbarm/include/bootconfig.h (revision 721b27251da8477f9621e670e77d958ddbd570b0)
1*721b2725Sskrll /*	$NetBSD: bootconfig.h,v 1.11 2021/08/10 06:47:48 skrll Exp $	*/
21bf6aa62Smatt 
31bf6aa62Smatt /*
41bf6aa62Smatt  * Copyright (c) 1994 Mark Brinicombe.
51bf6aa62Smatt  * Copyright (c) 1994 Brini.
61bf6aa62Smatt  * All rights reserved.
71bf6aa62Smatt  *
81bf6aa62Smatt  * This code is derived from software written for Brini by Mark Brinicombe
91bf6aa62Smatt  *
101bf6aa62Smatt  * Redistribution and use in source and binary forms, with or without
111bf6aa62Smatt  * modification, are permitted provided that the following conditions
121bf6aa62Smatt  * are met:
131bf6aa62Smatt  * 1. Redistributions of source code must retain the above copyright
141bf6aa62Smatt  *    notice, this list of conditions and the following disclaimer.
151bf6aa62Smatt  * 2. Redistributions in binary form must reproduce the above copyright
161bf6aa62Smatt  *    notice, this list of conditions and the following disclaimer in the
171bf6aa62Smatt  *    documentation and/or other materials provided with the distribution.
181bf6aa62Smatt  * 3. All advertising materials mentioning features or use of this software
191bf6aa62Smatt  *    must display the following acknowledgement:
201bf6aa62Smatt  *	This product includes software developed by Mark Brinicombe
211bf6aa62Smatt  *	for the NetBSD Project.
221bf6aa62Smatt  * 4. The name of the company nor the name of the author may be used to
231bf6aa62Smatt  *    endorse or promote products derived from this software without specific
241bf6aa62Smatt  *    prior written permission.
251bf6aa62Smatt  *
261bf6aa62Smatt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
271bf6aa62Smatt  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
281bf6aa62Smatt  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
291bf6aa62Smatt  * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
301bf6aa62Smatt  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
311bf6aa62Smatt  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
321bf6aa62Smatt  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
331bf6aa62Smatt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
341bf6aa62Smatt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
351bf6aa62Smatt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
361bf6aa62Smatt  * SUCH DAMAGE.
371bf6aa62Smatt  */
381bf6aa62Smatt 
39fe33aa27Sryo #ifndef _EVBARM_BOOTCONFIG_H
40fe33aa27Sryo #define _EVBARM_BOOTCONFIG_H
41fe33aa27Sryo 
4282d58f56Sjmcneill #ifdef _KERNEL_OPT
431f933be8Sjmcneill #include "opt_machdep.h"
440c9686a5Sjmcneill #include "opt_bootconfig.h"
4582d58f56Sjmcneill #endif
461f933be8Sjmcneill 
47f1bd8659Srearnsha #include <arm/bootconfig.h>
48f1bd8659Srearnsha 
491bf6aa62Smatt typedef struct _PhysMem {
50fe33aa27Sryo 	u_long address;
511bf6aa62Smatt 	u_int pages;
5220b73e2bSrearnsha 	u_int flags;
5320b73e2bSrearnsha #define BOOT_DRAM_CAN_DMA 1	/* Can DMA direct to this memory.  */
541bf6aa62Smatt } PhysMem;
551bf6aa62Smatt 
56b0ff3653Shamajima #ifndef	DRAM_BLOCKS
5720b73e2bSrearnsha #define	DRAM_BLOCKS	2
58b0ff3653Shamajima #endif
591bf6aa62Smatt 
601bf6aa62Smatt typedef struct _BootConfig {
611bf6aa62Smatt 	u_int dramblocks;
6220b73e2bSrearnsha 	PhysMem dram[DRAM_BLOCKS];
631bf6aa62Smatt } BootConfig;
641bf6aa62Smatt 
651bf6aa62Smatt extern BootConfig bootconfig;
661bf6aa62Smatt #define MAX_BOOT_STRING 255
671bf6aa62Smatt 
68fe33aa27Sryo #endif
69fe33aa27Sryo 
701bf6aa62Smatt /* End of bootconfig.h */
71