TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmTrngDefs.h
Go to the documentation of this file.
1
18#ifndef ARM_FW_TRNG_DEFS_H_
19#define ARM_FW_TRNG_DEFS_H_
20
22
23// Firmware TRNG revision mask and shift
24#define TRNG_REV_MAJOR_MASK 0x7FFF
25#define TRNG_REV_MINOR_MASK 0xFFFF
26#define TRNG_REV_MAJOR_SHIFT 16
27
28#if defined (MDE_CPU_ARM)
29
32#define ARM_SMC_ID_TRNG_RND ARM_SMC_ID_TRNG_RND_AARCH32
33
36#define MAX_ENTROPY_BITS 96
37#elif defined (MDE_CPU_AARCH64)
38
41#define ARM_SMC_ID_TRNG_RND ARM_SMC_ID_TRNG_RND_AARCH64
42
45#define MAX_ENTROPY_BITS 192
46#else
47 #error "Firmware TRNG not supported. Unknown chipset."
48#endif
49
50#endif // ARM_FW_TRNG_DEFS_H_