2 * Copyright (C) 1994 by Rodney W. Grimes, Milwaukie, Oregon 97222
\r
3 * All rights reserved.
\r
5 * Redistribution and use in source and binary forms, with or without
\r
6 * modification, are permitted provided that the following conditions
\r
8 * 1. Redistributions of source code must retain the above copyright
\r
9 * notice, this list of conditions and the following disclaimer as
\r
10 * the first lines of this file unmodified.
\r
11 * 2. Redistributions in binary form must reproduce the above copyright
\r
12 * notice, this list of conditions and the following disclaimer in the
\r
13 * documentation and/or other materials provided with the distribution.
\r
14 * 3. All advertising materials mentioning features or use of this software
\r
15 * must display the following acknowledgement:
\r
16 * This product includes software developed by Rodney W. Grimes.
\r
17 * 4. The name of the author may not be used to endorse or promote products
\r
18 * derived from this software without specific prior written permission.
\r
20 * THIS SOFTWARE IS PROVIDED BY RODNEY W. GRIMES ``AS IS'' AND
\r
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
\r
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
\r
23 * ARE DISCLAIMED. IN NO EVENT SHALL RODNEY W. GRIMES BE LIABLE
\r
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
\r
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
\r
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
\r
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
\r
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
\r
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
\r
32 * $FreeBSD: src/sys/i386/boot/dosboot/bootinfo.h,v 1.5 1999/08/28 00:43:20 peter Exp $
\r
33 * $DragonFly: src/sys/i386/boot/dosboot/Attic/bootinfo.h,v 1.2 2003/06/17 04:28:34 dillon Exp $
\r
36 #ifndef _MACHINE_BOOTINFO_H_
\r
37 #define _MACHINE_BOOTINFO_H_
\r
39 /* Only change the version number if you break compatibility. */
\r
40 #define BOOTINFO_VERSION 1
\r
42 #define N_BIOS_GEOM 8
\r
45 * A zero bootinfo field often means that there is no info available.
\r
46 * Flags are used to indicate the validity of fields where zero is a
\r
50 unsigned long bi_version;
\r
51 unsigned char *bi_kernelname;
\r
52 void *bi_nfs_diskless;
\r
53 /* End of fields that are always present. */
\r
54 #define bi_endcommon bi_n_bios_used
\r
55 unsigned long bi_n_bios_used;
\r
56 unsigned long bi_bios_geom[N_BIOS_GEOM];
\r
57 unsigned long bi_size;
\r
58 unsigned char bi_memsizes_valid;
\r
59 unsigned char bi_pad[3];
\r
60 unsigned long bi_basemem;
\r
61 unsigned long bi_extmem;
\r
62 unsigned long bi_symtab;
\r
63 unsigned long bi_esymtab;
\r
67 extern struct bootinfo bootinfo;
\r
70 #endif /* _MACHINE_BOOTINFO_H_ */
\r