1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_ARCHRANDOM_H
3 #define _ASM_POWERPC_ARCHRANDOM_H
5 #include <asm/machdep.h>
7 static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs)
12 static inline size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs)
14 if (max_longs && ppc_md.get_random_seed && ppc_md.get_random_seed(v))
19 #ifdef CONFIG_PPC_POWERNV
20 int pnv_get_random_long(unsigned long *v);
23 #endif /* _ASM_POWERPC_ARCHRANDOM_H */