Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Christian Lamparter | 5343e67 | 2016-04-18 12:57:41 +0200 | [diff] [blame] | 2 | /** |
| 3 | * AMCC SoC PPC4xx Crypto Driver |
| 4 | * |
| 5 | * Copyright (c) 2008 Applied Micro Circuits Corporation. |
| 6 | * All rights reserved. James Hsiao <jhsiao@amcc.com> |
| 7 | * |
Christian Lamparter | 5343e67 | 2016-04-18 12:57:41 +0200 | [diff] [blame] | 8 | * This file defines the security context |
| 9 | * associate format. |
| 10 | */ |
| 11 | |
| 12 | #ifndef __CRYPTO4XX_TRNG_H__ |
| 13 | #define __CRYPTO4XX_TRNG_H__ |
| 14 | |
| 15 | #ifdef CONFIG_HW_RANDOM_PPC4XX |
| 16 | void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev); |
| 17 | void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev); |
| 18 | #else |
| 19 | static inline void ppc4xx_trng_probe( |
Corentin Labbe | 6e88098 | 2019-01-23 11:24:18 +0000 | [diff] [blame] | 20 | struct crypto4xx_core_device *dev __maybe_unused) { } |
Christian Lamparter | 5343e67 | 2016-04-18 12:57:41 +0200 | [diff] [blame] | 21 | static inline void ppc4xx_trng_remove( |
Corentin Labbe | 6e88098 | 2019-01-23 11:24:18 +0000 | [diff] [blame] | 22 | struct crypto4xx_core_device *dev __maybe_unused) { } |
Christian Lamparter | 5343e67 | 2016-04-18 12:57:41 +0200 | [diff] [blame] | 23 | #endif |
| 24 | |
| 25 | #endif |