1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2019, Linaro Limited
12 * dm_rng_read() - read a random number seed from the rng device
13 * @buffer: input buffer to put the read random seed into
14 * @size: number of bytes of random seed read
16 * Return: 0 if OK, -ve on error
18 int dm_rng_read(struct udevice *dev, void *buffer, size_t size);
20 /* struct dm_rng_ops - Operations for the hwrng uclass */
23 * @read() - read a random number seed
25 * @data: input buffer to read the random seed
26 * @max: total number of bytes to read
28 * Return: 0 if OK, -ve on error
30 int (*read)(struct udevice *dev, void *data, size_t max);