1 /* SPDX-License-Identifier: GPL-2.0-only */
7 #include <linux/mem_encrypt.h>
9 #define __psp_pa(x) __sme_pa(x)
11 #define __psp_pa(x) __pa(x)
15 * Fields and bits used by most PSP mailboxes
17 * Note: Some mailboxes (such as SEV) have extra bits or different meanings
18 * and should include an appropriate local definition in their source file.
20 #define PSP_CMDRESP_STS GENMASK(15, 0)
21 #define PSP_CMDRESP_CMD GENMASK(23, 16)
22 #define PSP_CMDRESP_RESERVED GENMASK(29, 24)
23 #define PSP_CMDRESP_RECOVERY BIT(30)
24 #define PSP_CMDRESP_RESP BIT(31)
26 #define PSP_DRBL_MSG PSP_CMDRESP_CMD
27 #define PSP_DRBL_RING BIT(0)