drivers/crypto/ccp/psp-dev.c | 350 +++++++++++++++++++++++++++++++++++++++++++
drivers/crypto/ccp/psp-dev.h | 24 +++
drivers/crypto/ccp/sp-dev.c | 9 ++
drivers/crypto/ccp/sp-dev.h | 4 +
include/linux/psp-sev.h | 143 ++++++++++++++++++
5 files changed, 530 insertions(+)
Some more cleanups:
* If sev_data_init is per psp_device, you can simply embed it in the
struct psp_device and save yourself the complete allocation.
* s/sev_ops_init/sev_misc_init/ because it doesn't do anything ops-like
* save some header lines.