OSDN Git Service

crypto: ccp - Move some PSP mailbox bit definitions into common header
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 10 Mar 2023 21:19:46 +0000 (15:19 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Mar 2023 03:16:43 +0000 (11:16 +0800)
commit1c5c1daf04d13916867ef68c6ba7ae4f5e73801f
tree99cce21061abb369302f6f397adfc590e6cb87c7
parentae7d45fb7ca75e94b478e2404709ba3024774334
crypto: ccp - Move some PSP mailbox bit definitions into common header

Some of the bits and fields used for mailboxes communicating with the
PSP are common across all mailbox implementations (SEV, TEE, etc).

Move these bits into the common `linux/psp.h` so they don't need to
be re-defined for each implementation.

Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/psp-dev.h
drivers/crypto/ccp/sev-dev.c
drivers/crypto/ccp/sev-dev.h
drivers/crypto/ccp/tee-dev.c
drivers/i2c/busses/i2c-designware-amdpsp.c
include/linux/psp.h