crypto: ccp - CCP versioning support
authorGary R Hook <gary.hook@amd.com>
Tue, 1 Mar 2016 19:49:15 +0000 (13:49 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Mar 2016 13:19:16 +0000 (21:19 +0800)
commitc7019c4d739e79d7baaa13c86dcaaedec8113d70
treec24da238ee41a0692db13c0903fc7d28b02deb3a
parent553d2374db0bb3f48bbd29bef7ba2a4d1a3f325d
crypto: ccp - CCP versioning support

Future hardware may introduce new algorithms wherein the
driver will need to manage resources for different versions
of the cryptographic coprocessor. This precursor patch
determines the version of the available device, and marks
and registers algorithms accordingly. A structure is added
which manages the version-specific data.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-pci.c
drivers/crypto/ccp/ccp-platform.c
include/linux/ccp.h