Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Alexander Clouter | 9c3c133 | 2009-02-22 12:03:56 +0800 | [diff] [blame] | 2 | /* |
| 3 | * linux/include/linux/timeriomem-rng.h |
| 4 | * |
| 5 | * Copyright (c) 2009 Alexander Clouter <[email protected]> |
Alexander Clouter | 9c3c133 | 2009-02-22 12:03:56 +0800 | [diff] [blame] | 6 | */ |
| 7 | |
Masahiro Yamada | 2ef5404 | 2019-07-29 00:32:36 +0900 | [diff] [blame] | 8 | #ifndef _LINUX_TIMERIOMEM_RNG_H |
| 9 | #define _LINUX_TIMERIOMEM_RNG_H |
| 10 | |
Alexander Clouter | 9c3c133 | 2009-02-22 12:03:56 +0800 | [diff] [blame] | 11 | struct timeriomem_rng_data { |
Alexander Clouter | 3341323 | 2009-03-27 12:59:54 +0800 | [diff] [blame] | 12 | void __iomem *address; |
Alexander Clouter | 9c3c133 | 2009-02-22 12:03:56 +0800 | [diff] [blame] | 13 | |
| 14 | /* measures in usecs */ |
| 15 | unsigned int period; |
Rick Altherr | 284e763 | 2017-05-22 14:12:24 -0700 | [diff] [blame] | 16 | |
| 17 | /* bits of entropy per 1024 bits read */ |
| 18 | unsigned int quality; |
Alexander Clouter | 9c3c133 | 2009-02-22 12:03:56 +0800 | [diff] [blame] | 19 | }; |
Masahiro Yamada | 2ef5404 | 2019-07-29 00:32:36 +0900 | [diff] [blame] | 20 | |
| 21 | #endif /* _LINUX_TIMERIOMEM_RNG_H */ |