]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: ccp - Add abstraction for device-specific calls
authorGary R Hook <gary.hook@amd.com>
Tue, 1 Mar 2016 19:49:25 +0000 (13:49 -0600)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:53:40 +0000 (10:53 -0700)
commit1b497aee02fecec98b148f95f2977319637f1574
tree26b6c855358891577da9bfbb18cf6b45aa7c6849
parentdaafc6d3387319d481b8c06552bb6d337ce124c9
crypto: ccp - Add abstraction for device-specific calls

Orabug: 26644685

Support for different generations of the coprocessor
requires that an abstraction layer be implemented for
interacting with the hardware. This patch splits out
version-specific functions to a separate file and populates
the version structure (acting as a driver) with function
pointers.

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>
(cherry picked from commit ea0375afa17281e9e0190034215d0404dbad7449)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/Makefile
drivers/crypto/ccp/ccp-dev-v3.c [new file with mode: 0644]
drivers/crypto/ccp/ccp-dev.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c
drivers/crypto/ccp/ccp-pci.c
drivers/crypto/ccp/ccp-platform.c