bootinfo.h revision 220313
1/* $FreeBSD: head/sys/ia64/include/bootinfo.h 220313 2011-04-03 23:49:20Z marcel $ */
2/*-
3 * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
4 * All rights reserved.
5 *
6 * Author: Chris G. Demetriou
7 *
8 * Permission to use, copy, modify and distribute this software and
9 * its documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
21 *  School of Computer Science
22 *  Carnegie Mellon University
23 *  Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
27 */
28
29struct bootinfo {
30	uint64_t	bi_magic;		/* BOOTINFO_MAGIC */
31#define	BOOTINFO_MAGIC		0xdeadbeeffeedface
32	uint64_t	bi_version;		/* version 1 */
33	uint64_t	bi_spare[3];		/* was: name of booted kernel */
34	uint32_t	bi_itr_used;		/* Number of ITR and DTR ... */
35	uint32_t	bi_dtr_used;		/* ... entries used. */
36	uint32_t	bi_text_mapped;		/* Size of text mapped. */
37	uint32_t	bi_data_mapped;		/* Size of data mapped. */
38	uint64_t	bi_pbvm_pgtbl;		/* PA of PBVM page table. */
39	uint64_t	bi_hcdp;		/* DIG64 HCDP table */
40	uint64_t	bi_fpswa;		/* FPSWA interface */
41	uint64_t	bi_boothowto;		/* value for boothowto */
42	uint64_t	bi_systab;		/* pa of EFI system table */
43	uint64_t	bi_memmap;		/* pa of EFI memory map */
44	uint64_t	bi_memmap_size;		/* size of EFI memory map */
45	uint64_t	bi_memdesc_size;	/* sizeof EFI memory desc */
46	uint32_t	bi_memdesc_version;	/* EFI memory desc version */
47	uint32_t	bi_pbvm_pgtblsz;	/* PBVM page table size. */
48	uint64_t	bi_symtab;		/* start of kernel sym table */
49	uint64_t	bi_esymtab;		/* end of kernel sym table */
50	uint64_t	bi_kernend;		/* end of kernel space */
51	uint64_t	bi_envp;		/* environment */
52	uint64_t	bi_modulep;		/* preloaded modules */
53};
54
55extern struct bootinfo *bootinfo;
56