Loading...
1/* SPDX-License-Identifier: GPL-2.0-or-later */
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 *
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
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(
20 struct crypto4xx_core_device *dev __maybe_unused) { }
21static inline void ppc4xx_trng_remove(
22 struct crypto4xx_core_device *dev __maybe_unused) { }
23#endif
24
25#endif
1/**
2 * AMCC SoC PPC4xx Crypto Driver
3 *
4 * Copyright (c) 2008 Applied Micro Circuits Corporation.
5 * All rights reserved. James Hsiao <jhsiao@amcc.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * This file defines the security context
18 * associate format.
19 */
20
21#ifndef __CRYPTO4XX_TRNG_H__
22#define __CRYPTO4XX_TRNG_H__
23
24#ifdef CONFIG_HW_RANDOM_PPC4XX
25void ppc4xx_trng_probe(struct crypto4xx_core_device *core_dev);
26void ppc4xx_trng_remove(struct crypto4xx_core_device *core_dev);
27#else
28static inline void ppc4xx_trng_probe(
29 struct crypto4xx_device *dev __maybe_unused) { }
30static inline void ppc4xx_trng_remove(
31 struct crypto4xx_device *dev __maybe_unused) { }
32#endif
33
34#endif