xref: /OK3568_Linux_fs/kernel/drivers/crypto/amcc/crypto4xx_trng.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /**
3*4882a593Smuzhiyun  * AMCC SoC PPC4xx Crypto Driver
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Copyright (c) 2008 Applied Micro Circuits Corporation.
6*4882a593Smuzhiyun  * All rights reserved. James Hsiao <jhsiao@amcc.com>
7*4882a593Smuzhiyun  *
8*4882a593Smuzhiyun  * This file defines the security context
9*4882a593Smuzhiyun  * associate format.
10*4882a593Smuzhiyun  */
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun #ifndef __CRYPTO4XX_TRNG_H__
13*4882a593Smuzhiyun #define __CRYPTO4XX_TRNG_H__
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifdef CONFIG_HW_RANDOM_PPC4XX
16*4882a593Smuzhiyun void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
17*4882a593Smuzhiyun void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
18*4882a593Smuzhiyun #else
ppc4xx_trng_probe(struct crypto4xx_core_device * dev __maybe_unused)19*4882a593Smuzhiyun static inline void ppc4xx_trng_probe(
20*4882a593Smuzhiyun 	struct crypto4xx_core_device *dev __maybe_unused) { }
ppc4xx_trng_remove(struct crypto4xx_core_device * dev __maybe_unused)21*4882a593Smuzhiyun static inline void ppc4xx_trng_remove(
22*4882a593Smuzhiyun 	struct crypto4xx_core_device *dev __maybe_unused) { }
23*4882a593Smuzhiyun #endif
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun #endif
26