summaryrefslogtreecommitdiff
path: root/include/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h
index 0c6e11c429..a77d5a1cb2 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -110,6 +110,21 @@ int flash_physical_force_reload(void);
*/
int flash_physical_restore_state(void);
+/**
+ * Return the valid flash protect flags.
+ *
+ * @return a combination of EC_FLASH_PROTECT_* flags from ec_commands.h
+ */
+uint32_t flash_physical_get_valid_flags(void);
+
+/**
+ * Return the writable flash protect flags.
+ *
+ * @param cur_flags The current flash protect flags.
+ * @return a combination of EC_FLASH_PROTECT_* flags from ec_commands.h
+ */
+uint32_t flash_physical_get_writable_flags(uint32_t cur_flags);
+
/*****************************************************************************/
/* Low-level common code for use by flash modules. */