bootinfo.h revision 107685
1/* $FreeBSD: head/sys/ia64/include/bootinfo.h 107685 2002-12-08 20:32:56Z 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
29/*
30 * The boot program passes a pointer (in the boot environment virtual
31 * address address space; "BEVA") to a bootinfo to the kernel using
32 * the following convention:
33 *
34 *	a0 contains first free page frame number
35 *	a1 contains page number of current level 1 page table
36 *	if a2 contains BOOTINFO_MAGIC and a4 is nonzero:
37 *		a3 contains pointer (BEVA) to bootinfo
38 *		a4 contains bootinfo version number
39 *	if a2 contains BOOTINFO_MAGIC and a4 contains 0 (backward compat):
40 *		a3 contains pointer (BEVA) to bootinfo version
41 *		    (u_long), then the bootinfo
42 */
43
44#define	BOOTINFO_MAGIC			0xdeadbeeffeedface
45
46struct bootinfo {
47	u_int64_t	bi_magic;		/* BOOTINFO_MAGIC */
48	u_int64_t	bi_version;		/* version 1 */
49	u_int64_t	bi_spare[6];		/* was: name of booted kernel */
50	u_int64_t	bi_hcdp;		/* DIG64 HCDP table */
51	u_int64_t	bi_fpswa;		/* FPSWA interface */
52	u_int64_t	bi_boothowto;		/* value for boothowto */
53	u_int64_t	bi_systab;		/* pa of EFI system table */
54	u_int64_t	bi_memmap;		/* pa of EFI memory map */
55	u_int64_t	bi_memmap_size;		/* size of EFI memory map */
56	u_int64_t	bi_memdesc_size;	/* sizeof EFI memory desc */
57	u_int32_t	bi_memdesc_version;	/* EFI memory desc version */
58	u_int64_t	bi_symtab;		/* start of kernel sym table */
59	u_int64_t	bi_esymtab;		/* end of kernel sym table */
60	u_int64_t	bi_kernend;		/* end of kernel space */
61	u_int64_t	bi_envp;		/* environment */
62	u_int64_t	bi_modulep;		/* preloaded modules */
63};
64
65extern struct bootinfo bootinfo;
66