mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 00:48:50 +00:00
284e76387c
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr <raltherr@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 lines
475 B
C
19 lines
475 B
C
/*
|
|
* linux/include/linux/timeriomem-rng.h
|
|
*
|
|
* Copyright (c) 2009 Alexander Clouter <alex@digriz.org.uk>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
struct timeriomem_rng_data {
|
|
void __iomem *address;
|
|
|
|
/* measures in usecs */
|
|
unsigned int period;
|
|
|
|
/* bits of entropy per 1024 bits read */
|
|
unsigned int quality;
|
|
};
|