diff options
author | Chungjui Fan <chungjuifan@google.com> | 2020-09-22 23:03:11 +0800 |
---|---|---|
committer | CJ Fan <chungjuifan@google.com> | 2020-09-25 00:52:40 +0000 |
commit | 97eddacd15a2d45e6392d0386f4c0cf705d3b343 (patch) | |
tree | 362bca7e4605659c29dff7872ce2c95fa36f6e09 | |
parent | 493ae21559e3e5f80d7110d81de197ede7a7d728 (diff) | |
download | generic-97eddacd15a2d45e6392d0386f4c0cf705d3b343.tar.gz |
Define the upgrade state
Test: Build pass
Bug: 160740038
Change-Id: I01f2d825eb44c3dd46b566e693ea9372a09bb99e
Signed-off-by: Chungjui Fan <chungjuifan@google.com>
Reviewed-on: https://nugget-os-review.googlesource.com/c/host/generic/+/35625
Reviewed-by: Frank Woo <frankwoo@google.com>
Reviewed-by: Bill Richardson <wfrichar@google.com>
Presubmit-Verified: TreeHugger Robot
-rw-r--r-- | nugget/include/citadel_events.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nugget/include/citadel_events.h b/nugget/include/citadel_events.h index 02653b0..314ca41 100644 --- a/nugget/include/citadel_events.h +++ b/nugget/include/citadel_events.h @@ -66,6 +66,14 @@ enum event_id { EVENT_ALERT_V2 = 4, // Globalsec Alertv2 fired }; +/* + * Upgrade state definition. + */ +enum upgrade_state_def { + UPGRADE_SUCCESS = 0, + UPGRADE_PW_MISMATCH = 1, +}; + /* Please do not change the size of this struct */ #define EVENT_RECORD_SIZE 64 struct event_record { @@ -85,6 +93,9 @@ struct event_record { uint32_t which1; } rebooted; struct { + uint32_t upgrade_state; + } upgraded; + struct { uint32_t alert_grp[4]; uint16_t camo_breaches[2]; uint16_t temp_min; |