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