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