diff options
author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2014-12-21 23:53:58 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-12-24 00:14:21 +0300 |
commit | f421258d5bf883b68b1cdaa299a8a1da3eb92e0f (patch) | |
tree | a41b9c794dab80b4c88b2b65302d95e833c3d676 /arch/mips/cavium-octeon/crypto/octeon-crypto.h | |
parent | d3f6c142865badc82fa4d151766634b895d693e8 (diff) | |
download | linux-f421258d5bf883b68b1cdaa299a8a1da3eb92e0f.tar.xz |
MIPS: OCTEON: add crypto helper functions
Add crypto helper functions which are needed for kernel level usage.
The code for these has been extracted from the EdgeRouter Pro GPL tarball.
While at it, also delete duplicate definitions of the functions.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/mips/cavium-octeon/crypto/octeon-crypto.h')
-rw-r--r-- | arch/mips/cavium-octeon/crypto/octeon-crypto.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/mips/cavium-octeon/crypto/octeon-crypto.h b/arch/mips/cavium-octeon/crypto/octeon-crypto.h new file mode 100644 index 000000000000..5ca86d4ead52 --- /dev/null +++ b/arch/mips/cavium-octeon/crypto/octeon-crypto.h @@ -0,0 +1,17 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (C) 2012-2013 Cavium Inc., All Rights Reserved. + */ +#ifndef __LINUX_OCTEON_CRYPTO_H +#define __LINUX_OCTEON_CRYPTO_H + +#include <linux/sched.h> + +extern unsigned long octeon_crypto_enable(struct octeon_cop2_state *state); +extern void octeon_crypto_disable(struct octeon_cop2_state *state, + unsigned long flags); + +#endif /* __LINUX_OCTEON_CRYPTO_H */ |