summaryrefslogtreecommitdiff
path: root/include/hardware/boot_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/boot_control.h')
-rw-r--r--include/hardware/boot_control.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/hardware/boot_control.h b/include/hardware/boot_control.h
index 36a867da..abbf3f19 100644
--- a/include/hardware/boot_control.h
+++ b/include/hardware/boot_control.h
@@ -125,7 +125,14 @@ typedef struct boot_control_module {
*/
int (*isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot);
- void* reserved[31];
+ /**
+ * Returns the active slot to boot into on the next boot. If
+ * setActiveBootSlot() has been called, the getter function should return
+ * the same slot as the one provided in the last setActiveBootSlot() call.
+ */
+ unsigned (*getActiveBootSlot)(struct boot_control_module *module);
+
+ void* reserved[30];
} boot_control_module_t;