150476Speter/* $FreeBSD$ */
221611Swosch/*-
321611Swosch * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
421611Swosch * All rights reserved.
521611Swosch *
618052Sbde * Author: Chris G. Demetriou
721611Swosch *
836494Sbde * Permission to use, copy, modify and distribute this software and
936494Sbde * its documentation is hereby granted, provided that both the copyright
1036494Sbde * notice and this permission notice appear in all copies of the
1118052Sbde * software, derivative works or modified versions, and any portions
1236494Sbde * thereof, and that both notices appear in supporting documentation.
1339412Sphk *
1436494Sbde * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
1536494Sbde * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
1636494Sbde * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1739259Sgibbs *
1836575Speter * Carnegie Mellon requests users of this software to return to
1936494Sbde *
2036494Sbde *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
2136494Sbde *  School of Computer Science
2236494Sbde *  Carnegie Mellon University
2336575Speter *  Pittsburgh PA 15213-3890
2439259Sgibbs *
2536494Sbde * any improvements or extensions that they make and grant Carnegie the
2636494Sbde * rights to redistribute these changes.
2736494Sbde */
2836494Sbde
2918052Sbdestruct bootinfo {
3036494Sbde	uint64_t	bi_magic;		/* BOOTINFO_MAGIC */
3136494Sbde#define	BOOTINFO_MAGIC		0xdeadbeeffeedface
3236494Sbde	uint64_t	bi_version;		/* version 1 */
3336494Sbde	uint64_t	bi_spare[3];		/* was: name of booted kernel */
3436494Sbde	uint32_t	bi_itr_used;		/* Number of ITR and DTR ... */
3536494Sbde	uint32_t	bi_dtr_used;		/* ... entries used. */
3636494Sbde	uint32_t	bi_text_mapped;		/* Size of text mapped. */
3747570Sache	uint32_t	bi_data_mapped;		/* Size of data mapped. */
3836494Sbde	uint64_t	bi_pbvm_pgtbl;		/* PA of PBVM page table. */
3936575Speter	uint64_t	bi_hcdp;		/* DIG64 HCDP table */
4036575Speter	uint64_t	bi_fpswa;		/* FPSWA interface */
4136494Sbde	uint64_t	bi_boothowto;		/* value for boothowto */
4236494Sbde	uint64_t	bi_systab;		/* pa of EFI system table */
4336494Sbde	uint64_t	bi_memmap;		/* pa of EFI memory map */
4418052Sbde	uint64_t	bi_memmap_size;		/* size of EFI memory map */
4536494Sbde	uint64_t	bi_memdesc_size;	/* sizeof EFI memory desc */
4636494Sbde	uint32_t	bi_memdesc_version;	/* EFI memory desc version */
4736494Sbde	uint32_t	bi_pbvm_pgtblsz;	/* PBVM page table size. */
4836494Sbde	uint64_t	bi_symtab;		/* start of kernel sym table */
4952251Sbp	uint64_t	bi_esymtab;		/* end of kernel sym table */
5036494Sbde	uint64_t	bi_kernend;		/* end of kernel space */
5152419Sjulian	uint64_t	bi_envp;		/* environment */
5236494Sbde	uint64_t	bi_modulep;		/* preloaded modules */
5336494Sbde};
5442916Sjdp
5542916Sjdpextern struct bootinfo *bootinfo;
5642916Sjdp