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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Mar 2016 13:19:17 +0000 (21:19 +0800)
commitea0375afa17281e9e0190034215d0404dbad7449
tree9b27b39689db3c66f9d6440aa2e3a255cfb659dc
parentc7019c4d739e79d7baaa13c86dcaaedec8113d70
crypto: ccp - Add abstraction for device-specific calls

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>
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