]> Git Repo - linux.git/blob - arch/x86/boot/compressed/sev.h
Linux 6.14-rc3
[linux.git] / arch / x86 / boot / compressed / sev.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * AMD SEV header for early boot related functions.
4  *
5  * Author: Tom Lendacky <[email protected]>
6  */
7
8 #ifndef BOOT_COMPRESSED_SEV_H
9 #define BOOT_COMPRESSED_SEV_H
10
11 #ifdef CONFIG_AMD_MEM_ENCRYPT
12
13 bool sev_snp_enabled(void);
14 void snp_accept_memory(phys_addr_t start, phys_addr_t end);
15
16 #else
17
18 static inline bool sev_snp_enabled(void) { return false; }
19 static inline void snp_accept_memory(phys_addr_t start, phys_addr_t end) { }
20
21 #endif
22
23 #endif
This page took 0.032231 seconds and 4 git commands to generate.