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