Go to the documentation of this file.
9 #define RNG_CTL_WAIT 0x0000000001fffe00ULL
10 #define RNG_CTL_WAIT_SHIFT 9
11 #define RNG_CTL_BYPASS 0x0000000000000100ULL
12 #define RNG_CTL_VCO 0x00000000000000c0ULL
13 #define RNG_CTL_VCO_SHIFT 6
14 #define RNG_CTL_ASEL 0x0000000000000030ULL
15 #define RNG_CTL_ASEL_SHIFT 4
16 #define RNG_CTL_LFSR 0x0000000000000008ULL
17 #define RNG_CTL_ES3 0x0000000000000004ULL
18 #define RNG_CTL_ES2 0x0000000000000002ULL
19 #define RNG_CTL_ES1 0x0000000000000001ULL
21 #define HV_FAST_RNG_GET_DIAG_CTL 0x130
22 #define HV_FAST_RNG_CTL_READ 0x131
23 #define HV_FAST_RNG_CTL_WRITE 0x132
24 #define HV_FAST_RNG_DATA_READ_DIAG 0x133
25 #define HV_FAST_RNG_DATA_READ 0x134
27 #define HV_RNG_STATE_UNCONFIGURED 0
28 #define HV_RNG_STATE_CONFIGURED 1
29 #define HV_RNG_STATE_HEALTHCHECK 2
30 #define HV_RNG_STATE_ERROR 3
32 #define HV_RNG_NUM_CONTROL 4
38 unsigned long *tick_delta);
42 unsigned long *tick_delta,
44 unsigned long *write_status);
47 unsigned long write_timeout,
48 unsigned long *tick_delta);
51 unsigned long write_timeout,
55 unsigned long *tick_delta);
59 unsigned long *tick_delta);
61 unsigned long *tick_delta);
71 #define N2RNG_FLAG_MULTI 0x00000001
72 #define N2RNG_FLAG_CONTROL 0x00000002
73 #define N2RNG_FLAG_READY 0x00000008
74 #define N2RNG_FLAG_SHUTDOWN 0x00000010
75 #define N2RNG_FLAG_BUFFER_VALID 0x00000020
94 #define N2RNG_HEALTH_CHECK_SEC_DEFAULT 0
95 #define N2RNG_ACCUM_CYCLES_DEFAULT 2048
96 #define N2RNG_WD_TIMEO_DEFAULT 0
100 #define SELFTEST_TICKS 38859
101 #define SELFTEST_VAL ((u64)0xB8820C7BD387E32C)
102 #define SELFTEST_POLY ((u64)0x231DCEE91262B8A3)
103 #define SELFTEST_MATCH_GOAL 6
104 #define SELFTEST_LOOPS_MAX 40000
105 #define SELFTEST_BUFFER_WORDS 8
112 #define N2RNG_BLOCK_LIMIT 60000
113 #define N2RNG_BUSY_LIMIT 100
114 #define N2RNG_HCHECK_LIMIT 100