xref: /freebsd/stand/kboot/kboot/kboot.h (revision b2bd8c9a1d87ee60f13715370824c56f5ab7a4d2)
1 /*-
2  * Copyright (c) 2022, Netflix, Inc.
3  *
4  * SPDX-License-Identifier: BSD-2-Clause
5  */
6 
7 #ifndef KBOOT_H
8 #define KBOOT_H
9 
10 #define DEVT_HOSTDISK 1234
11 
12 bool enumerate_memory_arch(void);
13 struct preloaded_file;
14 void bi_loadsmap(struct preloaded_file *kfp);
15 
16 bool has_acpi(void);
17 vm_offset_t acpi_rsdp(void);
18 
19 void do_init(void);
20 
21 /* Per-platform fdt fixup */
22 void fdt_arch_fixups(void *fdtp);
23 
24 uint64_t kboot_get_phys_load_segment(void);
25 uint8_t kboot_get_kernel_machine_bits(void);
26 
27 /* main.c */
28 void kboot_kseg_get(int *nseg, void **ptr);
29 
30 /* hostdisk.c */
31 extern const char *hostfs_root;
32 const char *hostdisk_gen_probe(void);
33 void hostdisk_zfs_probe(void);
34 bool hostdisk_zfs_find_default(void);
35 
36 #include "seg.h"
37 #include "util.h"
38 
39 #endif /* KBOOT_H */
40