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