1 #ifndef _ASM_POWERPC_ARCHRANDOM_H
2 #define _ASM_POWERPC_ARCHRANDOM_H
4 #ifdef CONFIG_ARCH_RANDOM
6 #include <asm/machdep.h>
8 static inline int arch_get_random_long(unsigned long *v
)
10 if (ppc_md
.get_random_long
)
11 return ppc_md
.get_random_long(v
);
16 static inline int arch_get_random_int(unsigned int *v
)
21 rc
= arch_get_random_long(&val
);
28 int powernv_get_random_long(unsigned long *v
);
30 #endif /* CONFIG_ARCH_RANDOM */
32 #endif /* _ASM_POWERPC_ARCHRANDOM_H */