diff options
author | Rijo Thomas <Rijo-john.Thomas@amd.com> | 2019-12-04 09:19:00 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-20 09:58:32 +0300 |
commit | 6eb0cc72bcbe9cc5b9ccd41d7226929767e41311 (patch) | |
tree | b43c2be255bab56570afb0a4bc9dfc28ee63363a /drivers/crypto/ccp/sev-dev.h | |
parent | b93566f1bb54e02a1ff1e3b4782073be1886744e (diff) | |
download | linux-6eb0cc72bcbe9cc5b9ccd41d7226929767e41311.tar.xz |
crypto: ccp - move SEV vdata to a dedicated data structure
PSP can support both SEV and TEE interface. Therefore, move
SEV specific registers to a dedicated data structure.
TEE interface specific registers will be added in a later
patch.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Jens Wiklander <jens.wiklander@linaro.org>
Co-developed-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Devaraj Rangasamy <Devaraj.Rangasamy@amd.com>
Signed-off-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/sev-dev.h')
-rw-r--r-- | drivers/crypto/ccp/sev-dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/sev-dev.h b/drivers/crypto/ccp/sev-dev.h index 3d84ac380bdc..dd5c4fe82914 100644 --- a/drivers/crypto/ccp/sev-dev.h +++ b/drivers/crypto/ccp/sev-dev.h @@ -40,6 +40,8 @@ struct sev_device { void __iomem *io_regs; + struct sev_vdata *vdata; + int state; unsigned int int_rcvd; wait_queue_head_t int_queue; |