diff options
Diffstat (limited to 'firmware/2lib/include/2misc.h')
-rw-r--r-- | firmware/2lib/include/2misc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/2lib/include/2misc.h b/firmware/2lib/include/2misc.h index d937b8df..853a1b40 100644 --- a/firmware/2lib/include/2misc.h +++ b/firmware/2lib/include/2misc.h @@ -42,6 +42,17 @@ int vb2_validate_gbb_signature(uint8_t *sig); void vb2_workbuf_from_ctx(struct vb2_context *ctx, struct vb2_workbuf *wb); /** + * Set the amount of work buffer used in the vboot context. + * + * This will round up to VB2_WORKBUF_ALIGN, so that the next allocation will + * be aligned as expected. + * + * @param ctx Vboot context + * @param used Number of bytes used + */ +void vb2_set_workbuf_used(struct vb2_context *ctx, uint32_t used); + +/** * Read the GBB header. * * @param ctx Vboot context |