summaryrefslogtreecommitdiff
path: root/common/hardware_interface.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2020-07-06 21:23:45 +0000
committerTianjie Xu <xunchang@google.com>2020-07-06 21:23:45 +0000
commit242e33af30f7aa74531d436e1609100aae3b4394 (patch)
tree048c16c3935bac60f150f676ad8f8d8493248ce1 /common/hardware_interface.h
parent33d180914ef2cb9286595fb1fdcc3511c5fb1c34 (diff)
parent55abd3cbae6bd150b3534728a63befd1cadd6c5e (diff)
Merge "Merge remote-tracking branch 'aosp/upstream-master' into merge"
Diffstat (limited to 'common/hardware_interface.h')
-rw-r--r--common/hardware_interface.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/hardware_interface.h b/common/hardware_interface.h
index d92a6fcc..4f0305fb 100644
--- a/common/hardware_interface.h
+++ b/common/hardware_interface.h
@@ -70,6 +70,10 @@ class HardwareInterface {
// running a custom chrome os ec.
virtual std::string GetECVersion() const = 0;
+ // Returns the OEM device requisition or an empty string if the system does
+ // not have a requisition, or if not running Chrome OS.
+ virtual std::string GetDeviceRequisition() const = 0;
+
// Returns the minimum kernel key version that verified boot on Chrome OS
// will allow to boot. This is the value of crossystem tpm_kernver. Returns
// -1 on error, or if not running on Chrome OS.
@@ -102,9 +106,9 @@ class HardwareInterface {
virtual int GetPowerwashCount() const = 0;
// Signals that a powerwash (stateful partition wipe) should be performed
- // after reboot. If |is_rollback| is true additional state is preserved
- // during shutdown that can be restored after the powerwash.
- virtual bool SchedulePowerwash(bool is_rollback) = 0;
+ // after reboot. If |save_rollback_data| is true additional state is
+ // preserved during shutdown that can be restored after the powerwash.
+ virtual bool SchedulePowerwash(bool save_rollback_data) = 0;
// Cancel the powerwash operation scheduled to be performed on next boot.
virtual bool CancelPowerwash() = 0;