dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
31 lines
771 B
C
31 lines
771 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef __PSP_H
|
|
#define __PSP_H
|
|
|
|
#ifdef CONFIG_X86
|
|
#include <linux/mem_encrypt.h>
|
|
|
|
#define __psp_pa(x) __sme_pa(x)
|
|
#else
|
|
#define __psp_pa(x) __pa(x)
|
|
#endif
|
|
|
|
/*
|
|
* Fields and bits used by most PSP mailboxes
|
|
*
|
|
* Note: Some mailboxes (such as SEV) have extra bits or different meanings
|
|
* and should include an appropriate local definition in their source file.
|
|
*/
|
|
#define PSP_CMDRESP_STS GENMASK(15, 0)
|
|
#define PSP_TEE_STS_RING_BUSY 0x0000000d /* Ring already initialized */
|
|
#define PSP_CMDRESP_CMD GENMASK(23, 16)
|
|
#define PSP_CMDRESP_RESERVED GENMASK(29, 24)
|
|
#define PSP_CMDRESP_RECOVERY BIT(30)
|
|
#define PSP_CMDRESP_RESP BIT(31)
|
|
|
|
#define PSP_DRBL_MSG PSP_CMDRESP_CMD
|
|
#define PSP_DRBL_RING BIT(0)
|
|
|
|
#endif /* __PSP_H */
|