blob: 3af732f25c1c04a5af59f470d5a804c0346db776 [file] [log] [blame]
Thomas Gleixnerc942fdd2019-05-27 08:55:06 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Christian Lamparter5343e672016-04-18 12:57:41 +02002/**
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 Lamparter5343e672016-04-18 12:57:41 +02008 * 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
16void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
17void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
18#else
19static inline void ppc4xx_trng_probe(
Corentin Labbe6e880982019-01-23 11:24:18 +000020 struct crypto4xx_core_device *dev __maybe_unused) { }
Christian Lamparter5343e672016-04-18 12:57:41 +020021static inline void ppc4xx_trng_remove(
Corentin Labbe6e880982019-01-23 11:24:18 +000022 struct crypto4xx_core_device *dev __maybe_unused) { }
Christian Lamparter5343e672016-04-18 12:57:41 +020023#endif
24
25#endif