1*84d9c625SLionel Sambuc /* $NetBSD: bootconfig.h,v 1.6 2006/02/06 14:03:22 hamajima Exp $ */ 2*84d9c625SLionel Sambuc 3*84d9c625SLionel Sambuc /* 4*84d9c625SLionel Sambuc * Copyright (c) 1994 Mark Brinicombe. 5*84d9c625SLionel Sambuc * Copyright (c) 1994 Brini. 6*84d9c625SLionel Sambuc * All rights reserved. 7*84d9c625SLionel Sambuc * 8*84d9c625SLionel Sambuc * This code is derived from software written for Brini by Mark Brinicombe 9*84d9c625SLionel Sambuc * 10*84d9c625SLionel Sambuc * Redistribution and use in source and binary forms, with or without 11*84d9c625SLionel Sambuc * modification, are permitted provided that the following conditions 12*84d9c625SLionel Sambuc * are met: 13*84d9c625SLionel Sambuc * 1. Redistributions of source code must retain the above copyright 14*84d9c625SLionel Sambuc * notice, this list of conditions and the following disclaimer. 15*84d9c625SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright 16*84d9c625SLionel Sambuc * notice, this list of conditions and the following disclaimer in the 17*84d9c625SLionel Sambuc * documentation and/or other materials provided with the distribution. 18*84d9c625SLionel Sambuc * 3. All advertising materials mentioning features or use of this software 19*84d9c625SLionel Sambuc * must display the following acknowledgement: 20*84d9c625SLionel Sambuc * This product includes software developed by Mark Brinicombe 21*84d9c625SLionel Sambuc * for the NetBSD Project. 22*84d9c625SLionel Sambuc * 4. The name of the company nor the name of the author may be used to 23*84d9c625SLionel Sambuc * endorse or promote products derived from this software without specific 24*84d9c625SLionel Sambuc * prior written permission. 25*84d9c625SLionel Sambuc * 26*84d9c625SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 27*84d9c625SLionel Sambuc * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 28*84d9c625SLionel Sambuc * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 29*84d9c625SLionel Sambuc * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 30*84d9c625SLionel Sambuc * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 31*84d9c625SLionel Sambuc * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 32*84d9c625SLionel Sambuc * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33*84d9c625SLionel Sambuc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34*84d9c625SLionel Sambuc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35*84d9c625SLionel Sambuc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36*84d9c625SLionel Sambuc * SUCH DAMAGE. 37*84d9c625SLionel Sambuc */ 38*84d9c625SLionel Sambuc 39*84d9c625SLionel Sambuc #include <arm/bootconfig.h> 40*84d9c625SLionel Sambuc 41*84d9c625SLionel Sambuc typedef struct _PhysMem { 42*84d9c625SLionel Sambuc u_int address; 43*84d9c625SLionel Sambuc u_int pages; 44*84d9c625SLionel Sambuc u_int flags; 45*84d9c625SLionel Sambuc #define BOOT_DRAM_CAN_DMA 1 /* Can DMA direct to this memory. */ 46*84d9c625SLionel Sambuc #define BOOT_DRAM_PREFER 2 /* UVM should prefer this memory. */ 47*84d9c625SLionel Sambuc } PhysMem; 48*84d9c625SLionel Sambuc 49*84d9c625SLionel Sambuc #ifndef DRAM_BLOCKS 50*84d9c625SLionel Sambuc #define DRAM_BLOCKS 2 51*84d9c625SLionel Sambuc #endif 52*84d9c625SLionel Sambuc 53*84d9c625SLionel Sambuc typedef struct _BootConfig { 54*84d9c625SLionel Sambuc u_int dramblocks; 55*84d9c625SLionel Sambuc PhysMem dram[DRAM_BLOCKS]; 56*84d9c625SLionel Sambuc } BootConfig; 57*84d9c625SLionel Sambuc 58*84d9c625SLionel Sambuc extern BootConfig bootconfig; 59*84d9c625SLionel Sambuc #define MAX_BOOT_STRING 255 60*84d9c625SLionel Sambuc 61*84d9c625SLionel Sambuc /* End of bootconfig.h */ 62