xref: /freebsd/stand/common/modinfo.h (revision 86077f4fd11070518a6d04eee7fdb93cbbfb1b52)
1bca9c87bSWarner Losh /*-
2bca9c87bSWarner Losh  * Copyright (c) 2022, Netflix, Inc.
3bca9c87bSWarner Losh  *
4bca9c87bSWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
5bca9c87bSWarner Losh  */
6bca9c87bSWarner Losh #ifndef COMMON_MODINFO_H
7bca9c87bSWarner Losh #define COMMON_MODINFO_H
8bca9c87bSWarner Losh 
9*86077f4fSAhmad Khalifa extern const char md_modtype[];
10*86077f4fSAhmad Khalifa extern const char md_kerntype[];
11*86077f4fSAhmad Khalifa extern const char md_modtype_obj[];
12*86077f4fSAhmad Khalifa extern const char md_kerntype_mb[];
13*86077f4fSAhmad Khalifa 
14335615c4SWarner Losh int md_load(char *args, vm_offset_t *modulep, vm_offset_t *dtb);
15335615c4SWarner Losh int md_load64(char *args, vm_offset_t *modulep, vm_offset_t *dtb);
16335615c4SWarner Losh 
175d1531d9SWarner Losh vm_offset_t md_copymodules(vm_offset_t addr, bool kern64);
18fc352701SWarner Losh vm_offset_t md_copyenv(vm_offset_t addr);
195d1531d9SWarner Losh 
20bca9c87bSWarner Losh #endif /* COMMON_MODINFO_H */
21