summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/targeting')
-rw-r--r--src/include/usr/targeting/common/util.H22
-rw-r--r--src/include/usr/targeting/targplatutil.H16
2 files changed, 23 insertions, 15 deletions
diff --git a/src/include/usr/targeting/common/util.H b/src/include/usr/targeting/common/util.H
index e26e0c795..aaf576919 100644
--- a/src/include/usr/targeting/common/util.H
+++ b/src/include/usr/targeting/common/util.H
@@ -83,6 +83,28 @@ namespace PROPERTIES
}
+namespace UTIL
+{
+ // Better definition of RISK_LEVEL attribute settings
+ // WARNING: addition of risk levels that don't support SMF will have a
+ // significant effect on the behavior of SMF code. Please ensure that
+ // (at least) src/usr/secureboot/smf/smf_utils.C is updated
+ // accordingly!
+ typedef enum
+ {
+ // Compatibility modes
+ P9N22_P9C12_RUGBY_FAVOR_SECURITY = 0x00,
+ P9N22_P9C12_RUGBY_FAVOR_PERFORMANCE = 0x01,
+ P9N22_NO_RUGBY_MITIGATIONS = 0x02,
+ P9N22_P9N23_JAVA_PERF = 0x03,
+
+ // Native modes
+ P9N23_P9C13_NATIVE_MODE_MINIMUM = 0x04,
+ P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_SECURITY = 0x04,
+ P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_PERFORMANCE = 0x05,
+ } Risk_level;
+}
+
/**
* @brief Checks to see if we are running in a hardware simulation
* environment, i.e. VPO/VBU (not Simics)
diff --git a/src/include/usr/targeting/targplatutil.H b/src/include/usr/targeting/targplatutil.H
index 34d8bebc0..1f010f852 100644
--- a/src/include/usr/targeting/targplatutil.H
+++ b/src/include/usr/targeting/targplatutil.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2018 */
+/* Contributors Listed Below - COPYRIGHT 2013,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -58,20 +58,6 @@ namespace UTIL
// is reserved for invalid sensor
static const uint16_t INVALID_IPMI_SENSOR = 0xFF;
- // WARNING: addition of risk levels that don't support SMF will have a
- // significant effect on the behavior of SMF code. Please ensure that
- // (at least) src/usr/secureboot/smf/smf_utils.C is updated
- // accordingly!
- typedef enum
- {
- P9N22_P9C12_RUGBY_FAVOR_SECURITY = 0x00,
- P9N22_P9C12_RUGBY_FAVOR_PERFORMANCE = 0x01,
- P9N22_NO_RUGBY_MITIGATIONS = 0x02,
- P9N22_P9N23_JAVA_PERF = 0x03,
- P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_SECURITY = 0x04,
- P9N23_P9C13_NATIVE_SMF_RUGBY_FAVOR_PERFORMANCE = 0x05,
- } Risk_level;
-
/**
* @brief Creates a standard error log of tracing type
*
OpenPOWER on IntegriCloud