summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/dbc.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2023-06-23 15:49:56 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2023-07-20 12:14:21 +0200
commitd9408716d2126439fbc46f6c40e72792069b8411 (patch)
tree3a6fb2b8e00a0b4f9e6786e61ae588cc5db390b3 /drivers/crypto/ccp/dbc.h
parentcrypto: ccp - Add support for fetching a nonce for dynamic boost control (diff)
downloadlinux-d9408716d2126439fbc46f6c40e72792069b8411.tar.xz
linux-d9408716d2126439fbc46f6c40e72792069b8411.zip
crypto: ccp - Add support for setting user ID for dynamic boost control
As part of the authentication flow for Dynamic Boost Control, the calling software will need to send a uid used in all of its future communications. Add support for another IOCTL call to let userspace software set this up. Acked-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/dbc.h')
-rw-r--r--drivers/crypto/ccp/dbc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/dbc.h b/drivers/crypto/ccp/dbc.h
index 1c3a0a078d15..156435100076 100644
--- a/drivers/crypto/ccp/dbc.h
+++ b/drivers/crypto/ccp/dbc.h
@@ -33,9 +33,15 @@ struct dbc_nonce {
struct dbc_user_nonce user;
} __packed;
+struct dbc_set_uid {
+ struct psp_req_buffer_hdr header;
+ struct dbc_user_setuid user;
+} __packed;
+
union dbc_buffer {
struct psp_request req;
struct dbc_nonce dbc_nonce;
+ struct dbc_set_uid dbc_set_uid;
};
void dbc_dev_destroy(struct psp_device *psp);