diff options
Diffstat (limited to 'firmware/lib/include/ec_sync.h')
-rw-r--r-- | firmware/lib/include/ec_sync.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/firmware/lib/include/ec_sync.h b/firmware/lib/include/ec_sync.h index 78b08a20..f95b500f 100644 --- a/firmware/lib/include/ec_sync.h +++ b/firmware/lib/include/ec_sync.h @@ -20,13 +20,11 @@ struct VbCommonParams; * whether any updates are necessary. * * @param ctx Vboot2 context - * @param cparams Vboot common params * @return VBERROR_SUCCESS, VBERROR_EC_REBOOT_TO_RO_REQUIRED if the EC must * reboot back to its RO code to continue EC sync, or other non-zero error * code. */ -VbError_t ec_sync_phase1(struct vb2_context *ctx, - struct VbCommonParams *cparams); +VbError_t ec_sync_phase1(struct vb2_context *ctx); /** * Returns non-zero if the EC will perform a slow update during phase 2. @@ -35,23 +33,19 @@ VbError_t ec_sync_phase1(struct vb2_context *ctx, * ec_sync_phase2(). * * @param ctx Vboot2 context - * @param cparams Vboot common params * @return non-zero if a slow update will be done; zero if no update or a * fast update. */ -int ec_will_update_slowly(struct vb2_context *ctx, - struct VbCommonParams *cparams); +int ec_will_update_slowly(struct vb2_context *ctx); /** * Check if auxiliary firmware blobs need to be updated. * * @param ctx Vboot2 context - * @param cparams Vboot common params * @param severity VB_AUX_FW_{NO,FAST,SLOW}_UPDATE * @return VBERROR_SUCCESS or non-zero error code. */ VbError_t ec_sync_check_aux_fw(struct vb2_context *ctx, - struct VbCommonParams *cparams, VbAuxFwUpdateSeverity_t *severity); /** @@ -64,13 +58,11 @@ VbError_t ec_sync_check_aux_fw(struct vb2_context *ctx, * warning screen before calling phase 2. * * @param ctx Vboot2 context - * @param cparams Vboot common params * @return VBERROR_SUCCESS, VBERROR_EC_REBOOT_TO_RO_REQUIRED if the EC must * reboot back to its RO code to continue EC sync, or other non-zero error * code. */ -VbError_t ec_sync_phase2(struct vb2_context *ctx, - struct VbCommonParams *cparams); +VbError_t ec_sync_phase2(struct vb2_context *ctx); /** * EC sync, phase 3 @@ -78,10 +70,9 @@ VbError_t ec_sync_phase2(struct vb2_context *ctx, * This completes EC sync and handles battery cutoff if needed. * * @param ctx Vboot2 context - * @param cparams Vboot common params * @return VBERROR_SUCCESS or non-zero error code. */ -VbError_t ec_sync_phase3(struct vb2_context *ctx, VbCommonParams *cparams); +VbError_t ec_sync_phase3(struct vb2_context *ctx); /** * Sync all EC devices to expected versions. @@ -89,11 +80,9 @@ VbError_t ec_sync_phase3(struct vb2_context *ctx, VbCommonParams *cparams); * This is a high-level function which calls the functions above. * * @param ctx Vboot context - * @param devidx EC device index to sync - * @param cparams Common vboot params + * @param cparams Vboot common params * @return VBERROR_SUCCESS, or non-zero if error. */ -VbError_t ec_sync_all(struct vb2_context *ctx, struct - VbCommonParams *cparams); +VbError_t ec_sync_all(struct vb2_context *ctx, struct VbCommonParams *cparams); #endif /* VBOOT_REFERENCE_EC_SYNC_H_ */ |