summaryrefslogtreecommitdiff
path: root/src/include/fw_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/fw_config.h')
-rw-r--r--src/include/fw_config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/fw_config.h b/src/include/fw_config.h
index c9ef75f929..3c8772598e 100644
--- a/src/include/fw_config.h
+++ b/src/include/fw_config.h
@@ -8,6 +8,8 @@
#include <stdbool.h>
#include <stdint.h>
+#define UNDEFINED_FW_CONFIG ~((uint64_t)0)
+
/**
* struct fw_config - Firmware configuration field and option.
* @field_name: Name of the field that this option belongs to.
@@ -30,8 +32,6 @@ struct fw_config {
.value = FW_CONFIG_FIELD_##__field##_OPTION_##__option##_VALUE \
})
-#if CONFIG(FW_CONFIG)
-
/**
* fw_config_get() - Provide firmware configuration value.
*
@@ -39,6 +39,8 @@ struct fw_config {
*/
uint64_t fw_config_get(void);
+#if CONFIG(FW_CONFIG)
+
/**
* fw_config_probe() - Check if field and option matches.
* @match: Structure containing field and option to probe.