| 1 | /* |
| 2 | * Copyright (c) 2014 The FreeBSD Foundation |
| 3 | * Copyright (c) 2018 Andrew Turner |
| 4 | * |
| 5 | * SPDX-License-Identifier: BSD-2-Clause |
| 6 | */ |
| 7 | #ifndef _SYS_EFI_MAP_H_ |
| 8 | #define _SYS_EFI_MAP_H_ |
| 9 | |
| 10 | #include <sys/efi.h> |
| 11 | #include <machine/metadata.h> |
| 12 | |
| 13 | struct efi_map_header; |
| 14 | |
| 15 | typedef void (*efi_map_entry_cb)(struct efi_md *, void *argp); |
| 16 | |
| 17 | void efi_map_foreach_entry(struct efi_map_header *efihdr, efi_map_entry_cb cb, |
| 18 | void *argp); |
| 19 | |
| 20 | void efi_map_add_entries(struct efi_map_header *efihdr); |
| 21 | void efi_map_exclude_entries(struct efi_map_header *efihdr); |
| 22 | void efi_map_print_entries(struct efi_map_header *efihdr); |
| 23 | |
| 24 | #endif /* !_SYS_EFI_MAP_H_ */ |