diff options
author | Gary R Hook <gary.hook@amd.com> | 2016-07-27 02:10:02 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-08-09 12:47:09 +0200 |
commit | 8256e683113e659d9bf6bffdd227eeb1881ae9a7 (patch) | |
tree | 909ef28a95723e7cffab192109f3e7118bbbe694 /drivers/crypto/ccp/ccp-dev.h | |
parent | crypto: ccp - Refactor the storage block allocation code (diff) | |
download | linux-8256e683113e659d9bf6bffdd227eeb1881ae9a7.tar.xz linux-8256e683113e659d9bf6bffdd227eeb1881ae9a7.zip |
crypto: ccp - Refactor code supporting the CCP's RNG
Make the RNG support code common (where possible) in
preparation for adding a v5 device.
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/ccp/ccp-dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 4e38a61fbe5d..0c44c5e049f5 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -440,6 +440,7 @@ void ccp_del_device(struct ccp_device *ccp); struct ccp_device *ccp_alloc_struct(struct device *dev); bool ccp_queues_suspended(struct ccp_device *ccp); int ccp_cmd_queue_thread(void *data); +int ccp_trng_read(struct hwrng *rng, void *data, size_t max, bool wait); int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd); |