summaryrefslogtreecommitdiff
path: root/include/memattrs.h
blob: 193da988f6ddbde9c7555fdb7bb94e963225538e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: BSD-2-Clause-Patent
/*
 * memattrs.h - EFI and DXE memory attribute helpers
 * Copyright Peter Jones <pjones@redhat.com>
 */

#ifndef SHIM_MEMATTRS_H_
#define SHIM_MEMATTRS_H_

extern EFI_STATUS get_mem_attrs (uintptr_t addr, size_t size, uint64_t *attrs);
extern EFI_STATUS update_mem_attrs(uintptr_t addr, uint64_t size,
				   uint64_t set_attrs, uint64_t clear_attrs);

extern void get_hsi_mem_info(void);
extern char *decode_hsi_bits(UINTN hsi);

#endif /* !SHIM_MEMATTRS_H_ */
// vim:fenc=utf-8:tw=75:noet