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