include/uapi/linux/psp-sfs.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/psp-sfs.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/psp-sfs.h- Extension
.h- Size
- 2922 bytes
- Lines
- 88
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct sfs_user_get_fw_versionsstruct sfs_user_update_package
Annotated Snippet
struct sfs_user_get_fw_versions {
__u8 blob[TEE_EXT_CMD_BUFFER_SIZE];
__u32 sfs_status;
__u32 sfs_extended_status;
} __packed;
/**
* struct sfs_user_update_package - update SFS package (input).
* @payload_name: name of SFS package to load, verify and execute (input).
* @sfs_status: 32-bit SFS status value (output).
* @sfs_extended_status: 32-bit SFS extended status value (output).
*/
struct sfs_user_update_package {
char payload_name[PAYLOAD_NAME_SIZE];
__u32 sfs_status;
__u32 sfs_extended_status;
} __packed;
/**
* Seamless Firmware Support (SFS) IOC
*
* possible return codes for all SFS IOCTLs:
* 0: success
* -EINVAL: invalid input
* -E2BIG: excess data passed
* -EFAULT: failed to copy to/from userspace
* -EBUSY: mailbox in recovery or in use
* -ENODEV: driver not bound with PSP device
* -EACCES: request isn't authorized
* -EINVAL: invalid parameter
* -ETIMEDOUT: request timed out
* -EAGAIN: invalid request for state machine
* -ENOENT: not implemented
* -ENFILE: overflow
* -EPERM: invalid signature
* -EIO: PSP I/O error
*/
#define SFS_IOC_TYPE 'S'
/**
* SFSIOCFWVERS - returns blob containing FW versions
* ASP provides the current level of Base Firmware for the ASP
* and the other microprocessors as well as current patch
* level(s).
*/
#define SFSIOCFWVERS _IOWR(SFS_IOC_TYPE, 0x1, struct sfs_user_get_fw_versions)
/**
* SFSIOCUPDATEPKG - updates package/payload
* ASP loads, verifies and executes the SFS package.
* By default, the SFS package/payload is loaded from
* /lib/firmware/amd, but alternative firmware loading
* path can be specified using kernel parameter
* firmware_class.path or the firmware loading path
* can be customized using sysfs file:
* /sys/module/firmware_class/parameters/path.
*/
#define SFSIOCUPDATEPKG _IOWR(SFS_IOC_TYPE, 0x2, struct sfs_user_update_package)
#endif /* __PSP_SFS_USER_H__ */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct sfs_user_get_fw_versions`, `struct sfs_user_update_package`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.