cpu-feature: Support Via Padlock security features
[strongswan.git] / src / libstrongswan / utils / cpu_feature.h
index d7300a3..3a807fa 100644 (file)
@@ -36,6 +36,17 @@ typedef enum {
        CPU_FEATURE_RDRAND =                                            (1 <<  8),
        CPU_FEATURE_AESNI =                                                     (1 <<  9),
        CPU_FEATURE_PCLMULQDQ =                                         (1 << 10),
+       /** Via Padlock Security features */
+       CPU_FEATURE_PADLOCK_RNG_AVAILABLE =                     (1 << 22),
+       CPU_FEATURE_PADLOCK_RNG_ENABLED =                       (1 << 23),
+       CPU_FEATURE_PADLOCK_ACE_AVAILABLE =                     (1 << 24),
+       CPU_FEATURE_PADLOCK_ACE_ENABLED =                       (1 << 25),
+       CPU_FEATURE_PADLOCK_ACE2_AVAILABLE =            (1 << 26),
+       CPU_FEATURE_PADLOCK_ACE2_ENABLED =                      (1 << 27),
+       CPU_FEATURE_PADLOCK_PHE_AVAILABLE =                     (1 << 28),
+       CPU_FEATURE_PADLOCK_PHE_ENABLED =                       (1 << 29),
+       CPU_FEATURE_PADLOCK_PMM_AVAILABLE =                     (1 << 30),
+       CPU_FEATURE_PADLOCK_PMM_ENABLED =                       (1 << 31),
 } cpu_feature_t;
 
 /**