mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 00:46:47 +07: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>
20 lines
475 B
C
20 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;
|
|
};
|