166458Sdfr/* $FreeBSD$ */
2139790Simp/*-
366458Sdfr * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
466458Sdfr * All rights reserved.
566458Sdfr *
666458Sdfr * Author: Chris G. Demetriou
766458Sdfr *
866458Sdfr * Permission to use, copy, modify and distribute this software and
966458Sdfr * its documentation is hereby granted, provided that both the copyright
1066458Sdfr * notice and this permission notice appear in all copies of the
1166458Sdfr * software, derivative works or modified versions, and any portions
1266458Sdfr * thereof, and that both notices appear in supporting documentation.
1366458Sdfr *
1466458Sdfr * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1566458Sdfr * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1666458Sdfr * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1766458Sdfr *
1866458Sdfr * Carnegie Mellon requests users of this software to return to
1966458Sdfr *
2066458Sdfr *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2166458Sdfr *  School of Computer Science
2266458Sdfr *  Carnegie Mellon University
2366458Sdfr *  Pittsburgh PA 15213-3890
2466458Sdfr *
2566458Sdfr * any improvements or extensions that they make and grant Carnegie the
2666458Sdfr * rights to redistribute these changes.
2766458Sdfr */
2866458Sdfr
2983301Sdfrstruct bootinfo {
30138145Smarcel	uint64_t	bi_magic;		/* BOOTINFO_MAGIC */
31138145Smarcel#define	BOOTINFO_MAGIC		0xdeadbeeffeedface
32138145Smarcel	uint64_t	bi_version;		/* version 1 */
33220313Smarcel	uint64_t	bi_spare[3];		/* was: name of booted kernel */
34220313Smarcel	uint32_t	bi_itr_used;		/* Number of ITR and DTR ... */
35220313Smarcel	uint32_t	bi_dtr_used;		/* ... entries used. */
36220313Smarcel	uint32_t	bi_text_mapped;		/* Size of text mapped. */
37220313Smarcel	uint32_t	bi_data_mapped;		/* Size of data mapped. */
38219691Smarcel	uint64_t	bi_pbvm_pgtbl;		/* PA of PBVM page table. */
39138145Smarcel	uint64_t	bi_hcdp;		/* DIG64 HCDP table */
40138145Smarcel	uint64_t	bi_fpswa;		/* FPSWA interface */
41138145Smarcel	uint64_t	bi_boothowto;		/* value for boothowto */
42138145Smarcel	uint64_t	bi_systab;		/* pa of EFI system table */
43138145Smarcel	uint64_t	bi_memmap;		/* pa of EFI memory map */
44138145Smarcel	uint64_t	bi_memmap_size;		/* size of EFI memory map */
45138145Smarcel	uint64_t	bi_memdesc_size;	/* sizeof EFI memory desc */
46138145Smarcel	uint32_t	bi_memdesc_version;	/* EFI memory desc version */
47219691Smarcel	uint32_t	bi_pbvm_pgtblsz;	/* PBVM page table size. */
48138145Smarcel	uint64_t	bi_symtab;		/* start of kernel sym table */
49138145Smarcel	uint64_t	bi_esymtab;		/* end of kernel sym table */
50138145Smarcel	uint64_t	bi_kernend;		/* end of kernel space */
51138145Smarcel	uint64_t	bi_envp;		/* environment */
52138145Smarcel	uint64_t	bi_modulep;		/* preloaded modules */
5366458Sdfr};
5466458Sdfr
55219841Smarcelextern struct bootinfo *bootinfo;
56