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