diff options
Diffstat (limited to 'include/ap_ro_integrity_check.h')
-rw-r--r-- | include/ap_ro_integrity_check.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/ap_ro_integrity_check.h b/include/ap_ro_integrity_check.h new file mode 100644 index 0000000000..365bccbe8e --- /dev/null +++ b/include/ap_ro_integrity_check.h @@ -0,0 +1,22 @@ +/* Copyright 2020 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + */ +#ifndef __CR50_INCLUDE_AP_RO_INTEGRITY_CHECK_H +#define __CR50_INCLUDE_AP_RO_INTEGRITY_CHECK_H + +/* + * validate_ap_ro: based on information saved in an H1 RO flash page verify + * contents of the AP flash. + * + * Returns: + * + * EC_SUCCESS if valid integrity check information was found and the AP flash + * check succeeded. + * EC_ERROR_INVAL in valid integrity check information was not found. + * EC_ERROR_CRC if information was found, but the AP flash check failed. + */ +int validate_ap_ro(void); + +#endif /* ! __CR50_INCLUDE_AP_RO_INTEGRITY_CHECK_H */ |