Files
cubelinux-kernel/drivers/crypto/ccp/sfs.h
T
Greg Kroah-Hartman 598cf27219 Linux 6.19.3
Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org
Tested-by: Florian Fainelli <florian.fainelli@broadcom.com>
Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com>
Tested-by: Peter Schneider <pschneider1968@googlemail.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Tested-by: Brett A C Sheffield <bacs@librecast.net>
Tested-by: Mark Brown <broonie@kernel.org>
Tested-by: Luna Jernberg <droidbittin@gmail.com>
Tested-by: Ronald Warsow <rwarsow@gmx.de>
Tested-by: Justin M. Forbes <jforbes@fedoraproject.org>
Tested-by: Ron Economos <re@w6rz.net>
Tested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-02-19 16:33:27 +01:00

48 lines
963 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* AMD Platform Security Processor (PSP) Seamless Firmware (SFS) Support.
*
* Copyright (C) 2025 Advanced Micro Devices, Inc.
*
* Author: Ashish Kalra <ashish.kalra@amd.com>
*/
#ifndef __SFS_H__
#define __SFS_H__
#include <uapi/linux/psp-sfs.h>
#include <linux/device.h>
#include <linux/miscdevice.h>
#include <linux/psp-sev.h>
#include <linux/psp-platform-access.h>
#include <linux/set_memory.h>
#include "psp-dev.h"
struct sfs_misc_dev {
struct kref refcount;
struct miscdevice misc;
};
struct sfs_command {
struct psp_ext_req_buffer_hdr hdr;
u8 buf[PAGE_SIZE - sizeof(struct psp_ext_req_buffer_hdr)];
u8 sfs_buffer[];
} __packed;
struct sfs_device {
struct device *dev;
struct psp_device *psp;
struct page *page;
struct sfs_command *command_buf;
struct sfs_misc_dev *misc;
};
void sfs_dev_destroy(struct psp_device *psp);
int sfs_dev_init(struct psp_device *psp);
#endif /* __SFS_H__ */